]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/XenSupport: remove usage of prefetchable PCI host bridge aperture
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Thu, 25 Apr 2019 20:23:56 +0000 (21:23 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 30 Apr 2019 16:41:57 +0000 (18:41 +0200)
commit27e4d6ae25a08a6e9d78b27ce201800d3d072401
treefa632032c7bcf850f8c4ef02d05bf0e8eaba32d4
parent9fb2ce2f465d555f70c2ab9365a11e031d0049c4
OvmfPkg/XenSupport: remove usage of prefetchable PCI host bridge aperture

This aperture doesn't exist in QEMU-XEN and hvmloader places BARs
in arbitrary order disregarding prefetchable bit. This makes
prefetchable and non-prefetchable BARs to follow each other that's
quite likely with PCI passthrough devices. In that case, the existing
code, that tries to work out aperture boundaries by reading hvmloader
BAR placement, will report a bogus prefetchable aperture which overlaps
with the regular one. It will eventually trigger an assertion in
DXE PCI initialization code.

Do the same thing as OVMF on QEMU-KVM and pass a non-existing aperture
there. It's not necessary to pass additional allocation flags as we set
ResourceAssigned flag on the root bridge which means they will be ignored.

Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
OvmfPkg/Library/PciHostBridgeLib/XenSupport.c