]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg: PciHostBridgeDxe: shorten search for extra root buses
authorLaszlo Ersek <lersek@redhat.com>
Tue, 14 Jul 2015 12:02:34 +0000 (12:02 +0000)
committerlersek <lersek@Edk2>
Tue, 14 Jul 2015 12:02:34 +0000 (12:02 +0000)
commit68306ac2f2e7b85fc0d592248f68679139809b1a
tree3724491ccb5429769459cf9ee9e87346f2601cee
parentbdb1c98f036154b53d97cd5a30e49878e85fa8cb
OvmfPkg: PciHostBridgeDxe: shorten search for extra root buses

QEMU provides an fw_cfg file called "etc/extra-pci-roots", containing a
little-endian UINT64 value that exposes the number of extra root buses. We
can use this value to terminate the scan as soon as we find the last extra
root bus.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Regression-tested-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17963 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/PciHostBridgeDxe/PciHostBridge.c
OvmfPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf