[edk2-devel] [PATCH v2 00/11] support QEMU's "SMRAM at default SMBASE" feature

Laszlo Ersek lersek at redhat.com
Wed Jan 29 21:44:01 UTC 2020


Ref:        https://bugzilla.tianocore.org/show_bug.cgi?id=1512
Repo:       https://github.com/lersek/edk2.git
Branch:     smram_at_default_smbase_bz_1512_wave_1_v2
Supersedes: <20190924113505.27272-1-lersek at redhat.com>

V1 is archived at:
- http://mid.mail-archive.com/20190924113505.27272-1-lersek@redhat.com
- https://edk2.groups.io/g/devel/message/47924

Igor's patch set, mentioned in the v1 blurb, has been merged into QEMU
meanwhile. The relevant QEMU commit is f404220e279c ("q35: implement
128K SMRAM at default SMBASE address", 2020-01-22).

In v2:
- trim the Cc list

- pick up Jiewen's R-b for patches #1 through #9, from:
  - http://mid.mail-archive.com/74D8A39837DF1E4DA445A8C0B3885C503F7CBCB2@shsmsx102.ccr.corp.intel.com
  - https://edk2.groups.io/g/devel/message/48166

- add patch #10, and update patch #11, for satisfying Jiewen's condition
  on his R-b.

Cc: Anthony Perard <anthony.perard at citrix.com>
Cc: Ard Biesheuvel <ard.biesheuvel at linaro.org>
Cc: Jiewen Yao <jiewen.yao at intel.com>
Cc: Jordan Justen <jordan.l.justen at intel.com>
Cc: Julien Grall <julien at xen.org>

Thanks,
Laszlo

Laszlo Ersek (11):
  OvmfPkg: introduce PcdQ35SmramAtDefaultSmbase
  OvmfPkg/IndustryStandard: increase vertical whitespace in Q35 macro
    defs
  OvmfPkg/IndustryStandard: add MCH_DEFAULT_SMBASE* register macros
  OvmfPkg/PlatformPei: factor out Q35BoardVerification()
  OvmfPkg/PlatformPei: detect SMRAM at default SMBASE (skeleton)
  OvmfPkg/PlatformPei: assert there's no permanent PEI RAM at default
    SMBASE
  OvmfPkg/PlatformPei: reserve the SMRAM at the default SMBASE, if it
    exists
  OvmfPkg/SEV: don't manage the lifecycle of the SMRAM at the default
    SMBASE
  OvmfPkg/SmmAccess: close and lock SMRAM at default SMBASE
  OvmfPkg: introduce PcdCsmEnable feature flag
  OvmfPkg/PlatformPei: detect SMRAM at default SMBASE (for real)

 OvmfPkg/Include/IndustryStandard/Q35MchIch9.h           | 106 +++++++++++---------
 OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c   |  21 +++-
 OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf |   4 +
 OvmfPkg/OvmfPkg.dec                                     |  11 ++
 OvmfPkg/OvmfPkgIa32.dsc                                 |   4 +
 OvmfPkg/OvmfPkgIa32X64.dsc                              |   4 +
 OvmfPkg/OvmfPkgX64.dsc                                  |   4 +
 OvmfPkg/OvmfXen.dsc                                     |   3 +
 OvmfPkg/PlatformPei/AmdSev.c                            |  24 ++++-
 OvmfPkg/PlatformPei/MemDetect.c                         |  94 ++++++++++++++---
 OvmfPkg/PlatformPei/Platform.c                          |  24 +++++
 OvmfPkg/PlatformPei/Platform.h                          |   7 ++
 OvmfPkg/PlatformPei/PlatformPei.inf                     |   2 +
 OvmfPkg/SmmAccess/SmmAccess2Dxe.c                       |   7 ++
 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf                     |   1 +
 OvmfPkg/SmmAccess/SmmAccessPei.c                        |   6 ++
 OvmfPkg/SmmAccess/SmmAccessPei.inf                      |   1 +
 OvmfPkg/SmmAccess/SmramInternal.c                       |  25 +++++
 OvmfPkg/SmmAccess/SmramInternal.h                       |   8 ++
 19 files changed, 285 insertions(+), 71 deletions(-)

-- 
2.19.1.3.g30247aa5d201


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#53545): https://edk2.groups.io/g/devel/message/53545
Mute This Topic: https://groups.io/mt/70252369/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list