diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-09-08 11:01:12 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-10-05 10:55:39 +0000 |
commit | 8583b57c5cb3a7e752a25250b3f7406235802f05 (patch) | |
tree | e222d5c2c801f45ec2876289d08f215262980278 /OvmfPkg/PlatformPei/Platform.c | |
parent | 6a8e9ad24b64e221fb84ba3dbbaea1e716875b32 (diff) | |
download | edk2-8583b57c5cb3a7e752a25250b3f7406235802f05.zip edk2-8583b57c5cb3a7e752a25250b3f7406235802f05.tar.gz edk2-8583b57c5cb3a7e752a25250b3f7406235802f05.tar.bz2 |
OvmfPkg/Microvm: PlatformPei/Platform memory map tweaks
Microvm needs ioapic hobs only.
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/PlatformPei/Platform.c')
-rw-r--r-- | OvmfPkg/PlatformPei/Platform.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c index d3a2012..d425a5c 100644 --- a/OvmfPkg/PlatformPei/Platform.c +++ b/OvmfPkg/PlatformPei/Platform.c @@ -159,6 +159,12 @@ MemMapInitialization ( //
AddIoMemoryRangeHob (0x0A0000, BASE_1MB);
+ if (mHostBridgeDevId == 0xffff /* microvm */) {
+ AddIoMemoryBaseSizeHob (0xFEC00000, SIZE_4KB); /* ioapic #1 */
+ AddIoMemoryBaseSizeHob (0xFEC10000, SIZE_4KB); /* ioapic #2 */
+ return;
+ }
+
TopOfLowRam = GetSystemMemorySizeBelow4gb ();
PciExBarBase = 0;
if (mHostBridgeDevId == INTEL_Q35_MCH_DEVICE_ID) {
|