public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* A lingering doubt on PCI-MMIO region of PCI-passthrough-device
@ 2025-12-14 12:08 Ajay Garg
  2025-12-14 19:52 ` Alex Williamson
  0 siblings, 1 reply; 7+ messages in thread
From: Ajay Garg @ 2025-12-14 12:08 UTC (permalink / raw)
  To: iommu, linux-pci, Linux Kernel Mailing List

Hi everyone.

Let's assume x86_64-linux host and guest, with full-virtualization and
iommu hardware capabilities.

Before launching vm, qemu with the help vfio "installs" "dev1" on the
virtual-pci-root-complex of guest.
After bootup, the guest does the usual enumeration, finds "dev1" on
the pci-bus, and programs the BARs in its domain.

However, there is no guarantee that guest-pci-mmio-physical-ranges
would be identical to "what would have been"
host-pci-mmio-physical-ranges.
Then how does the EPT/SLAT tables get set up for correct mapping from
GPA => HPA for dev1's-BARs-MMIO-regions ?

Will be grateful for pointers.

Thanks and Regards,
Ajay

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-12-20 13:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-14 12:08 A lingering doubt on PCI-MMIO region of PCI-passthrough-device Ajay Garg
2025-12-14 19:52 ` Alex Williamson
2025-12-15  3:50   ` Ajay Garg
2025-12-19  6:23     ` Ajay Garg
2025-12-20  0:06       ` Alex Williamson
2025-12-20 12:52         ` Ajay Garg
2025-12-20 13:24           ` Ajay Garg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox