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