public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 00/14] OvmfPkg: avoid global variables in PEI
@ 2022-12-02 13:09 Gerd Hoffmann
  2022-12-02 13:09 ` [PATCH 01/14] tools_def: remove GCC_IA32_CC_FLAGS/GCC_X64_CC_FLAGS Gerd Hoffmann
                   ` (14 more replies)
  0 siblings, 15 replies; 17+ messages in thread
From: Gerd Hoffmann @ 2022-12-02 13:09 UTC (permalink / raw)
  To: devel
  Cc: Bob Feng, Yuwei Chen, Erdem Aktas, Jordan Justen, Peter Grehan,
	Rebecca Cran, Liming Gao, Ard Biesheuvel, Gerd Hoffmann,
	Jiewen Yao, Min Xu, Brijesh Singh, Oliver Steffen, Pawel Polawski,
	Tom Lendacky, James Bottomley

Writing to global variables changes the PEI firmware volume which in
turn screws up firmware volume measurements.  Fix OvmfPkg to avoid that,
for the most part by using the PlatformInfoHob instead.

Gerd Hoffmann (14):
  tools_def: remove GCC_IA32_CC_FLAGS/GCC_X64_CC_FLAGS
  tools_def: add -fno-omit-frame-pointer to GCC48_{IA32,X64}_CC_FLAGS
  OvmfPkg/PlatformPei: AmdSev: stop using mPlatformInfoHob
  OvmfPkg/PlatformPei: PeiFv: stop using mPlatformInfoHob
  OvmfPkg/PlatformPei Q35 SMM helpers: stop using mPlatformInfoHob
  OvmfPkg/PlatformPei: PeiMemory: stop using mPlatformInfoHob
  OvmfPkg/PlatformPei: MemTypeInfo: stop using mPlatformInfoHob
  OvmfPkg/PlatformPei: NoExec: stop using mPlatformInfoHob
  OvmfPkg/PlatformPei: Verification: stop using mPlatformInfoHob
  OvmfPkg/PlatformPei: remove mPlatformInfoHob
  OvmfPkg/PlatformPei: remove mFeatureControlValue
  OvmfPkg/DebugLibIoPort: use Rom version for PEI
  OvmfPkg/QemuFwCfgLib: rewrite fw_cfg probe
  OvmfPkg/QemuFwCfgLib: remove mQemuFwCfgSupported +
    mQemuFwCfgDmaSupported

 OvmfPkg/AmdSev/AmdSevX64.dsc                  |   4 +-
 OvmfPkg/Bhyve/BhyveX64.dsc                    |   4 +-
 OvmfPkg/Microvm/MicrovmX64.dsc                |   4 +-
 OvmfPkg/OvmfPkgIa32.dsc                       |   4 +-
 OvmfPkg/OvmfPkgIa32X64.dsc                    |   4 +-
 OvmfPkg/OvmfPkgX64.dsc                        |   4 +-
 .../PlatformRomDebugLibIoPort.inf             |   2 +-
 .../Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf  |   5 +-
 OvmfPkg/Include/Library/PlatformInitLib.h     |   6 +
 OvmfPkg/PlatformPei/Platform.h                |  18 +--
 OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c   | 143 ++++++++++--------
 OvmfPkg/PlatformPei/AmdSev.c                  |  14 +-
 OvmfPkg/PlatformPei/FeatureControl.c          |  44 ++++--
 OvmfPkg/PlatformPei/Fv.c                      |   6 +-
 OvmfPkg/PlatformPei/MemDetect.c               |  56 +++----
 OvmfPkg/PlatformPei/MemTypeInfo.c             |   4 +-
 OvmfPkg/PlatformPei/Platform.c                |  92 ++++++-----
 BaseTools/Conf/tools_def.template             |   6 +-
 18 files changed, 232 insertions(+), 188 deletions(-)

-- 
2.38.1


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-12-14 17:27 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-02 13:09 [PATCH 00/14] OvmfPkg: avoid global variables in PEI Gerd Hoffmann
2022-12-02 13:09 ` [PATCH 01/14] tools_def: remove GCC_IA32_CC_FLAGS/GCC_X64_CC_FLAGS Gerd Hoffmann
2022-12-02 13:09 ` [PATCH 02/14] tools_def: add -fno-omit-frame-pointer to GCC48_{IA32,X64}_CC_FLAGS Gerd Hoffmann
2022-12-02 13:09 ` [PATCH 03/14] OvmfPkg/PlatformPei: AmdSev: stop using mPlatformInfoHob Gerd Hoffmann
2022-12-02 13:09 ` [PATCH 04/14] OvmfPkg/PlatformPei: PeiFv: " Gerd Hoffmann
2022-12-02 13:10 ` [PATCH 05/14] OvmfPkg/PlatformPei Q35 SMM helpers: " Gerd Hoffmann
2022-12-02 13:10 ` [PATCH 06/14] OvmfPkg/PlatformPei: PeiMemory: " Gerd Hoffmann
2022-12-02 13:10 ` [PATCH 07/14] OvmfPkg/PlatformPei: MemTypeInfo: " Gerd Hoffmann
2022-12-02 13:10 ` [PATCH 08/14] OvmfPkg/PlatformPei: NoExec: " Gerd Hoffmann
2022-12-02 13:10 ` [PATCH 09/14] OvmfPkg/PlatformPei: Verification: " Gerd Hoffmann
2022-12-02 13:10 ` [PATCH 10/14] OvmfPkg/PlatformPei: remove mPlatformInfoHob Gerd Hoffmann
2022-12-02 13:10 ` [PATCH 11/14] OvmfPkg/PlatformPei: remove mFeatureControlValue Gerd Hoffmann
2022-12-02 13:10 ` [PATCH 12/14] OvmfPkg/DebugLibIoPort: use Rom version for PEI Gerd Hoffmann
2022-12-02 13:10 ` [PATCH 13/14] OvmfPkg/QemuFwCfgLib: rewrite fw_cfg probe Gerd Hoffmann
2022-12-02 13:10 ` [PATCH 14/14] OvmfPkg/QemuFwCfgLib: remove mQemuFwCfgSupported + mQemuFwCfgDmaSupported Gerd Hoffmann
2022-12-12 16:58 ` [PATCH 00/14] OvmfPkg: avoid global variables in PEI Lendacky, Thomas
2022-12-14 17:26   ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox