summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-09-08 11:01:11 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-10-05 10:55:39 +0000
commit6a8e9ad24b64e221fb84ba3dbbaea1e716875b32 (patch)
treebceeefe3b6b58e4a316fa738cea5d4149fb987c9 /OvmfPkg
parent76602f45dcd92c6684ca08e7e0ae302fb832790b (diff)
downloadedk2-6a8e9ad24b64e221fb84ba3dbbaea1e716875b32.tar.gz
edk2-6a8e9ad24b64e221fb84ba3dbbaea1e716875b32.tar.bz2
edk2-6a8e9ad24b64e221fb84ba3dbbaea1e716875b32.zip
OvmfPkg/Microvm: PlatformPei/MemDetect tweaks
Skip host bridge setup on microvm. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3599 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Jiewen Yao <Jiewen.yao@intel.com>
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/PlatformPei/MemDetect.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/OvmfPkg/PlatformPei/MemDetect.c b/OvmfPkg/PlatformPei/MemDetect.c
index 2c2c4641ec..d736b85e0d 100644
--- a/OvmfPkg/PlatformPei/MemDetect.c
+++ b/OvmfPkg/PlatformPei/MemDetect.c
@@ -135,6 +135,10 @@ QemuUc32BaseInitialization (
UINT32 LowerMemorySize;
UINT32 Uc32Size;
+ if (mHostBridgeDevId == 0xffff /* microvm */) {
+ return;
+ }
+
if (mHostBridgeDevId == INTEL_Q35_MCH_DEVICE_ID) {
//
// On q35, the 32-bit area that we'll mark as UC, through variable MTRRs,