Re: [RFC PATCH 0/12] iommu/riscv: Add nested translation (vIOMMU) support
From: Gong Shuai
Date: Fri Oct 16 2026 - 05:16:42 EST
Hi Jason,
Thanks for the review again.
> > Add nested translation support to the RISC-V IOMMU driver, so a KVM guest
> > with its own vIOMMU can own the first stage of a device context while the
> > host keeps the second stage, and add the interrupt support. This is an RFC
> > and comments on the design are welcome.
>
> The iommufd parts looked reasonable to me
>
> I feel some mild skepticism about all the MSI parts, it would be good
> to get more of the interrupt stuff actually landed before posting this
> again.
Agreed on the MSI parts. They are a working proof to exercise the
nested flow end to end, not a finished design. The reason they are
in this series at all is that the NVMe device we use for testing
depends on MSI interrupts. Without this support, DMA succeeds but
the MSIs fault, so the driver ends up polling for completions after
timeouts.
We will keep following the irqbypass groundwork as it evolves, and
continue this work once it has landed.
>
> Please try harder on the commit messages, do not use AI to write them
> like this. They need to explain why this patch exists and what problem
> it is solving not some inscrutible description of what it contains.
I will rewrite all of them.
Thanks,
Shuai
>
> You'll need other riscv people to help you with reviewing it.
>
> Jason