[edk2-devel] [PATCH v3 0/4] OvmfPkg: Disable the TPM 2 platform hierarchy

Stefan Berger posted 4 patches 2 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/edk2 tags/patchew/20210915012506.2619693-1-stefanb@linux.ibm.com
OvmfPkg/AmdSev/AmdSevX64.dsc                  |  8 ++++++++
OvmfPkg/AmdSev/AmdSevX64.fdf                  |  2 ++
.../PlatformBootManagerLib/BdsPlatform.c      | 19 +++++++++++--------
.../PlatformBootManagerLibBhyve/BdsPlatform.c | 17 ++++++++++-------
.../PlatformBootManagerLibGrub/BdsPlatform.c  | 17 ++++++++++-------
.../DxeTcg2PhysicalPresenceLib.c              |  5 +++++
.../DxeTcg2PhysicalPresenceLib.inf            |  1 +
OvmfPkg/OvmfPkgIa32.dsc                       |  8 ++++++++
OvmfPkg/OvmfPkgIa32.fdf                       |  2 ++
OvmfPkg/OvmfPkgIa32X64.dsc                    |  8 ++++++++
OvmfPkg/OvmfPkgIa32X64.fdf                    |  2 ++
OvmfPkg/OvmfPkgX64.dsc                        |  8 ++++++++
OvmfPkg/OvmfPkgX64.fdf                        |  2 ++
13 files changed, 77 insertions(+), 22 deletions(-)
[edk2-devel] [PATCH v3 0/4] OvmfPkg: Disable the TPM 2 platform hierarchy
Posted by Stefan Berger 2 years, 7 months ago
This series of patches adds support for disabling the TPM 2 platform
hierarchy to Ovmf. To be able to do this we have to handle TPM 2
physical presence interface (PPI) opcodes before the TPM 2 platform
hierarchy is disabled otherwise TPM 2 commands that are sent due to the
PPI opcodes may fail if the platform hierarchy is already disabled.
Therefore, we need to invoke the handler function
Tcg2PhysicalPresenceLibProcessRequest from within
PlatformBootManagerBeforeConsole. Since handling of PPI opcodes may require
interaction with the user, we also move PlatformInitializeConsole 
to before the handling of PPI codes so that the keyboard is available
when needed. The PPI handling code will activate the default consoles
only if it requires user interaction.

Regards,
   Stefan

v3:
 - Added Yao's R-b's
 - Added Amd, Bhyve, and Ovmf maintainers and reviewers to Cc
 =
v2:
 - 1/4: Added missing link library
 - 2/4: Modified other BdsPlatform.c files as well
 - Added Yao's comments to 1/2 and 2/2


Stefan Berger (4):
  OvmfPkg/TPM PPI: Connect default consoles for user interaction
  OvmfPkg: Handle TPM 2 physical presence opcodes much earlier
  OvmfPkg: Reference new Tcg2PlatformDxe in the build system for
    compilation
  OvmfPkg: Reference new Tcg2PlatformPei in the build system

 OvmfPkg/AmdSev/AmdSevX64.dsc                  |  8 ++++++++
 OvmfPkg/AmdSev/AmdSevX64.fdf                  |  2 ++
 .../PlatformBootManagerLib/BdsPlatform.c      | 19 +++++++++++--------
 .../PlatformBootManagerLibBhyve/BdsPlatform.c | 17 ++++++++++-------
 .../PlatformBootManagerLibGrub/BdsPlatform.c  | 17 ++++++++++-------
 .../DxeTcg2PhysicalPresenceLib.c              |  5 +++++
 .../DxeTcg2PhysicalPresenceLib.inf            |  1 +
 OvmfPkg/OvmfPkgIa32.dsc                       |  8 ++++++++
 OvmfPkg/OvmfPkgIa32.fdf                       |  2 ++
 OvmfPkg/OvmfPkgIa32X64.dsc                    |  8 ++++++++
 OvmfPkg/OvmfPkgIa32X64.fdf                    |  2 ++
 OvmfPkg/OvmfPkgX64.dsc                        |  8 ++++++++
 OvmfPkg/OvmfPkgX64.fdf                        |  2 ++
 13 files changed, 77 insertions(+), 22 deletions(-)

-- 
2.31.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#80680): https://edk2.groups.io/g/devel/message/80680
Mute This Topic: https://groups.io/mt/85617946/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-