On 5/11/2026 4:09 AM, Michael S. Tsirkin wrote: > On Fri, May 08, 2026 at 01:37:09PM -0500, Tushar Dave wrote: >> This RFC introduces a mechanism to specify Guest Physical Addresses >> (GPAs) for PCI BARs, allowing explicit placement of guest MMIO BAR >> addresses to match host physical addresses for assigned devices. >> >> On some platforms, P2P DMA is performed between devices within the same >> IOMMU group. The PCI fabric ACS is configured to permit direct P2P >> without going through the host bridge in order to achieve the required >> performance. > > Pass this info to guest firmware, let it set bars any way it wants? We are using firmware, relying on the existing EDK2-supported mode enabled by PcdPciDisableBusEnumeration, where firmware is expected to preserve the PCI topology and BAR programming established by the hypervisor. In our case, the hypervisor is QEMU, which performs PCI enumeration and resource assignment before handing control to firmware. EDK2 then explicitly refrains from re-enumerating or reallocating PCI BARs, as this is already a supported firmware behavior. -Tushar
- [RFC PATCH 3/8] hw/pci: introduce allocator for fixed B... Tushar Dave
- [RFC PATCH 6/8] hw/pci: finalize bridge prefetch window... Tushar Dave
- [RFC PATCH 1/8] hw/pci: add fixed-bars property to allo... Tushar Dave
- [RFC PATCH 8/8] hw/arm/virt: add pci-pre-enum machine p... Tushar Dave
- [RFC PATCH 7/8] hw/arm/virt: add pcie-mmio-window machi... Tushar Dave
- Re: [RFC PATCH 0/8] hw/arm/virt, hw/pci: PCI pre-enumer... Peter Maydell
- Re: [RFC PATCH 0/8] hw/arm/virt, hw/pci: PCI pre-e... Jason Gunthorpe
- Re: [RFC PATCH 0/8] hw/arm/virt, hw/pci: PCI p... Mohamed Mediouni
- Re: [RFC PATCH 0/8] hw/arm/virt, hw/pci: P... Jason Gunthorpe
- Re: [RFC PATCH 0/8] hw/arm/virt, hw/pci: PCI pre-enumer... Michael S. Tsirkin
- Re: [RFC PATCH 0/8] hw/arm/virt, hw/pci: PCI pre-e... Tushar Dave
- Re: [RFC PATCH 0/8] hw/arm/virt, hw/pci: PCI p... Michael S. Tsirkin
- Re: [edk2-devel] [RFC PATCH 0/8] hw/arm/virt, hw/pci: P... Ard Biesheuvel
- Re: [edk2-devel] [RFC PATCH 0/8] hw/arm/virt, hw/p... Tushar Dave
- Re: [edk2-devel] [RFC PATCH 0/8] hw/arm/virt, ... Alex Williamson
- Re: [edk2-devel] [RFC PATCH 0/8] hw/arm/vi... Michael S. Tsirkin
- Re: [edk2-devel] [RFC PATCH 0/8] hw/ar... Alex Williamson
- Re: [edk2-devel] [RFC PATCH 0/8] ... Jason Gunthorpe
- Re: [edk2-devel] [RFC PATCH 0/8] ... Ard Biesheuvel
- Re: [edk2-devel] [RFC PATCH 0... Gerd Hoffmann
