From: Nikolay Borisov <nik.borisov@suse.com>
To: x86@kernel.org
Cc: seanjc@google.com, kvm@vger.kernel.org,
linux-coco@lists.linux.dev,
Nikolay Borisov <nik.borisov@suse.com>
Subject: [PATCH] x86/virt/tdx: Don't print error if CPU doesn't support TDX
Date: Tue, 17 Nov 2026 21:00:41 +0200 [thread overview]
Message-ID: <20261117190041.158949-1-nik.borisov@suse.com> (raw)
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
next reply other threads:[~2026-11-17 19:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 19:00 Nikolay Borisov [this message]
2026-11-17 19:07 ` [PATCH] x86/virt/tdx: Don't print error if CPU doesn't support TDX Borislav Petkov
2026-11-17 19:37 ` Sean Christopherson
2026-11-17 19:59 ` Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261117190041.158949-1-nik.borisov@suse.com \
--to=nik.borisov@suse.com \
--cc=kvm@vger.kernel.org \
--cc=linux-coco@lists.linux.dev \
--cc=seanjc@google.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox