[RFC PATCH 1/3] iommu/riscv: Add guest IMSIC GPA mapping helpers
fangyu.yu at linux.alibaba.com
fangyu.yu at linux.alibaba.com
Mon Oct 12 02:49:19 PDT 2026
>On Sat, Oct 10, 2026 at 07:18:37PM +0800, fangyu.yu at linux.alibaba.com wrote:
>> This is not a generic page-table operation. It is a special
>> requirement of RISC-V IOMMU IRQ forwarding (irqbypass) on
>> implementations without an MSI page table: the guest IMSIC GPA
>> must be mapped into the second-stage domain, and when a vCPU's
>> VS-file host page migrates, its leaf must be replaced atomically.
>
>I think you can add an atomic PTE replace operation to generic_pt,
>that should be fine.
Hi Jason,
Thanks for the suggestion. I plan to give this a try in v2 and move
the atomic PTE replacement logic into generic_pt.
CC Shuai, since he suggested the same earlier.
Thanks,
Fangyu
>
>Jason
More information about the kvm-riscv
mailing list