diff options
author | Gary Lin <glin@suse.com> | 2016-06-01 18:26:20 +0800 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2016-06-02 13:34:28 -0700 |
commit | da2369d21d2e57a0de8fa7ae954812122c87326e (patch) | |
tree | 1044125e6dbdbdd0ef79f131907956fa438491cf /SecurityPkg | |
parent | 05bf4747dd8e412d10fccbe35346aa2597b4167b (diff) | |
download | edk2-platforms-da2369d21d2e57a0de8fa7ae954812122c87326e.tar.xz |
OvmfPkg/PlatformBootManagerLib: Connect the Xen drivers before loading NvVars
When OVMF tried to load the file-based NvVars, it checked all the PCI
instances and connected the drivers to the mass storage device. However,
Xen registered its PCI device with a special class id (0xFF80), so
ConnectRecursivelyIfPciMassStorage() couldn't recognize it and skipped the
driver connecting for Xen PCI devices. In the end, the Xen block device
wasn't initialized until EfiBootManagerConnectAll() was called, and it's
already too late to load NvVars.
This commit connects the Xen drivers in ConnectRecursivelyIfPciMassStorage()
so that Xen can use the file-based NvVars.
v3:
* Introduce XenDetected() to cache the result of Xen detection instead
of relying on PcdPciDisableBusEnumeration.
v2:
* Cosmetic changes
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'SecurityPkg')
0 files changed, 0 insertions, 0 deletions