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>
This commit is contained in:
committed by
mergify[bot]
parent
bf02d73e74
commit
1d3e89f349
@@ -9,4 +9,11 @@
|
||||
|
||||
#define MICROVM_PSEUDO_DEVICE_ID 0xfff1
|
||||
|
||||
/* generic event device */
|
||||
#define MICROVM_GED_MMIO_BASE 0xfea00000
|
||||
#define MICROVM_GED_MMIO_BASE_REGS (MICROVM_GED_MMIO_BASE + 0x200)
|
||||
#define MICROVM_ACPI_GED_REG_SLEEP_CTL 0x00
|
||||
#define MICROVM_ACPI_GED_REG_RESET 0x02
|
||||
#define MICROVM_ACPI_GED_RESET_VALUE 0x42
|
||||
|
||||
#endif // __MICROVM_H__
|
||||
|
@@ -15,6 +15,7 @@
|
||||
#include <IndustryStandard/Q35MchIch9.h>
|
||||
#include <IndustryStandard/I440FxPiix4.h>
|
||||
#include <IndustryStandard/Bhyve.h>
|
||||
#include <IndustryStandard/Microvm.h>
|
||||
|
||||
//
|
||||
// OVMF Host Bridge DID Address
|
||||
|
Reference in New Issue
Block a user