OvmfPkg/PlatformBootManagerLib: minimize the set of connected devices

Prefer ConnectDevicesFromQemu() to EfiBootManagerConnectAll().

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Shannon Zhao <zhaoshenglong@huawei.com>
Cc: Xiang Zheng <xiang.zheng@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> # ArmVirtQemu
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Xiang Zheng <xiang.zheng@linaro.org>
This commit is contained in:
Laszlo Ersek 2018-03-13 19:32:55 +01:00
parent 51bd1f7699
commit 245c643cc8
1 changed files with 10 additions and 6 deletions

View File

@ -1346,7 +1346,8 @@ Returns:
--*/
{
UINTN Index;
UINTN Index;
RETURN_STATUS Status;
DEBUG ((EFI_D_INFO, "PlatformBdsConnectSequence\n"));
@ -1365,11 +1366,14 @@ Returns:
Index++;
}
//
// Just use the simple policy to connect all devices
//
DEBUG ((EFI_D_INFO, "EfiBootManagerConnectAll\n"));
EfiBootManagerConnectAll ();
Status = ConnectDevicesFromQemu ();
if (RETURN_ERROR (Status)) {
//
// Just use the simple policy to connect all devices
//
DEBUG ((DEBUG_INFO, "EfiBootManagerConnectAll\n"));
EfiBootManagerConnectAll ();
}
PciAcpiInitialization ();
}