selftests: complete kselftest include centralizationThis follow-up patch completes centralization of kselftest.h andksefltest_harness.h includes in remaining seltests files, replacing allrelative
selftests: complete kselftest include centralizationThis follow-up patch completes centralization of kselftest.h andksefltest_harness.h includes in remaining seltests files, replacing allrelative paths with a non-relative paths using shared -I include path inlib.mkTested with gcc-13.3 and clang-18.1, and cross-compiled successfully onriscv, arm64, x86_64 and powerpc arch.[reddybalavignesh9979@gmail.com: add selftests include path for kselftest.h] Link: https://lkml.kernel.org/r/20251017090201.317521-1-reddybalavignesh9979@gmail.comLink: https://lkml.kernel.org/r/20251016104409.68985-1-reddybalavignesh9979@gmail.comSigned-off-by: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>Suggested-by: Andrew Morton <akpm@linux-foundation.org>Link: https://lore.kernel.org/lkml/20250820143954.33d95635e504e94df01930d0@linux-foundation.org/Reviewed-by: Wei Yang <richard.weiyang@gmail.com>Cc: David Hildenbrand <david@redhat.com>Cc: David S. Miller <davem@davemloft.net>Cc: Eric Dumazet <edumazet@google.com>Cc: Günther Noack <gnoack@google.com>Cc: Jakub Kacinski <kuba@kernel.org>Cc: Liam Howlett <liam.howlett@oracle.com>Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>Cc: Michal Hocko <mhocko@suse.com>Cc: Mickael Salaun <mic@digikod.net>Cc: Ming Lei <ming.lei@redhat.com>Cc: Paolo Abeni <pabeni@redhat.com>Cc: Shuah Khan <shuah@kernel.org>Cc: Simon Horman <horms@kernel.org>Cc: Suren Baghdasaryan <surenb@google.com>Cc: Vlastimil Babka <vbabka@suse.cz>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
show more ...
selftests/tdx: add gitignore filetdx builds a tdx_guest_test binary that can be ignored by git.Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>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 <javier.carrasco.cruz@gmail.com>Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
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 <mathieu.desnoyers@efficios.com>Cc: Shuah Khan <shuah@kernel.org>Cc: linux-kselftest@vger.kernel.orgCc: Ingo Molnar <mingo@redhat.com>Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
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 <sathyanarayanan.kuppuswamy@linux.intel.com>Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>Reviewed-by: Tony Luck <tony.luck@intel.com>Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>Acked-by: Kai Huang <kai.huang@intel.com>Acked-by: Wander Lairson Costa <wander@redhat.com>Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>Link: https://lore.kernel.org/all/20221116223820.819090-4-sathyanarayanan.kuppuswamy%40linux.intel.com