mbox series

[v2,0/2] Add measurement and event log support for CC platforms

Message ID 20240215030002.281456-1-sathyanarayanan.kuppuswamy@linux.intel.com
Headers show
Series Add measurement and event log support for CC platforms | expand

Message

Kuppuswamy Sathyanarayanan Feb. 15, 2024, 3 a.m. UTC
In a Confidential Computing (CC) environment, not all platforms
implement TPM support. Instead, it may support measurement and event
logging based upon the hardware Trusted Execution Environment (TEE)
capability. For such cases, UEFI specification [1] defines an
alternative measurement protocol and interfaces. This patch set
enables this support in EFI bootstub.

https://uefi.org/specs/UEFI/2.10/38_Confidential_Computing.html#efi-cc-measurement-protocol [1]

Changes since v1:

* Add missing tagged event data.
* Add support for get_event_log().

Kuppuswamy Sathyanarayanan (2):
  efi/libstub: Add Confidential Computing (CC) measurement support
  efi/libstub: Add get_event_log() support for CC platforms

 .../firmware/efi/libstub/efi-stub-helper.c    | 127 ++++++++++++++----
 drivers/firmware/efi/libstub/efi-stub.c       |   2 +-
 drivers/firmware/efi/libstub/efistub.h        |  78 ++++++++++-
 drivers/firmware/efi/libstub/tpm.c            |  78 +++++++----
 drivers/firmware/efi/libstub/x86-stub.c       |   2 +-
 include/linux/efi.h                           |   4 +
 6 files changed, 235 insertions(+), 56 deletions(-)