Linux Confidential Computing Development
 help / color / mirror / Atom feed
* [PATCH] x86/virt/tdx: Don't print error if CPU doesn't support TDX
@ 2026-11-17 19:00 Nikolay Borisov
  2026-11-17 19:07 ` Borislav Petkov
  0 siblings, 1 reply; 4+ messages in thread
From: Nikolay Borisov @ 2026-11-17 19:00 UTC (permalink / raw)
  To: x86; +Cc: seanjc, kvm, linux-coco, Nikolay Borisov

There's still plenty of Intel CPUs which do not support TDX and when a
recent kernel is booted on those the user always sees the following
error:

	virt/tdx TDX not supported by hostplatform.

The same is also printed on all AMD CPUs. Fix by using pr_info.

Signed-off-by: Nikolay Borisov <nik.borisov@suse.com>
---

Contrary to Pet Shop Boy's song - it's not a sin to not support TDX, yet :)

 arch/x86/virt/vmx/tdx/tdx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/virt/vmx/tdx/tdx.c b/arch/x86/virt/vmx/tdx/tdx.c
index 96ced0494b68..b2962da24701 100644
--- a/arch/x86/virt/vmx/tdx/tdx.c
+++ b/arch/x86/virt/vmx/tdx/tdx.c
@@ -1276,7 +1276,7 @@ static __init int tdx_enable(void)
 	int ret;
 
 	if (!cpu_feature_enabled(X86_FEATURE_TDX_HOST_PLATFORM)) {
-		pr_err("TDX not supported by the host platform\n");
+		pr_info("TDX not supported by the host platform\n");
 		return -ENODEV;
 	}
 
--
2.56.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-17 19:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-17 19:00 [PATCH] x86/virt/tdx: Don't print error if CPU doesn't support TDX Nikolay Borisov
2026-11-17 19:07 ` Borislav Petkov
2026-11-17 19:37   ` Sean Christopherson
2026-11-17 19:59     ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox