]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/tdx: Add tdx_mcall_extend_rtmr() interface
authorCedric Xing <cedric.xing@intel.com>
Tue, 6 May 2025 22:57:09 +0000 (17:57 -0500)
committerDan Williams <dan.j.williams@intel.com>
Fri, 9 May 2025 02:17:43 +0000 (19:17 -0700)
commit3f88ca9614219cb29548669e18677d2e32099399
treea3061b79b56cc9906112c6e6460a15b71c624a07
parentf6953f1f9ec4ad68651d7c677f0c065cb4c1edf7
x86/tdx: Add tdx_mcall_extend_rtmr() interface

The TDX guest exposes one MRTD (Build-time Measurement Register) and four
RTMR (Run-time Measurement Register) registers to record the build and boot
measurements of a virtual machine (VM). These registers are similar to PCR
(Platform Configuration Register) registers in the TPM (Trusted Platform
Module) space. This measurement data is used to implement security features
like attestation and trusted boot.

To facilitate updating the RTMR registers, the TDX module provides support
for the `TDG.MR.RTMR.EXTEND` TDCALL which can be used to securely extend
the RTMR registers.

Add helper function to update RTMR registers. It will be used by the TDX
guest driver in enabling RTMR extension support.

Co-developed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Cedric Xing <cedric.xing@intel.com>
Acked-by: Dionna Amalie Glaze <dionnaglaze@google.com>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://patch.msgid.link/20250506-tdx-rtmr-v6-3-ac6ff5e9d58a@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
arch/x86/coco/tdx/tdx.c
arch/x86/include/asm/shared/tdx.h
arch/x86/include/asm/tdx.h