* Mon Feb 09 2026 Miroslav Rezanina <mrezanin@redhat.com> - 20251114-3
- edk2-OvmfPkg-AmdSev-add-memory-debug-log-support.patch [RHEL-139470] - edk2-OvmfPkg-MemDebugLogPeiLib-drop-duplicate-MemDebugLog.patch [RHEL-139470] - edk2-OvmfPkg-MemDebugLogPeiCoreLib-enable-for-PEIMs.patch [RHEL-139470] - edk2-ArmVirtPkg-use-MemDebugLogPeiCoreLib-for-PEIMs.patch [RHEL-139470] - edk2-OvmfPkg-use-MemDebugLogPeiCoreLib-for-PEIMs.patch [RHEL-139470] - Resolves: RHEL-139470 (Enable memory debug logging support in firmware image configs)
This commit is contained in:
parent
57baaecc48
commit
80bca6e4f5
47
edk2-ArmVirtPkg-use-MemDebugLogPeiCoreLib-for-PEIMs.patch
Normal file
47
edk2-ArmVirtPkg-use-MemDebugLogPeiCoreLib-for-PEIMs.patch
Normal file
@ -0,0 +1,47 @@
|
||||
From 89ca998de1a2202f227986f7bbb878d18e1fed47 Mon Sep 17 00:00:00 2001
|
||||
From: Gerd Hoffmann <kraxel@redhat.com>
|
||||
Date: Tue, 20 Jan 2026 17:16:03 +0100
|
||||
Subject: [PATCH 4/5] ArmVirtPkg: use MemDebugLogPeiCoreLib for PEIMs
|
||||
|
||||
RH-Author: Luigi Leonardi <None>
|
||||
RH-MergeRequest: 104: ArmVirtPkg, AmdSev: fix memory debug logging
|
||||
RH-Jira: RHEL-139470
|
||||
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
|
||||
RH-Commit: [4/5] 4b152715d6ad2614c68bc6a77aaad793bf04b2c4 (luigileonardi/edk2)
|
||||
|
||||
Switch PEIMs from MemDebugLogPeiLib to MemDebugLogPeiCoreLib, except for
|
||||
the MemDebugLog PEIM which needs the MemDebugLogPages() function.
|
||||
|
||||
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
||||
---
|
||||
ArmVirtPkg/ArmVirtQemu.dsc | 7 +++++--
|
||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/ArmVirtPkg/ArmVirtQemu.dsc b/ArmVirtPkg/ArmVirtQemu.dsc
|
||||
index a0a36632c21..a1c6ed48413 100644
|
||||
--- a/ArmVirtPkg/ArmVirtQemu.dsc
|
||||
+++ b/ArmVirtPkg/ArmVirtQemu.dsc
|
||||
@@ -114,7 +114,7 @@
|
||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
|
||||
QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgMmioPeiLib.inf
|
||||
!if $(DEBUG_TO_MEM)
|
||||
- MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiLib.inf
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiCoreLib.inf
|
||||
!else
|
||||
MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogLibNull.inf
|
||||
!endif
|
||||
@@ -369,7 +369,10 @@
|
||||
ArmPkg/Drivers/CpuPei/CpuPei.inf
|
||||
|
||||
!if $(DEBUG_TO_MEM)
|
||||
- OvmfPkg/MemDebugLogPei/MemDebugLogPei.inf
|
||||
+ OvmfPkg/MemDebugLogPei/MemDebugLogPei.inf {
|
||||
+ <LibraryClasses>
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiLib.inf
|
||||
+ }
|
||||
!endif
|
||||
|
||||
!if $(TPM2_ENABLE) == TRUE
|
||||
--
|
||||
2.47.3
|
||||
|
||||
121
edk2-OvmfPkg-AmdSev-add-memory-debug-log-support.patch
Normal file
121
edk2-OvmfPkg-AmdSev-add-memory-debug-log-support.patch
Normal file
@ -0,0 +1,121 @@
|
||||
From 61c1174521d20fe34630a73f85b28b4028b9feee Mon Sep 17 00:00:00 2001
|
||||
From: Luigi Leonardi <leonardi@redhat.com>
|
||||
Date: Tue, 13 Jan 2026 05:28:10 -0500
|
||||
Subject: [PATCH 1/5] OvmfPkg/AmdSev: add memory debug log support
|
||||
|
||||
RH-Author: Luigi Leonardi <None>
|
||||
RH-MergeRequest: 104: ArmVirtPkg, AmdSev: fix memory debug logging
|
||||
RH-Jira: RHEL-139470
|
||||
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
|
||||
RH-Commit: [1/5] 5925e432750361be369cf42d0f1f5d29cdb91d74 (luigileonardi/edk2)
|
||||
|
||||
Enable memory-based debug logging support when `DEBUG_TO_MEM` build flag
|
||||
is set.
|
||||
|
||||
Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
|
||||
---
|
||||
OvmfPkg/AmdSev/AmdSevX64.dsc | 23 +++++++++++++++++++++++
|
||||
OvmfPkg/AmdSev/AmdSevX64.fdf | 3 +++
|
||||
2 files changed, 26 insertions(+)
|
||||
|
||||
diff --git a/OvmfPkg/AmdSev/AmdSevX64.dsc b/OvmfPkg/AmdSev/AmdSevX64.dsc
|
||||
index 717956cfc9c..34715237b4b 100644
|
||||
--- a/OvmfPkg/AmdSev/AmdSevX64.dsc
|
||||
+++ b/OvmfPkg/AmdSev/AmdSevX64.dsc
|
||||
@@ -209,7 +209,11 @@
|
||||
TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
|
||||
TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLibNull.inf
|
||||
TdxHelperLib|OvmfPkg/IntelTdx/TdxHelperLib/TdxHelperLibNull.inf
|
||||
+!if $(DEBUG_TO_MEM)
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogDxeLib.inf
|
||||
+!else
|
||||
MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogLibNull.inf
|
||||
+!endif
|
||||
|
||||
[LibraryClasses.common.SEC]
|
||||
TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
|
||||
@@ -218,6 +222,9 @@
|
||||
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
|
||||
!else
|
||||
DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
|
||||
+!endif
|
||||
+!if $(DEBUG_TO_MEM)
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogSecLib.inf
|
||||
!endif
|
||||
ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
|
||||
ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
|
||||
@@ -246,6 +253,9 @@
|
||||
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
|
||||
!else
|
||||
DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
|
||||
+!endif
|
||||
+!if $(DEBUG_TO_MEM)
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiCoreLib.inf
|
||||
!endif
|
||||
PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
|
||||
CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
|
||||
@@ -263,6 +273,9 @@
|
||||
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
|
||||
!else
|
||||
DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
|
||||
+!endif
|
||||
+!if $(DEBUG_TO_MEM)
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiLib.inf
|
||||
!endif
|
||||
PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
|
||||
ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
|
||||
@@ -310,6 +323,9 @@
|
||||
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
|
||||
!else
|
||||
DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
|
||||
+!endif
|
||||
+!if $(DEBUG_TO_MEM)
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogRtLib.inf
|
||||
!endif
|
||||
UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
|
||||
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
|
||||
@@ -567,6 +583,9 @@
|
||||
# PEI Phase modules
|
||||
#
|
||||
MdeModulePkg/Core/Pei/PeiMain.inf
|
||||
+!if $(DEBUG_TO_MEM)
|
||||
+ OvmfPkg/MemDebugLogPei/MemDebugLogPei.inf
|
||||
+!endif
|
||||
MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
|
||||
<LibraryClasses>
|
||||
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
||||
@@ -603,6 +622,7 @@
|
||||
MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
|
||||
<LibraryClasses>
|
||||
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogLibNull.inf
|
||||
}
|
||||
|
||||
MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
|
||||
@@ -665,6 +685,9 @@
|
||||
<LibraryClasses>
|
||||
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
||||
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
||||
+!if $(DEBUG_TO_MEM)
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogLibNull.inf
|
||||
+!endif
|
||||
}
|
||||
MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
|
||||
MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
|
||||
diff --git a/OvmfPkg/AmdSev/AmdSevX64.fdf b/OvmfPkg/AmdSev/AmdSevX64.fdf
|
||||
index 069dc40e97e..accbece8d08 100644
|
||||
--- a/OvmfPkg/AmdSev/AmdSevX64.fdf
|
||||
+++ b/OvmfPkg/AmdSev/AmdSevX64.fdf
|
||||
@@ -96,6 +96,9 @@ APRIORI PEI {
|
||||
#
|
||||
# PEI Phase modules
|
||||
#
|
||||
+!if $(DEBUG_TO_MEM)
|
||||
+INF OvmfPkg/MemDebugLogPei/MemDebugLogPei.inf
|
||||
+!endif
|
||||
INF MdeModulePkg/Core/Pei/PeiMain.inf
|
||||
INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
|
||||
INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
|
||||
--
|
||||
2.47.3
|
||||
|
||||
41
edk2-OvmfPkg-MemDebugLogPeiCoreLib-enable-for-PEIMs.patch
Normal file
41
edk2-OvmfPkg-MemDebugLogPeiCoreLib-enable-for-PEIMs.patch
Normal file
@ -0,0 +1,41 @@
|
||||
From e752ef369036e2dc799c8eb58b1e6697d1442fe8 Mon Sep 17 00:00:00 2001
|
||||
From: Gerd Hoffmann <kraxel@redhat.com>
|
||||
Date: Tue, 20 Jan 2026 17:17:16 +0100
|
||||
Subject: [PATCH 3/5] OvmfPkg/MemDebugLogPeiCoreLib: enable for PEIMs
|
||||
|
||||
RH-Author: Luigi Leonardi <None>
|
||||
RH-MergeRequest: 104: ArmVirtPkg, AmdSev: fix memory debug logging
|
||||
RH-Jira: RHEL-139470
|
||||
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
|
||||
RH-Commit: [3/5] 97050d5ba36b91340970c2af9d4b75d4b08bd16a (luigileonardi/edk2)
|
||||
|
||||
Allow PEIMs use the MemDebugLogPeiCoreLib lib.
|
||||
|
||||
The difference between MemDebugLogPeiCoreLib and MemDebugLogPeiLib is
|
||||
that the latter does additionally provide the MemDebugLogPages()
|
||||
function, and pulls in QemuFwCfg* libraries as dependency.
|
||||
|
||||
Most PEIMs do not need MemDebugLogPages() though, only the ones which
|
||||
handle the setup of the memory logging buffer do.
|
||||
|
||||
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
||||
---
|
||||
OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiCoreLib.inf | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiCoreLib.inf b/OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiCoreLib.inf
|
||||
index 56908caa5a7..12aa0441792 100644
|
||||
--- a/OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiCoreLib.inf
|
||||
+++ b/OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiCoreLib.inf
|
||||
@@ -14,7 +14,7 @@
|
||||
FILE_GUID = EEAF8A01-167A-4222-A647-80EB16AEEC69
|
||||
MODULE_TYPE = BASE
|
||||
VERSION_STRING = 1.0
|
||||
- LIBRARY_CLASS = MemDebugLogLib|PEI_CORE
|
||||
+ LIBRARY_CLASS = MemDebugLogLib|PEI_CORE PEIM
|
||||
|
||||
|
||||
[Sources]
|
||||
--
|
||||
2.47.3
|
||||
|
||||
@ -0,0 +1,89 @@
|
||||
From 7e80f0fe3c74a518c1d43706391e42afb1d3ba40 Mon Sep 17 00:00:00 2001
|
||||
From: Gerd Hoffmann <kraxel@redhat.com>
|
||||
Date: Tue, 20 Jan 2026 17:18:07 +0100
|
||||
Subject: [PATCH 2/5] OvmfPkg/MemDebugLogPeiLib: drop duplicate
|
||||
MemDebugLogWrite function
|
||||
|
||||
RH-Author: Luigi Leonardi <None>
|
||||
RH-MergeRequest: 104: ArmVirtPkg, AmdSev: fix memory debug logging
|
||||
RH-Jira: RHEL-139470
|
||||
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
|
||||
RH-Commit: [2/5] 59f8cad8121f3b659928a0342b46b39ab2da1dd5 (luigileonardi/edk2)
|
||||
|
||||
The MemDebugLogWrite() function is identical in MemDebugLogPei.c and
|
||||
MemDebugLogPeiCore.c So drop it from MemDebugLogPei.c and simply add
|
||||
MemDebugLogPeiCore.c to MemDebugLogPeiLib.inf instead.
|
||||
|
||||
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
||||
---
|
||||
.../Library/MemDebugLogLib/MemDebugLogPei.c | 41 -------------------
|
||||
.../MemDebugLogLib/MemDebugLogPeiLib.inf | 1 +
|
||||
2 files changed, 1 insertion(+), 41 deletions(-)
|
||||
|
||||
diff --git a/OvmfPkg/Library/MemDebugLogLib/MemDebugLogPei.c b/OvmfPkg/Library/MemDebugLogLib/MemDebugLogPei.c
|
||||
index 05e32daf1ca..d1beb74487d 100644
|
||||
--- a/OvmfPkg/Library/MemDebugLogLib/MemDebugLogPei.c
|
||||
+++ b/OvmfPkg/Library/MemDebugLogLib/MemDebugLogPei.c
|
||||
@@ -12,47 +12,6 @@
|
||||
#include <Library/QemuFwCfgSimpleParserLib.h>
|
||||
#include <Library/MemDebugLogLib.h>
|
||||
|
||||
-EFI_STATUS
|
||||
-EFIAPI
|
||||
-MemDebugLogWrite (
|
||||
- IN CHAR8 *Buffer,
|
||||
- IN UINTN Length
|
||||
- )
|
||||
-{
|
||||
- EFI_PHYSICAL_ADDRESS MemDebugLogBufAddr;
|
||||
- EFI_STATUS Status;
|
||||
-
|
||||
- //
|
||||
- // Obtain the Memory Debug Log buffer addr from HOB
|
||||
- // NOTE: This is expected to fail until the HOB is created.
|
||||
- //
|
||||
- Status = MemDebugLogAddrFromHOB (&MemDebugLogBufAddr);
|
||||
-
|
||||
- if (EFI_ERROR (Status)) {
|
||||
- MemDebugLogBufAddr = 0;
|
||||
- }
|
||||
-
|
||||
- if (MemDebugLogBufAddr != 0) {
|
||||
- Status = MemDebugLogWriteBuffer (MemDebugLogBufAddr, Buffer, Length);
|
||||
- } else {
|
||||
- //
|
||||
- // HOB has not yet been created, so
|
||||
- // write to the early debug log buffer.
|
||||
- //
|
||||
- if (FixedPcdGet32 (PcdOvmfEarlyMemDebugLogBase) != 0x0) {
|
||||
- Status = MemDebugLogWriteBuffer (
|
||||
- (EFI_PHYSICAL_ADDRESS)(UINTN)FixedPcdGet32 (PcdOvmfEarlyMemDebugLogBase),
|
||||
- Buffer,
|
||||
- Length
|
||||
- );
|
||||
- } else {
|
||||
- Status = EFI_NOT_FOUND;
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- return Status;
|
||||
-}
|
||||
-
|
||||
UINT32
|
||||
EFIAPI
|
||||
MemDebugLogPages (
|
||||
diff --git a/OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiLib.inf b/OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiLib.inf
|
||||
index b6b407c8919..6a954d1d8c0 100644
|
||||
--- a/OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiLib.inf
|
||||
+++ b/OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiLib.inf
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
[Sources]
|
||||
MemDebugLogPei.c
|
||||
+ MemDebugLogPeiCore.c
|
||||
MemDebugLogCommon.c
|
||||
|
||||
[Packages]
|
||||
--
|
||||
2.47.3
|
||||
|
||||
102
edk2-OvmfPkg-use-MemDebugLogPeiCoreLib-for-PEIMs.patch
Normal file
102
edk2-OvmfPkg-use-MemDebugLogPeiCoreLib-for-PEIMs.patch
Normal file
@ -0,0 +1,102 @@
|
||||
From ab6410ba7d54964884687e020fd015ed5ef3d18f Mon Sep 17 00:00:00 2001
|
||||
From: Gerd Hoffmann <kraxel@redhat.com>
|
||||
Date: Wed, 21 Jan 2026 12:35:59 +0100
|
||||
Subject: [PATCH 5/5] OvmfPkg: use MemDebugLogPeiCoreLib for PEIMs
|
||||
|
||||
RH-Author: Luigi Leonardi <None>
|
||||
RH-MergeRequest: 104: ArmVirtPkg, AmdSev: fix memory debug logging
|
||||
RH-Jira: RHEL-139470
|
||||
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
|
||||
RH-Commit: [5/5] 66932a14dcf1a61fc92319e50fe9e87c03f89378 (luigileonardi/edk2)
|
||||
|
||||
Switch PEIMs from MemDebugLogPeiLib to MemDebugLogPeiCoreLib, except for
|
||||
the MemDebugLog and PlatformPei PEIMs which need the MemDebugLogPages()
|
||||
function.
|
||||
|
||||
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
||||
---
|
||||
OvmfPkg/OvmfPkgIa32X64.dsc | 14 +++++++++++---
|
||||
OvmfPkg/OvmfPkgX64.dsc | 14 +++++++++++---
|
||||
2 files changed, 22 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc
|
||||
index 2be6a1321c8..e49132deb08 100644
|
||||
--- a/OvmfPkg/OvmfPkgIa32X64.dsc
|
||||
+++ b/OvmfPkg/OvmfPkgIa32X64.dsc
|
||||
@@ -312,7 +312,7 @@
|
||||
DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
|
||||
!endif
|
||||
!if $(DEBUG_TO_MEM)
|
||||
- MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiLib.inf
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiCoreLib.inf
|
||||
!endif
|
||||
PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
|
||||
ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
|
||||
@@ -708,7 +708,10 @@
|
||||
#
|
||||
MdeModulePkg/Core/Pei/PeiMain.inf
|
||||
!if $(DEBUG_TO_MEM)
|
||||
- OvmfPkg/MemDebugLogPei/MemDebugLogPei.inf
|
||||
+ OvmfPkg/MemDebugLogPei/MemDebugLogPei.inf {
|
||||
+ <LibraryClasses>
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiLib.inf
|
||||
+ }
|
||||
!endif
|
||||
MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
|
||||
<LibraryClasses>
|
||||
@@ -724,7 +727,12 @@
|
||||
}
|
||||
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
||||
|
||||
- OvmfPkg/PlatformPei/PlatformPei.inf
|
||||
+ OvmfPkg/PlatformPei/PlatformPei.inf {
|
||||
+ <LibraryClasses>
|
||||
+!if $(DEBUG_TO_MEM)
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiLib.inf
|
||||
+!endif
|
||||
+ }
|
||||
|
||||
UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
|
||||
<LibraryClasses>
|
||||
diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc
|
||||
index 724a84554c8..5c016b336b5 100644
|
||||
--- a/OvmfPkg/OvmfPkgX64.dsc
|
||||
+++ b/OvmfPkg/OvmfPkgX64.dsc
|
||||
@@ -344,7 +344,7 @@
|
||||
DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
|
||||
!endif
|
||||
!if $(DEBUG_TO_MEM)
|
||||
- MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiLib.inf
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiCoreLib.inf
|
||||
!endif
|
||||
PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
|
||||
ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
|
||||
@@ -788,7 +788,10 @@
|
||||
#
|
||||
MdeModulePkg/Core/Pei/PeiMain.inf
|
||||
!if $(DEBUG_TO_MEM)
|
||||
- OvmfPkg/MemDebugLogPei/MemDebugLogPei.inf
|
||||
+ OvmfPkg/MemDebugLogPei/MemDebugLogPei.inf {
|
||||
+ <LibraryClasses>
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiLib.inf
|
||||
+ }
|
||||
!endif
|
||||
MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
|
||||
<LibraryClasses>
|
||||
@@ -804,7 +807,12 @@
|
||||
}
|
||||
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
||||
|
||||
- OvmfPkg/PlatformPei/PlatformPei.inf
|
||||
+ OvmfPkg/PlatformPei/PlatformPei.inf {
|
||||
+ <LibraryClasses>
|
||||
+!if $(DEBUG_TO_MEM)
|
||||
+ MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogPeiLib.inf
|
||||
+!endif
|
||||
+ }
|
||||
|
||||
UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
|
||||
<LibraryClasses>
|
||||
--
|
||||
2.47.3
|
||||
|
||||
21
edk2.spec
21
edk2.spec
@ -25,7 +25,7 @@ ExclusiveArch: x86_64 aarch64 riscv64
|
||||
|
||||
Name: edk2
|
||||
Version: %{GITDATE}
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: UEFI firmware for 64-bit virtual machines
|
||||
License: BSD-2-Clause-Patent and Apache-2.0 and MIT
|
||||
URL: http://www.tianocore.org
|
||||
@ -90,6 +90,16 @@ Patch28: 0030-OvmfPkg-MemDebugLogLib-use-AcquireSpinLockOrFail.patch
|
||||
Patch29: 0031-OvmfPkg-PlatformInitLib-reserve-igvm-parameter-area.patch
|
||||
# For RHEL-138335 - [AmpereoneX] ArmConfigureMmu: The MaxAddress 0xFFFFFFFFFFFFF is not supported by this MMU configuration
|
||||
Patch30: edk2-ArmPkg-UefiCpuPkg-Fix-boot-failure-on-FEAT_LPA-only-.patch
|
||||
# For RHEL-139470 - Enable memory debug logging support in firmware image configs
|
||||
Patch31: edk2-OvmfPkg-AmdSev-add-memory-debug-log-support.patch
|
||||
# For RHEL-139470 - Enable memory debug logging support in firmware image configs
|
||||
Patch32: edk2-OvmfPkg-MemDebugLogPeiLib-drop-duplicate-MemDebugLog.patch
|
||||
# For RHEL-139470 - Enable memory debug logging support in firmware image configs
|
||||
Patch33: edk2-OvmfPkg-MemDebugLogPeiCoreLib-enable-for-PEIMs.patch
|
||||
# For RHEL-139470 - Enable memory debug logging support in firmware image configs
|
||||
Patch34: edk2-ArmVirtPkg-use-MemDebugLogPeiCoreLib-for-PEIMs.patch
|
||||
# For RHEL-139470 - Enable memory debug logging support in firmware image configs
|
||||
Patch35: edk2-OvmfPkg-use-MemDebugLogPeiCoreLib-for-PEIMs.patch
|
||||
|
||||
# python3-devel and libuuid-devel are required for building tools.
|
||||
# python3-devel is also needed for varstore template generation and
|
||||
@ -467,6 +477,15 @@ install -m 0644 \
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Feb 09 2026 Miroslav Rezanina <mrezanin@redhat.com> - 20251114-3
|
||||
- edk2-OvmfPkg-AmdSev-add-memory-debug-log-support.patch [RHEL-139470]
|
||||
- edk2-OvmfPkg-MemDebugLogPeiLib-drop-duplicate-MemDebugLog.patch [RHEL-139470]
|
||||
- edk2-OvmfPkg-MemDebugLogPeiCoreLib-enable-for-PEIMs.patch [RHEL-139470]
|
||||
- edk2-ArmVirtPkg-use-MemDebugLogPeiCoreLib-for-PEIMs.patch [RHEL-139470]
|
||||
- edk2-OvmfPkg-use-MemDebugLogPeiCoreLib-for-PEIMs.patch [RHEL-139470]
|
||||
- Resolves: RHEL-139470
|
||||
(Enable memory debug logging support in firmware image configs)
|
||||
|
||||
* Thu Jan 08 2026 Miroslav Rezanina <mrezanin@redhat.com> - 20251114-2
|
||||
- edk2-ArmPkg-UefiCpuPkg-Fix-boot-failure-on-FEAT_LPA-only-.patch [RHEL-138335]
|
||||
- Resolves: RHEL-138335
|
||||
|
||||
Loading…
Reference in New Issue
Block a user