Skip to content

Commit ea138a6

Browse files
SiFiveHollandavpatel
authored andcommitted
RISC-V: KVM: Fix check for local interrupts on riscv32
To set all 64 bits in the mask on a 32-bit system, the constant must have type `unsigned long long`. Fixes: 6b1e8ba ("RISC-V: KVM: Use bitmap for irqs_pending and irqs_pending_mask") Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Link: https://lore.kernel.org/r/20251016001714.3889380-1-samuel.holland@sifive.com Signed-off-by: Anup Patel <anup@brainfault.org>
1 parent 3a86608 commit ea138a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kvm/vcpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu)
212212

213213
int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu)
214214
{
215-
return (kvm_riscv_vcpu_has_interrupts(vcpu, -1UL) &&
215+
return (kvm_riscv_vcpu_has_interrupts(vcpu, -1ULL) &&
216216
!kvm_riscv_vcpu_stopped(vcpu) && !vcpu->arch.pause);
217217
}
218218

0 commit comments

Comments
 (0)