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
40
OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
Normal file
40
OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
Normal file
@@ -0,0 +1,40 @@
|
||||
## @file
|
||||
# DXE library instance for ResetSystem library class for OVMF
|
||||
#
|
||||
# Copyright (C) 2020, Red Hat, Inc.
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 1.29
|
||||
BASE_NAME = ResetSystemLibMicrovm
|
||||
FILE_GUID = 3d6faf60-804a-4ca9-a36a-1a92416919d0
|
||||
MODULE_TYPE = DXE_RUNTIME_DRIVER
|
||||
VERSION_STRING = 1.0
|
||||
LIBRARY_CLASS = ResetSystemLib|DXE_DRIVER DXE_RUNTIME_DRIVER SMM_CORE DXE_SMM_DRIVER UEFI_DRIVER UEFI_APPLICATION
|
||||
CONSTRUCTOR = DxeResetSystemLibMicrovmConstructor
|
||||
|
||||
#
|
||||
# The following information is for reference only and not required by the build
|
||||
# tools.
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64
|
||||
#
|
||||
|
||||
[Sources]
|
||||
ResetSystemLibMicrovm.c
|
||||
DxeResetSystemLibMicrovm.c
|
||||
|
||||
[Packages]
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
MdePkg/MdePkg.dec
|
||||
OvmfPkg/OvmfPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
BaseLib
|
||||
DebugLib
|
||||
DxeServicesTableLib
|
||||
IoLib
|
||||
TimerLib
|
Reference in New Issue
Block a user