Re: [PATCH] RISC-V: KVM: Fix lost virtual interrupts during IRQ sync
From: Xie Bo
Date: Mon Jul 13 2026 - 02:50:32 EST
Hi Anup,
I have addressed all three suggestions in v3:
- use non-atomic bitmap operations while holding irqs_pending_lock;
- hold irqs_pending_lock across the AIA sync, flush, and pending checks,
with lockdep assertions in the AIA helpers; and
- protect kvm_riscv_vcpu_has_interrupts() with the same lock.
I also rebased the patch onto Linux 7.2-rc3. Both RV64 and RV32 KVM
builds pass, and checkpatch reports no issues.
The v3 patch follows this reply.
Regards,
Xie Bo