]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/XenSupport: turn off address decoding before BAR sizing
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Thu, 25 Apr 2019 20:23:58 +0000 (21:23 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 30 Apr 2019 16:42:35 +0000 (18:42 +0200)
commit0c40c9c925ca1cc15b9cbeae31723b0b784b932e
tree76f71abcf86f14bea051f2f2b0ea16e89da37c6c
parentd63610df60f784676090deba63aeca8c9dc631d1
OvmfPkg/XenSupport: turn off address decoding before BAR sizing

On Xen, hvmloader firmware leaves address decoding enabled for
enumerated PCI device before jumping into OVMF. OVMF seems to
expect it to be disabled and tries to size PCI BARs in several places
without disabling it which causes BAR64, for example, being
incorrectly placed by QEMU.

Fix it by disabling PCI address decoding explicitly before the
first attempt to size BARs on Xen.

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