diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-09-08 11:01:14 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-10-05 10:55:39 +0000 |
commit | 1d3e89f3490f05a20df0470a21767d063587a596 (patch) | |
tree | 8e62f886b89cde28791e276e2200bdcaa5d5dbac /OvmfPkg/PlatformPei/Platform.c | |
parent | bf02d73e74ec2825551126c780df726cc543cfb0 (diff) | |
download | edk2-1d3e89f3490f05a20df0470a21767d063587a596.tar.gz edk2-1d3e89f3490f05a20df0470a21767d063587a596.tar.bz2 edk2-1d3e89f3490f05a20df0470a21767d063587a596.zip |
OvmfPkg/ResetSystemLib: add driver for microvm
Uses the generic event device to reset and poweroff.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c index aeb39595aa..df2d9ad015 100644 --- a/OvmfPkg/PlatformPei/Platform.c +++ b/OvmfPkg/PlatformPei/Platform.c @@ -161,6 +161,7 @@ MemMapInitialization ( AddIoMemoryRangeHob (0x0A0000, BASE_1MB);
if (mHostBridgeDevId == 0xffff /* microvm */) {
+ AddIoMemoryBaseSizeHob (MICROVM_GED_MMIO_BASE, SIZE_4KB);
AddIoMemoryBaseSizeHob (0xFEC00000, SIZE_4KB); /* ioapic #1 */
AddIoMemoryBaseSizeHob (0xFEC10000, SIZE_4KB); /* ioapic #2 */
return;
|