@@ -137,6 +137,12 @@ when the user does not provide an environ, then an environ generated
from the ./errata.txt file and the host's kernel version is provided to
all unit tests.
+# Unit test in TDX environment
+
+ All the test cases supported by TDX belong to 'tdx' group, by this
+ command: "EFI_TDX=y ./run_tests.sh -g tdx", all these test cases run
+ in a TDX protected environment.
+
# Contributing
## Directory structure
@@ -56,10 +56,12 @@ arch = i386
[smptest]
file = smptest.flat
smp = 2
+groups = tdx
[smptest3]
file = smptest.flat
smp = 3
+groups = tdx
[vmexit_cpuid]
file = vmexit.flat
@@ -155,6 +157,7 @@ file = hypercall.flat
[idt_test]
file = idt_test.flat
arch = x86_64
+groups = tdx
#[init]
#file = init.flat
@@ -163,6 +166,7 @@ arch = x86_64
file = memory.flat
extra_params = -cpu max
arch = x86_64
+groups = tdx
[msr]
# Use GenuineIntel to ensure SYSENTER MSRs are fully preserved, and to test
@@ -171,6 +175,7 @@ arch = x86_64
# will fail due to shortcomings in KVM.
file = msr.flat
extra_params = -cpu max,vendor=GenuineIntel
+groups = tdx
[pmu]
file = pmu.flat
@@ -207,6 +212,7 @@ file = s3.flat
[setjmp]
file = setjmp.flat
+groups = tdx
[sieve]
file = sieve.flat
@@ -216,23 +222,28 @@ timeout = 180
file = syscall.flat
arch = x86_64
extra_params = -cpu Opteron_G1,vendor=AuthenticAMD
+groups = tdx
[tsc]
file = tsc.flat
extra_params = -cpu kvm64,+rdtscp
+groups = tdx
[tsc_adjust]
file = tsc_adjust.flat
extra_params = -cpu max
+groups = tdx
[xsave]
file = xsave.flat
arch = x86_64
extra_params = -cpu max
+groups = tdx
[rmap_chain]
file = rmap_chain.flat
arch = x86_64
+groups = tdx
[svm]
file = svm.flat
@@ -259,7 +270,7 @@ extra_params = --append "10000000 `date +%s`"
file = pcid.flat
extra_params = -cpu qemu64,+pcid,+invpcid
arch = x86_64
-groups = pcid
+groups = pcid tdx
[pcid-disabled]
file = pcid.flat
@@ -277,10 +288,12 @@ groups = pcid
file = rdpru.flat
extra_params = -cpu max
arch = x86_64
+groups = tdx
[umip]
file = umip.flat
extra_params = -cpu qemu64,+umip
+groups = tdx
[la57]
file = la57.flat
@@ -393,6 +406,7 @@ check = /sys/module/kvm_intel/parameters/allow_smaller_maxphyaddr=Y
[debug]
file = debug.flat
arch = x86_64
+groups = tdx
[hyperv_synic]
file = hyperv_synic.flat
@@ -431,6 +445,7 @@ extra_params = -M q35,kernel-irqchip=split -device intel-iommu,intremap=on,eim=o
file = tsx-ctrl.flat
extra_params = -cpu max
groups = tsx-ctrl
+groups = tdx
[intel_cet]
file = cet.flat
@@ -441,3 +456,4 @@ extra_params = -enable-kvm -m 2048 -cpu host
[intel_tdx]
file = intel_tdx.flat
arch = x86_64
+groups = tdx nodefault