Re: [PATCH v4] RISC-V: KVM: Serialize virtual interrupt pending state updates

Xie Bo <[email protected]> Wed, 15 Jul 2026 10:03:58 +0800
Newsgroups org.infradead.lists.kvm-riscv,org.infradead.lists.linux-riscv,org.kernel.vger.kvm,org.kernel.vger.linux-kernel,org.kernel.vger.stable
Message-ID <[email protected]>
Hi Anup,

I addressed your comments in v5:

- kept kvm_riscv_vcpu_aia_has_interrupts() as a single helper and made
  it acquire irqs_pending_lock internally while checking the high
  pending bitmap;
- released irqs_pending_lock before the IMSIC VS-file check, since that
  path takes vsfile_lock;
- kept the guest CSR updates outside the critical section and protected
  only the dirty bitmap updates; and
- added the requested whitespace and clarified the race example.

The patch remains based on Linux 7.2-rc3. RV64, RV32, and RV64 with
PREEMPT_RT KVM builds pass, and checkpatch reports no issues.

The v5 patch follows this reply.

Regards,
Xie Bo


-- 
kvm-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kvm-riscv