Skip to content

Commit

Permalink
ArmVirtPkg: Rename ArmVirtQemuMonitorLib to ArmVirtMonitorLib
Browse files Browse the repository at this point in the history
The implementation of ArmMonitorLib that selects the conduit (SMC or
HVC) based on the PSCI FDT node is suitable for other VMMs as well, so
rename it more appropriately.

Signed-off-by: Ard Biesheuvel <[email protected]>
  • Loading branch information
ardbiesheuvel authored and mergify[bot] committed Nov 26, 2024
1 parent 91171b6 commit f9f4164
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions ArmVirtPkg/ArmVirtQemu.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf
!endif

ArmMonitorLib|ArmVirtPkg/Library/ArmVirtQemuMonitorLib/ArmVirtQemuMonitorLib.inf
ArmMonitorLib|ArmVirtPkg/Library/ArmVirtMonitorLib/ArmVirtMonitorLib.inf

[LibraryClasses.AARCH64]
ArmPlatformLib|ArmVirtPkg/Library/ArmPlatformLibQemu/ArmPlatformLibQemu.inf
Expand All @@ -102,7 +102,7 @@

[LibraryClasses.common.PEIM]
ArmVirtMemInfoLib|ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoPeiLib.inf
ArmMonitorLib|ArmVirtPkg/Library/ArmVirtQemuMonitorPeiLib/ArmVirtQemuMonitorPeiLib.inf
ArmMonitorLib|ArmVirtPkg/Library/ArmVirtMonitorPeiLib/ArmVirtMonitorPeiLib.inf
FdtLib|MdePkg/Library/BaseFdtLib/BaseFdtLib.inf
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf

Expand Down
2 changes: 1 addition & 1 deletion ArmVirtPkg/ArmVirtQemuKernel.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf

ArmMonitorLib|ArmVirtPkg/Library/ArmVirtQemuMonitorLib/ArmVirtQemuMonitorLib.inf
ArmMonitorLib|ArmVirtPkg/Library/ArmVirtMonitorLib/ArmVirtMonitorLib.inf

[LibraryClasses.common.DXE_DRIVER]
AcpiPlatformLib|OvmfPkg/Library/AcpiPlatformLib/DxeAcpiPlatformLib.inf
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @file
Arm Monitor Library that chooses the conduit based on the PSCI node in the
device tree provided by QEMU
device tree provided by the VMM.
Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
Copyright (c) 2024, Google LLC. All rights reserved.<BR>
Expand Down Expand Up @@ -29,7 +29,7 @@ STATIC UINT32 mArmSmcccMethod;
**/
RETURN_STATUS
EFIAPI
ArmVirtQemuMonitorLibConstructor (
ArmVirtMonitorLibConstructor (
VOID
)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## @file
# Arm Monitor Library that chooses the conduit based on the PSCI node in the
# device tree provided by QEMU
# device tree provided by the VMM
#
# Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
# Copyright (c) 2024, Google LLC. All rights reserved.<BR>
Expand All @@ -10,15 +10,15 @@

[Defines]
INF_VERSION = 1.29
BASE_NAME = ArmVirtQemuMonitorLib
BASE_NAME = ArmVirtMonitorLib
FILE_GUID = 09f50ee5-2aa2-42b9-a2a0-090faeefed2b
MODULE_TYPE = BASE
VERSION_STRING = 1.0
LIBRARY_CLASS = ArmMonitorLib|DXE_DRIVER DXE_RUNTIME_DRIVER
CONSTRUCTOR = ArmVirtQemuMonitorLibConstructor
CONSTRUCTOR = ArmVirtMonitorLibConstructor

[Sources]
ArmVirtQemuMonitorLib.c
ArmVirtMonitorLib.c

[Packages]
ArmPkg/ArmPkg.dec
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @file
Arm Monitor Library that chooses the conduit based on the PSCI node in the
device tree provided by QEMU.
device tree provided by the VMM.
Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
Copyright (c) 2024, Google LLC. All rights reserved.<BR>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## @file
# Arm Monitor Library that chooses the conduit based on the PSCI node in the
# device tree provided by QEMU.
# device tree provided by the VMM.
#
# Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
# Copyright (c) 2024, Google LLC. All rights reserved.<BR>
Expand All @@ -10,14 +10,14 @@

[Defines]
INF_VERSION = 1.29
BASE_NAME = ArmVirtQemuMonitorPeiLib
BASE_NAME = ArmVirtMonitorPeiLib
FILE_GUID = c610e0dc-dd7a-47c8-8fea-26c4710709ff
MODULE_TYPE = BASE
VERSION_STRING = 1.0
LIBRARY_CLASS = ArmMonitorLib|PEIM

[Sources]
ArmVirtQemuMonitorPeiLib.c
ArmVirtMonitorPeiLib.c

[Packages]
ArmPkg/ArmPkg.dec
Expand Down

0 comments on commit f9f4164

Please sign in to comment.