Blame SOURCES/0013-OvmfPkg-take-PcdResizeXterm-from-the-QEMU-command-li.patch

0e3eb6
From 9ea7b3f689bf7d21b869adb829139be7eb91bb33 Mon Sep 17 00:00:00 2001
7fdf80
From: Laszlo Ersek <lersek@redhat.com>
7fdf80
Date: Wed, 14 Oct 2015 15:59:06 +0200
7fdf80
Subject: OvmfPkg: take PcdResizeXterm from the QEMU command line (RH only)
7fdf80
b6c182
Notes about the RHEL-8.3/20200603-ca407c7246bf [edk2-stable202005] ->
b6c182
RHEL-8.5/20210520-e1999b264f1f [edk2-stable202105] rebase:
b6c182
b6c182
- Extend the DSC change to the new OvmfPkg/AmdSev platform, which has been
b6c182
  introduced upstream in commit 30d277ed7a82 ("OvmfPkg/Amdsev: Base commit
b6c182
  to build encrypted boot specific OVMF", 2020-12-14), for TianoCore#3077.
b6c182
b6c182
  We've always patched all those DSC/FDF files in OvmfPkg down-stream that
b6c182
  made sense at least in theory on QEMU. (For example, we've always
b6c182
  patched "OvmfPkgIa32.dsc" and "OvmfPkgIa32.fdf", even though we never
b6c182
  build or ship the pure IA32 firmware platform.) Follow suit with
b6c182
  "AmdSevX64.dsc".
b6c182
1d2c45
Notes about the RHEL-8.2/20190904-37eef91017ad [edk2-stable201908] ->
1d2c45
RHEL-8.3/20200603-ca407c7246bf [edk2-stable202005] rebase:
1d2c45
1d2c45
- Resolve contextual conflict in the DSC files, from upstream commit
1d2c45
  b0ed7ebdebd1 ("OvmfPkg: set fixed FlashNvStorage base addresses with -D
1d2c45
  SMM_REQUIRE", 2020-03-12).
1d2c45
1dc609
Notes about the RHEL-8.1/20190308-89910a39dcfd [edk2-stable201903] ->
1dc609
RHEL-8.2/20190904-37eef91017ad [edk2-stable201908] rebase:
1dc609
1dc609
- no change
1dc609
7fdf80
Notes about the RHEL-8.0/20180508-ee3198e672e2 ->
7fdf80
RHEL-8.1/20190308-89910a39dcfd rebase:
7fdf80
7fdf80
- no change
7fdf80
7fdf80
Notes about the RHEL-7.6/ovmf-20180508-2.gitee3198e672e2.el7 ->
7fdf80
RHEL-8.0/20180508-ee3198e672e2 rebase:
7fdf80
7fdf80
- reorder the rebase changelog in the commit message so that it reads like
7fdf80
  a blog: place more recent entries near the top
7fdf80
- no changes to the patch body
7fdf80
7fdf80
Notes about the 20171011-92d07e48907f -> 20180508-ee3198e672e2 rebase:
7fdf80
7fdf80
- no change
7fdf80
7fdf80
Notes about the 20170228-c325e41585e3 -> 20171011-92d07e48907f rebase:
7fdf80
7fdf80
- refresh downstream-only commit 8abc2a6ddad2 against context differences
7fdf80
  in the DSC files from upstream commit 5e167d7e784c
7fdf80
  ("OvmfPkg/PlatformPei: don't allocate reserved mem varstore if
7fdf80
  SMM_REQUIRE", 2017-03-12).
7fdf80
7fdf80
Notes about the 20160608b-988715a -> 20170228-c325e41585e3 rebase:
7fdf80
7fdf80
- no changes
7fdf80
7fdf80
Contributed-under: TianoCore Contribution Agreement 1.0
7fdf80
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
7fdf80
(cherry picked from commit 6fa0c4d67c0bb8bde2ddd6db41c19eb0c40b2721)
7fdf80
(cherry picked from commit 8abc2a6ddad25af7e88dc0cf57d55dfb75fbf92d)
7fdf80
(cherry picked from commit b311932d3841c017a0f0fec553edcac365cc2038)
7fdf80
(cherry picked from commit 61914fb81cf624c9028d015533b400b2794e52d3)
7fdf80
(cherry picked from commit 2ebf3cc2ae99275d63bb6efd3c22dec76251a853)
1dc609
(cherry picked from commit f9b73437b9b231773c1a20e0c516168817a930a2)
1d2c45
(cherry picked from commit 2cc462ee963d0be119bc97bfc9c70d292a40516f)
b6c182
(cherry picked from commit 51e0de961029af84b5bdbfddcc9762b1819d500f)
7fdf80
---
b6c182
 OvmfPkg/AmdSev/AmdSevX64.dsc        | 1 +
7fdf80
 OvmfPkg/OvmfPkgIa32.dsc             | 1 +
7fdf80
 OvmfPkg/OvmfPkgIa32X64.dsc          | 1 +
7fdf80
 OvmfPkg/OvmfPkgX64.dsc              | 1 +
7fdf80
 OvmfPkg/PlatformPei/Platform.c      | 1 +
0e3eb6
 OvmfPkg/PlatformPei/PlatformPei.inf | 2 ++
0e3eb6
 6 files changed, 7 insertions(+)
b6c182
b6c182
diff --git a/OvmfPkg/AmdSev/AmdSevX64.dsc b/OvmfPkg/AmdSev/AmdSevX64.dsc
0e3eb6
index 5ee5445116..6ea3621225 100644
b6c182
--- a/OvmfPkg/AmdSev/AmdSevX64.dsc
b6c182
+++ b/OvmfPkg/AmdSev/AmdSevX64.dsc
b6c182
@@ -534,6 +534,7 @@
b6c182
 [PcdsDynamicDefault]
b6c182
   gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
b6c182
 
b6c182
+  gEfiMdeModulePkgTokenSpaceGuid.PcdResizeXterm|FALSE
b6c182
   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
b6c182
   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
b6c182
   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
7fdf80
diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc
0e3eb6
index 6a5be97c05..4cacf0ea94 100644
7fdf80
--- a/OvmfPkg/OvmfPkgIa32.dsc
7fdf80
+++ b/OvmfPkg/OvmfPkgIa32.dsc
b6c182
@@ -594,6 +594,7 @@
7fdf80
   #   ($(SMM_REQUIRE) == FALSE)
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
7fdf80
 
7fdf80
+  gEfiMdeModulePkgTokenSpaceGuid.PcdResizeXterm|FALSE
1d2c45
 !if $(SMM_REQUIRE) == FALSE
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
7fdf80
diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc
0e3eb6
index 71227d1b70..6225f8e095 100644
7fdf80
--- a/OvmfPkg/OvmfPkgIa32X64.dsc
7fdf80
+++ b/OvmfPkg/OvmfPkgIa32X64.dsc
b6c182
@@ -600,6 +600,7 @@
7fdf80
   #   ($(SMM_REQUIRE) == FALSE)
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
7fdf80
 
7fdf80
+  gEfiMdeModulePkgTokenSpaceGuid.PcdResizeXterm|FALSE
1d2c45
 !if $(SMM_REQUIRE) == FALSE
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
7fdf80
diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc
0e3eb6
index 52f7598cf1..b66fc67563 100644
7fdf80
--- a/OvmfPkg/OvmfPkgX64.dsc
7fdf80
+++ b/OvmfPkg/OvmfPkgX64.dsc
b6c182
@@ -600,6 +600,7 @@
7fdf80
   #   ($(SMM_REQUIRE) == FALSE)
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
7fdf80
 
7fdf80
+  gEfiMdeModulePkgTokenSpaceGuid.PcdResizeXterm|FALSE
1d2c45
 !if $(SMM_REQUIRE) == FALSE
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
7fdf80
diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c
0e3eb6
index df2d9ad015..d0e2c08de9 100644
7fdf80
--- a/OvmfPkg/PlatformPei/Platform.c
7fdf80
+++ b/OvmfPkg/PlatformPei/Platform.c
0e3eb6
@@ -752,6 +752,7 @@ InitializePlatform (
1d2c45
     MemTypeInfoInitialization ();
7fdf80
     MemMapInitialization ();
7fdf80
     NoexecDxeInitialization ();
7fdf80
+    UPDATE_BOOLEAN_PCD_FROM_FW_CFG (PcdResizeXterm);
7fdf80
   }
7fdf80
 
7fdf80
   InstallClearCacheCallback ();
7fdf80
diff --git a/OvmfPkg/PlatformPei/PlatformPei.inf b/OvmfPkg/PlatformPei/PlatformPei.inf
0e3eb6
index 67eb7aa716..7d26b43680 100644
7fdf80
--- a/OvmfPkg/PlatformPei/PlatformPei.inf
7fdf80
+++ b/OvmfPkg/PlatformPei/PlatformPei.inf
0e3eb6
@@ -93,6 +93,8 @@
0e3eb6
   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved
0e3eb6
+  gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration
7fdf80
+  gEfiMdeModulePkgTokenSpaceGuid.PcdResizeXterm
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable
7fdf80
   gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack
7fdf80
-- 
b6c182
2.27.0
7fdf80