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

* Re: [PATCH] x86/virt/tdx: Don't print error if CPU doesn't support TDX
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Borislav Petkov @ 2026-11-17 19:07 UTC (permalink / raw)
  To: Nikolay Borisov; +Cc: x86, seanjc, kvm, linux-coco

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>

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

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

* Re: [PATCH] x86/virt/tdx: Don't print error if CPU doesn't support TDX
  2026-11-17 19:07 ` Borislav Petkov
@ 2026-11-17 19:37   ` Sean Christopherson
  2026-11-17 19:59     ` Borislav Petkov
  0 siblings, 1 reply; 4+ messages in thread
From: Sean Christopherson @ 2026-11-17 19:37 UTC (permalink / raw)
  To: Borislav Petkov; +Cc: Nikolay Borisov, x86, kvm, linux-coco

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

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

* Re: [PATCH] x86/virt/tdx: Don't print error if CPU doesn't support TDX
  2026-11-17 19:37   ` Sean Christopherson
@ 2026-11-17 19:59     ` Borislav Petkov
  0 siblings, 0 replies; 4+ messages in thread
From: Borislav Petkov @ 2026-11-17 19:59 UTC (permalink / raw)
  To: Sean Christopherson; +Cc: Nikolay Borisov, x86, kvm, linux-coco

On Tue, Nov 17, 2026 at 11:37:59AM -0800, Sean Christopherson wrote:
> FWIW, I prefer Jiri's version which just drops the printk entirely:
> 
> https://lore.kernel.org/all/27b6d824f7aee7078167944ce96d95676eee25cb.1793602266.git.jirislaby@kernel.org

Even better.

Thx.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

^ permalink raw reply	[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