From: Sean Christopherson <seanjc@google.com>
To: Borislav Petkov <bp@alien8.de>
Cc: Nikolay Borisov <nik.borisov@suse.com>,
x86@kernel.org, kvm@vger.kernel.org, linux-coco@lists.linux.dev
Subject: Re: [PATCH] x86/virt/tdx: Don't print error if CPU doesn't support TDX
Date: Tue, 17 Nov 2026 11:37:59 -0800 [thread overview]
Message-ID: <avytF4CYn5FUkA4F@seanjc-mac.roam.internal> (raw)
In-Reply-To: <20261117190714.GAavyl4lS15Gwpc29U@fat_crate.local>
On Tue, Nov 17, 2026, Borislav Petkov wrote:
> On Tue, Nov 17, 2026 at 09:00:41PM +0200, Nikolay Borisov wrote:
> > 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;
> > }
> >
> > --
>
> Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
FWIW, I prefer Jiri's version which just drops the printk entirely:
https://lore.kernel.org/all/27b6d824f7aee7078167944ce96d95676eee25cb.1793602266.git.jirislaby@kernel.org
next prev parent reply other threads:[~2026-11-17 19:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=avytF4CYn5FUkA4F@seanjc-mac.roam.internal \
--to=seanjc@google.com \
--cc=bp@alien8.de \
--cc=kvm@vger.kernel.org \
--cc=linux-coco@lists.linux.dev \
--cc=nik.borisov@suse.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