OvmfPkg: Don't access A20 gate register on Cloud Hypervisor

Since Cloud Hypervisor doesn't emulate an A20 gate register on I/O port
0x92, it's better to avoid accessing it when the platform is identified
as Cloud Hypervisor.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Acked-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
Sebastien Boeuf 2022-05-10 20:50:46 +08:00 committed by mergify[bot]
parent 3129ed374c
commit bf25f27e00
1 changed files with 3 additions and 1 deletions

View File

@ -314,7 +314,9 @@ PlatformMiscInitialization (
//
// Disable A20 Mask
//
IoOr8 (0x92, BIT1);
if (PlatformInfoHob->HostBridgeDevId != CLOUDHV_DEVICE_ID) {
IoOr8 (0x92, BIT1);
}
//
// Build the CPU HOB with guest RAM size dependent address width and 16-bits