|
Gerd Hoffmann |
729059 |
From e2aa9521a02cacb0ec147667d7bd87ccde2508db Mon Sep 17 00:00:00 2001
|
|
Paolo Bonzini |
348500 |
From: Laszlo Ersek <lersek@redhat.com>
|
|
Paolo Bonzini |
348500 |
Date: Wed, 14 Oct 2015 15:59:06 +0200
|
|
Gerd Hoffmann |
ced5d8 |
Subject: [PATCH 06/21] OvmfPkg: take PcdResizeXterm from the QEMU command line
|
|
Gerd Hoffmann |
5eb552 |
(RH only)
|
|
Gerd Hoffmann |
5eb552 |
|
|
Gerd Hoffmann |
0476d8 |
edk2-stable202205 rebase
|
|
Gerd Hoffmann |
0476d8 |
|
|
Gerd Hoffmann |
0476d8 |
- re-add UPDATE_BOOLEAN_PCD_FROM_FW_CFG
|
|
Gerd Hoffmann |
0476d8 |
- add microvm, cloudhw and inteltdx
|
|
Gerd Hoffmann |
0476d8 |
|
|
Gerd Hoffmann |
5eb552 |
edk2-stable202108 rebase
|
|
Gerd Hoffmann |
5eb552 |
|
|
Gerd Hoffmann |
5eb552 |
- resolve conflict in OvmfPkg/PlatformPei/PlatformPei.inf
|
|
Paolo Bonzini |
348500 |
|
|
|
59c3cd |
Notes about the RHEL-8.3/20200603-ca407c7246bf [edk2-stable202005] ->
|
|
|
59c3cd |
RHEL-8.5/20210520-e1999b264f1f [edk2-stable202105] rebase:
|
|
Paolo Bonzini |
348500 |
|
|
|
59c3cd |
- Extend the DSC change to the new OvmfPkg/AmdSev platform, which has been
|
|
|
59c3cd |
introduced upstream in commit 30d277ed7a82 ("OvmfPkg/Amdsev: Base commit
|
|
|
59c3cd |
to build encrypted boot specific OVMF", 2020-12-14), for TianoCore#3077.
|
|
|
59c3cd |
|
|
|
59c3cd |
We've always patched all those DSC/FDF files in OvmfPkg down-stream that
|
|
|
59c3cd |
made sense at least in theory on QEMU. (For example, we've always
|
|
|
59c3cd |
patched "OvmfPkgIa32.dsc" and "OvmfPkgIa32.fdf", even though we never
|
|
|
59c3cd |
build or ship the pure IA32 firmware platform.) Follow suit with
|
|
|
59c3cd |
"AmdSevX64.dsc".
|
|
|
59c3cd |
|
|
|
59c3cd |
Notes about the RHEL-8.2/20190904-37eef91017ad [edk2-stable201908] ->
|
|
|
59c3cd |
RHEL-8.3/20200603-ca407c7246bf [edk2-stable202005] rebase:
|
|
|
59c3cd |
|
|
|
59c3cd |
- Resolve contextual conflict in the DSC files, from upstream commit
|
|
|
59c3cd |
b0ed7ebdebd1 ("OvmfPkg: set fixed FlashNvStorage base addresses with -D
|
|
|
59c3cd |
SMM_REQUIRE", 2020-03-12).
|
|
|
59c3cd |
|
|
|
59c3cd |
Notes about the RHEL-8.1/20190308-89910a39dcfd [edk2-stable201903] ->
|
|
|
59c3cd |
RHEL-8.2/20190904-37eef91017ad [edk2-stable201908] rebase:
|
|
|
59c3cd |
|
|
|
59c3cd |
- no change
|
|
|
59c3cd |
|
|
|
59c3cd |
Notes about the RHEL-8.0/20180508-ee3198e672e2 ->
|
|
|
59c3cd |
RHEL-8.1/20190308-89910a39dcfd rebase:
|
|
|
59c3cd |
|
|
|
59c3cd |
- no change
|
|
|
59c3cd |
|
|
|
59c3cd |
Notes about the RHEL-7.6/ovmf-20180508-2.gitee3198e672e2.el7 ->
|
|
|
59c3cd |
RHEL-8.0/20180508-ee3198e672e2 rebase:
|
|
|
59c3cd |
|
|
|
59c3cd |
- reorder the rebase changelog in the commit message so that it reads like
|
|
|
59c3cd |
a blog: place more recent entries near the top
|
|
|
59c3cd |
- no changes to the patch body
|
|
|
59c3cd |
|
|
|
59c3cd |
Notes about the 20171011-92d07e48907f -> 20180508-ee3198e672e2 rebase:
|
|
|
59c3cd |
|
|
|
59c3cd |
- no change
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
Notes about the 20170228-c325e41585e3 -> 20171011-92d07e48907f rebase:
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
- refresh downstream-only commit 8abc2a6ddad2 against context differences
|
|
Paolo Bonzini |
348500 |
in the DSC files from upstream commit 5e167d7e784c
|
|
Paolo Bonzini |
348500 |
("OvmfPkg/PlatformPei: don't allocate reserved mem varstore if
|
|
Paolo Bonzini |
348500 |
SMM_REQUIRE", 2017-03-12).
|
|
Paolo Bonzini |
348500 |
|
|
|
59c3cd |
Notes about the 20160608b-988715a -> 20170228-c325e41585e3 rebase:
|
|
|
59c3cd |
|
|
|
59c3cd |
- no changes
|
|
|
59c3cd |
|
|
Paolo Bonzini |
348500 |
Contributed-under: TianoCore Contribution Agreement 1.0
|
|
Paolo Bonzini |
348500 |
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
|
|
Paolo Bonzini |
348500 |
(cherry picked from commit 6fa0c4d67c0bb8bde2ddd6db41c19eb0c40b2721)
|
|
Paolo Bonzini |
348500 |
(cherry picked from commit 8abc2a6ddad25af7e88dc0cf57d55dfb75fbf92d)
|
|
|
59c3cd |
(cherry picked from commit b311932d3841c017a0f0fec553edcac365cc2038)
|
|
|
59c3cd |
(cherry picked from commit 61914fb81cf624c9028d015533b400b2794e52d3)
|
|
|
59c3cd |
(cherry picked from commit 2ebf3cc2ae99275d63bb6efd3c22dec76251a853)
|
|
|
59c3cd |
(cherry picked from commit f9b73437b9b231773c1a20e0c516168817a930a2)
|
|
|
59c3cd |
(cherry picked from commit 2cc462ee963d0be119bc97bfc9c70d292a40516f)
|
|
|
59c3cd |
(cherry picked from commit 51e0de961029af84b5bdbfddcc9762b1819d500f)
|
|
Paolo Bonzini |
348500 |
---
|
|
Gerd Hoffmann |
0476d8 |
OvmfPkg/AmdSev/AmdSevX64.dsc | 1 +
|
|
Gerd Hoffmann |
0476d8 |
OvmfPkg/CloudHv/CloudHvX64.dsc | 1 +
|
|
Gerd Hoffmann |
0476d8 |
OvmfPkg/IntelTdx/IntelTdxX64.dsc | 1 +
|
|
Gerd Hoffmann |
0476d8 |
OvmfPkg/Microvm/MicrovmX64.dsc | 1 +
|
|
Gerd Hoffmann |
0476d8 |
OvmfPkg/OvmfPkgIa32.dsc | 1 +
|
|
Gerd Hoffmann |
0476d8 |
OvmfPkg/OvmfPkgIa32X64.dsc | 1 +
|
|
Gerd Hoffmann |
0476d8 |
OvmfPkg/OvmfPkgX64.dsc | 1 +
|
|
Gerd Hoffmann |
0476d8 |
OvmfPkg/PlatformPei/PlatformPei.inf | 1 +
|
|
Gerd Hoffmann |
0476d8 |
OvmfPkg/PlatformPei/Platform.c | 13 +++++++++++++
|
|
Gerd Hoffmann |
0476d8 |
9 files changed, 21 insertions(+)
|
|
Paolo Bonzini |
348500 |
|
|
|
59c3cd |
diff --git a/OvmfPkg/AmdSev/AmdSevX64.dsc b/OvmfPkg/AmdSev/AmdSevX64.dsc
|
|
Gerd Hoffmann |
0476d8 |
index fc1fdb2e2297..ae23094ffc27 100644
|
|
|
59c3cd |
--- a/OvmfPkg/AmdSev/AmdSevX64.dsc
|
|
|
59c3cd |
+++ b/OvmfPkg/AmdSev/AmdSevX64.dsc
|
|
Gerd Hoffmann |
0476d8 |
@@ -524,6 +524,7 @@ [PcdsFixedAtBuild]
|
|
|
59c3cd |
[PcdsDynamicDefault]
|
|
|
59c3cd |
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
|
|
|
59c3cd |
|
|
|
59c3cd |
+ gEfiMdeModulePkgTokenSpaceGuid.PcdResizeXterm|FALSE
|
|
|
59c3cd |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
|
|
Gerd Hoffmann |
ced5d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
|
|
Gerd Hoffmann |
ced5d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
|
|
Gerd Hoffmann |
0476d8 |
diff --git a/OvmfPkg/CloudHv/CloudHvX64.dsc b/OvmfPkg/CloudHv/CloudHvX64.dsc
|
|
Gerd Hoffmann |
0476d8 |
index 92664f319be2..4aa54e4dc3fb 100644
|
|
Gerd Hoffmann |
0476d8 |
--- a/OvmfPkg/CloudHv/CloudHvX64.dsc
|
|
Gerd Hoffmann |
0476d8 |
+++ b/OvmfPkg/CloudHv/CloudHvX64.dsc
|
|
Gerd Hoffmann |
0476d8 |
@@ -574,6 +574,7 @@ [PcdsDynamicDefault]
|
|
Gerd Hoffmann |
0476d8 |
# ($(SMM_REQUIRE) == FALSE)
|
|
Gerd Hoffmann |
0476d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
|
|
Gerd Hoffmann |
0476d8 |
|
|
Gerd Hoffmann |
0476d8 |
+ gEfiMdeModulePkgTokenSpaceGuid.PcdResizeXterm|FALSE
|
|
Gerd Hoffmann |
0476d8 |
!if $(SMM_REQUIRE) == FALSE
|
|
Gerd Hoffmann |
0476d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
|
|
Gerd Hoffmann |
0476d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
|
|
Gerd Hoffmann |
0476d8 |
diff --git a/OvmfPkg/IntelTdx/IntelTdxX64.dsc b/OvmfPkg/IntelTdx/IntelTdxX64.dsc
|
|
Gerd Hoffmann |
0476d8 |
index dd8d446f4a56..ec1aab6f0939 100644
|
|
Gerd Hoffmann |
0476d8 |
--- a/OvmfPkg/IntelTdx/IntelTdxX64.dsc
|
|
Gerd Hoffmann |
0476d8 |
+++ b/OvmfPkg/IntelTdx/IntelTdxX64.dsc
|
|
Gerd Hoffmann |
0476d8 |
@@ -461,6 +461,7 @@ [PcdsDynamicDefault]
|
|
Gerd Hoffmann |
0476d8 |
# ($(SMM_REQUIRE) == FALSE)
|
|
Gerd Hoffmann |
0476d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
|
|
Gerd Hoffmann |
0476d8 |
|
|
Gerd Hoffmann |
0476d8 |
+ gEfiMdeModulePkgTokenSpaceGuid.PcdResizeXterm|FALSE
|
|
Gerd Hoffmann |
0476d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
|
|
Gerd Hoffmann |
0476d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
|
|
Gerd Hoffmann |
0476d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
|
|
Gerd Hoffmann |
0476d8 |
diff --git a/OvmfPkg/Microvm/MicrovmX64.dsc b/OvmfPkg/Microvm/MicrovmX64.dsc
|
|
Gerd Hoffmann |
0476d8 |
index f8fc977cb205..4e5ab89c8f0d 100644
|
|
Gerd Hoffmann |
0476d8 |
--- a/OvmfPkg/Microvm/MicrovmX64.dsc
|
|
Gerd Hoffmann |
0476d8 |
+++ b/OvmfPkg/Microvm/MicrovmX64.dsc
|
|
Gerd Hoffmann |
0476d8 |
@@ -557,6 +557,7 @@ [PcdsDynamicDefault]
|
|
Gerd Hoffmann |
0476d8 |
# ($(SMM_REQUIRE) == FALSE)
|
|
Gerd Hoffmann |
0476d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
|
|
Gerd Hoffmann |
0476d8 |
|
|
Gerd Hoffmann |
0476d8 |
+ gEfiMdeModulePkgTokenSpaceGuid.PcdResizeXterm|FALSE
|
|
Gerd Hoffmann |
0476d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
|
|
Gerd Hoffmann |
0476d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
|
|
Gerd Hoffmann |
0476d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
|
|
Paolo Bonzini |
348500 |
diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc
|
|
Gerd Hoffmann |
0476d8 |
index a9841cbfc3ca..b69e3c05a281 100644
|
|
Paolo Bonzini |
348500 |
--- a/OvmfPkg/OvmfPkgIa32.dsc
|
|
Paolo Bonzini |
348500 |
+++ b/OvmfPkg/OvmfPkgIa32.dsc
|
|
Gerd Hoffmann |
0476d8 |
@@ -585,6 +585,7 @@ [PcdsDynamicDefault]
|
|
|
59c3cd |
# ($(SMM_REQUIRE) == FALSE)
|
|
|
59c3cd |
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
|
|
|
59c3cd |
|
|
|
fdb3e7 |
+ gEfiMdeModulePkgTokenSpaceGuid.PcdResizeXterm|FALSE
|
|
|
59c3cd |
!if $(SMM_REQUIRE) == FALSE
|
|
|
59c3cd |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
|
|
Gerd Hoffmann |
ced5d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
|
|
Paolo Bonzini |
348500 |
diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc
|
|
Gerd Hoffmann |
0476d8 |
index f7949780fa38..726011ec42a5 100644
|
|
Paolo Bonzini |
348500 |
--- a/OvmfPkg/OvmfPkgIa32X64.dsc
|
|
Paolo Bonzini |
348500 |
+++ b/OvmfPkg/OvmfPkgIa32X64.dsc
|
|
Gerd Hoffmann |
0476d8 |
@@ -593,6 +593,7 @@ [PcdsDynamicDefault]
|
|
|
59c3cd |
# ($(SMM_REQUIRE) == FALSE)
|
|
|
59c3cd |
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
|
|
|
59c3cd |
|
|
Paolo Bonzini |
348500 |
+ gEfiMdeModulePkgTokenSpaceGuid.PcdResizeXterm|FALSE
|
|
|
59c3cd |
!if $(SMM_REQUIRE) == FALSE
|
|
|
59c3cd |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
|
|
Gerd Hoffmann |
ced5d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
|
|
Paolo Bonzini |
348500 |
diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc
|
|
Gerd Hoffmann |
0476d8 |
index 1448f925b782..ab2e31ea8f2b 100644
|
|
Paolo Bonzini |
348500 |
--- a/OvmfPkg/OvmfPkgX64.dsc
|
|
Paolo Bonzini |
348500 |
+++ b/OvmfPkg/OvmfPkgX64.dsc
|
|
Gerd Hoffmann |
0476d8 |
@@ -612,6 +612,7 @@ [PcdsDynamicDefault]
|
|
|
59c3cd |
# ($(SMM_REQUIRE) == FALSE)
|
|
|
59c3cd |
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
|
|
|
59c3cd |
|
|
|
fdb3e7 |
+ gEfiMdeModulePkgTokenSpaceGuid.PcdResizeXterm|FALSE
|
|
|
59c3cd |
!if $(SMM_REQUIRE) == FALSE
|
|
|
59c3cd |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
|
|
Gerd Hoffmann |
ced5d8 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
|
|
Gerd Hoffmann |
5eb552 |
diff --git a/OvmfPkg/PlatformPei/PlatformPei.inf b/OvmfPkg/PlatformPei/PlatformPei.inf
|
|
Gerd Hoffmann |
0476d8 |
index 00372fa0ebb5..2dfa357c384a 100644
|
|
Gerd Hoffmann |
5eb552 |
--- a/OvmfPkg/PlatformPei/PlatformPei.inf
|
|
Gerd Hoffmann |
5eb552 |
+++ b/OvmfPkg/PlatformPei/PlatformPei.inf
|
|
Gerd Hoffmann |
0476d8 |
@@ -98,6 +98,7 @@ [Pcd]
|
|
Gerd Hoffmann |
5eb552 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
|
|
Gerd Hoffmann |
5eb552 |
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
|
|
Gerd Hoffmann |
5eb552 |
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved
|
|
Gerd Hoffmann |
5eb552 |
+ gEfiMdeModulePkgTokenSpaceGuid.PcdResizeXterm
|
|
Gerd Hoffmann |
5eb552 |
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode
|
|
Gerd Hoffmann |
5eb552 |
gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable
|
|
Gerd Hoffmann |
5eb552 |
gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack
|
|
Paolo Bonzini |
348500 |
diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c
|
|
Gerd Hoffmann |
0476d8 |
index f006755d5fdb..b8f56902512c 100644
|
|
Paolo Bonzini |
348500 |
--- a/OvmfPkg/PlatformPei/Platform.c
|
|
Paolo Bonzini |
348500 |
+++ b/OvmfPkg/PlatformPei/Platform.c
|
|
Gerd Hoffmann |
0476d8 |
@@ -41,6 +41,18 @@
|
|
Gerd Hoffmann |
0476d8 |
|
|
Gerd Hoffmann |
0476d8 |
#include "Platform.h"
|
|
Gerd Hoffmann |
0476d8 |
|
|
Gerd Hoffmann |
0476d8 |
+#define UPDATE_BOOLEAN_PCD_FROM_FW_CFG(TokenName) \
|
|
Gerd Hoffmann |
0476d8 |
+ do { \
|
|
Gerd Hoffmann |
0476d8 |
+ BOOLEAN Setting; \
|
|
Gerd Hoffmann |
0476d8 |
+ RETURN_STATUS PcdStatus; \
|
|
Gerd Hoffmann |
0476d8 |
+ \
|
|
Gerd Hoffmann |
0476d8 |
+ if (!RETURN_ERROR (QemuFwCfgParseBool ( \
|
|
Gerd Hoffmann |
0476d8 |
+ "opt/ovmf/" #TokenName, &Setting))) { \
|
|
Gerd Hoffmann |
0476d8 |
+ PcdStatus = PcdSetBoolS (TokenName, Setting); \
|
|
Gerd Hoffmann |
0476d8 |
+ ASSERT_RETURN_ERROR (PcdStatus); \
|
|
Gerd Hoffmann |
0476d8 |
+ } \
|
|
Gerd Hoffmann |
0476d8 |
+ } while (0)
|
|
Gerd Hoffmann |
0476d8 |
+
|
|
Gerd Hoffmann |
0476d8 |
EFI_HOB_PLATFORM_INFO mPlatformInfoHob = { 0 };
|
|
Gerd Hoffmann |
0476d8 |
|
|
Gerd Hoffmann |
0476d8 |
EFI_PEI_PPI_DESCRIPTOR mPpiBootMode[] = {
|
|
Gerd Hoffmann |
0476d8 |
@@ -387,6 +399,7 @@ InitializePlatform (
|
|
|
fdb3e7 |
MemTypeInfoInitialization ();
|
|
Gerd Hoffmann |
0476d8 |
MemMapInitialization (&mPlatformInfoHob);
|
|
Paolo Bonzini |
348500 |
NoexecDxeInitialization ();
|
|
Paolo Bonzini |
348500 |
+ UPDATE_BOOLEAN_PCD_FROM_FW_CFG (PcdResizeXterm);
|
|
Paolo Bonzini |
348500 |
}
|
|
Paolo Bonzini |
348500 |
|
|
|
b846ca |
InstallClearCacheCallback ();
|
|
|
59c3cd |
--
|
|
Gerd Hoffmann |
729059 |
2.36.1
|
|
|
59c3cd |
|