Re: [RFC PATCH v1 05/37] KVM: guest_memfd: Wire up kvm_get_memory_attributes() to per-gmem attributes
From: Jason Gunthorpe
Date: Wed Feb 04 2026 - 07:52:38 EST
On Wed, Feb 04, 2026 at 12:43:16PM +0800, Xu Yilun wrote:
> > Which means we need VFIO to know what they are, and hopefully it is
> > just static based on the TDISP reports..
>
> I don't think VMM need to check TDISP report. The only special thing is
> the MSI-X mixed pages which can be figured out by standard PCI
> discovery.
Either that or follow along with the guests's choices on
shared/private.
We can't let VFIO mmap a private MMIO page, so it has to know which
pages are private at any moment, and it can't guess.
Jason