From: Zhenzhong Duan <zhenzhong.duan@xxxxxxxxx> The syscall TF is unsupported in TDX, therefore skip it directly. Signed-off-by: Zhenzhong Duan <zhenzhong.duan@xxxxxxxxx> Reviewed-by: Yu Zhang <yu.c.zhang@xxxxxxxxx> Link: https://lore.kernel.org/r/20220303071907.650203-16-zhenzhong.duan@xxxxxxxxx Co-developed-by: Qian Wen <qian.wen@xxxxxxxxx> Signed-off-by: Qian Wen <qian.wen@xxxxxxxxx> --- x86/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x86/syscall.c b/x86/syscall.c index 402d3973..32ab143f 100644 --- a/x86/syscall.c +++ b/x86/syscall.c @@ -5,6 +5,7 @@ #include "msr.h" #include "desc.h" #include "fwcfg.h" +#include "tdx.h" static void test_syscall_lazy_load(void) { @@ -106,7 +107,7 @@ int main(int ac, char **av) { test_syscall_lazy_load(); - if (!no_test_device || !is_intel()) + if ((!no_test_device || !is_intel()) && !is_tdx_guest()) test_syscall_tf(); else report_skip("syscall TF handling"); -- 2.25.1