=========================build selftest sample log=========================== [root@localhost kinetic]# cd tools/ [root@localhost tools]# ls accounting bpf cgroup edid gpio include laptop Makefile pci power spi time virtio arch build counter firewire hv io_uring leds memory-model pcmcia rcu testing tracing vm bootconfig certs debugging firmware iio kvm lib objtool perf scripts thermal usb wmi [root@localhost tools]# cd testing [root@localhost testing]# ls crypto cxl fault-injection ktest kunit memblock nvdimm radix-tree scatterlist selftests vsock [root@localhost testing]# cd selftests [root@localhost selftests]# ls alsa drivers ir lib.mk mqueue pstore sigaltstack tpm2 arm64 efivarfs kcmp livepatch nci ptp size uevent bpf exec kexec lkdtm net ptrace sparc64 user breakpoints filesystems kmod locking netfilter rcutorture splice user_events capabilities firmware kselftest Makefile nsfs resctrl static_keys vDSO cgroup fpu kselftest_deps.sh media_tests ntb rlimits sync vm clone3 ftrace kselftest.h membarrier openat2 rseq syscall_user_dispatch watchdog core futex kselftest_harness.h memfd perf_events rtc sysctl wireguard cpufreq gen_kselftest_tar.sh kselftest_install.sh memory-hotplug pidfd run_kselftest.sh tc-testing x86 cpu-hotplug gpio kselftest_module.h mincore pid_namespace safesetid tdx zram damon ia64 kvm mount powerpc sched timens dma intel_pstate landlock mount_setattr prctl seccomp timers dmabuf-heaps ipc lib move_mount_set_group proc sgx tmpfs [root@localhost selftests]# cd tdx/ [root@localhost tdx]# ls config Makefile tdx_attest_test.c [root@localhost tdx]# make gcc -O3 -Wl,-no-as-needed -Wall -static -I../../../../tools/arch/x86/include tdx_attest_test.c -o /home/zhiming/ubuntuv2/kinetic/tools/testing/selftests/tdx/tdx_attest_test [root@localhost tdx]# [root@localhost tdx]# ls config Makefile tdx_attest_test tdx_attest_test.c ===================boot td guest and run sample log======================== Kernel 5.19.0-ubuntu-tdxguest-00001-gc1cb7b82e933-dirty on an x86_64 td-guest login: root Password: Last login: Mon Aug 15 04:42:01 on hvc0 ======= WELCOME TO TDX GUEST ======= Version : Linux MVP Stack 2022WW22 Release : http://cpio-devops-pub.sh.intel.com/tdx/tdx_release.html Created : Thu Jun 2 01:45:41 EDT 2022 ---------------------------------------- [root@td-guest ~]# ls Installer Intel_TDX_Attestation_software_stack_Installation_Guide.pdf Intel_TDX_Data_Center_Attestation_Primitives_Release_Notes_Linux_1.10.pdf original-ks.cfg Report tdx-attestation.zip tf y-cruncher [root@td-guest ~]# ls /dev/ | grep tdx* crw------- 1 root root 10, 126 Aug 15 2022 tdx-guest [root@td-guest ~]# cd /tmp/ [root@td-guest tmp]# ls systemd-private-f8dddba4be0a4520b462afb1eae042eb-chronyd.service-BULOIi tdx_attest_test [root@td-guest tmp]# ./tdx_attest_test TAP version 13 1..1 # Starting 1 tests from 1 test cases. # RUN global.verify_report ... # OK global.verify_report ok 1 global.verify_report # PASSED: 1 / 1 tests passed. # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 [root@td-guest tmp]# [root@td-guest tmp]# date Mon Aug 15 04:51:24 EDT 2022