Re: [PATCH v2 21/26] iommu/amd: Map kvmfd to shared translate device ID for vIOMMU

From: Jason Gunthorpe

Date: Fri Jun 19 2026 - 09:40:37 EST


On Thu, Jun 18, 2026 at 12:50:48PM +0700, Suthikulpanit, Suravee wrote:

> However, in upcoming series, when introduces vIOMMU EventLog and PPRLog
> virtualization support, we need kvm to get SVM AVIC information in order to
> setup extended interrupt remapping for EventLog and PPRLog interrupts. Any
> suggestions on how to achieve this if you do not want to pass kvmfd from
> userspace?

That sounds like a more appropriate use of the kvm fd, to extract
KVM specific information.

However, interrupt virtualization is its own distinct topic and you'd
have to get the KVM and IRQ maintainers to agree to whatever you are
doing. I would generally expect that the irq bypass is setup in a more
general way, not by directly poking into AMD KVM stuff.

Jason