selftests/tdx: add gitignore filetdx builds a tdx_guest_test binary that can be ignored by git.Signed-off-by: Javier Carrasco <[email protected]>Signed-off-by: Shuah Khan <skhan@lin
selftests/tdx: add gitignore filetdx builds a tdx_guest_test binary that can be ignored by git.Signed-off-by: Javier Carrasco <[email protected]>Signed-off-by: Shuah Khan <[email protected]>
show more ...
selftests: tdx: Use installed kernel headers search pathUse $(KHDR_INCLUDES) as lookup path for installed kernel headers ratherthan using kernel headers in include/uapi from the source kernel tree
selftests: tdx: Use installed kernel headers search pathUse $(KHDR_INCLUDES) as lookup path for installed kernel headers ratherthan using kernel headers in include/uapi from the source kernel treekernel headers.Signed-off-by: Mathieu Desnoyers <[email protected]>Cc: Shuah Khan <[email protected]>Cc: [email protected]Cc: Ingo Molnar <[email protected]>Signed-off-by: Shuah Khan <[email protected]>
selftests/tdx: Test TDX attestation GetReport supportAttestation is used to verify the trustworthiness of a TDX guest.During the guest bring-up, the Intel TDX module measures and recordsthe initi
selftests/tdx: Test TDX attestation GetReport supportAttestation is used to verify the trustworthiness of a TDX guest.During the guest bring-up, the Intel TDX module measures and recordsthe initial contents and configuration of the guest, and at runtime,guest software uses runtime measurement registers (RMTRs) to measureand record details related to kernel image, command line params, ACPItables, initrd, etc. At guest runtime, the attestation process is usedto attest to these measurements.The first step in the TDX attestation process is to get the TDREPORTdata. It is a fixed size data structure generated by the TDX modulewhich includes the above mentioned measurements data, a MAC ID toprotect the integrity of the TDREPORT, and a 64-Byte of user specifieddata passed during TDREPORT request which can uniquely identify theTDREPORT.Intel's TDX guest driver exposes TDX_CMD_GET_REPORT0 IOCTL interface toenable guest userspace to get the TDREPORT subtype 0.Add a kernel self test module to test this ABI and verify the validityof the generated TDREPORT.Signed-off-by: Kuppuswamy Sathyanarayanan <[email protected]>Signed-off-by: Dave Hansen <[email protected]>Reviewed-by: Tony Luck <[email protected]>Reviewed-by: Mika Westerberg <[email protected]>Acked-by: Kai Huang <[email protected]>Acked-by: Wander Lairson Costa <[email protected]>Acked-by: Kirill A. Shutemov <[email protected]>Link: https://lore.kernel.org/all/20221116223820.819090-4-sathyanarayanan.kuppuswamy%40linux.intel.com