x86/virt/tdx: Don't print error if CPU doesn't support TDX
Subsystems (3)
PATCH 1/1 x86/virt/tdx: Don't print error if CPU doesn't support TDX
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.
---
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(-)
arch/x86/virt/vmx/tdx/tdx.c +1 -1
@@ -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
Quoted 21 lines · 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/tdxTDX not supported by hostplatform.The same is also printed on all AMD CPUs. Fix by using
pr_info.Signed-off-by Nikolay Borisov <[email protected]>---
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(-)arch/x86/virt/vmx/tdx/tdx.c +0
-0
arch/x86/virt/vmx/tdx/tdx.c static __init int tdx_enable(void)
Quoted 9 lines
arch/x86/virt/vmx/tdx/tdx.c +1
-2@@ -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 ; } --
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteSean Christopherson
reviewerQuoted 30 lines · Borislav Petkov
Quoted 29 lines · 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/tdxTDX not supported by hostplatform.The same is also printed on all AMD CPUs. Fix by using
pr_info.Signed-off-by Nikolay Borisov <[email protected]>---
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(-)arch/x86/virt/vmx/tdx/tdx.c +1
-1@@ -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 ; }
Quoted 3 lines
Quoted 1 line
--
FWIW, I prefer Jiri's version which just drops the printk entirely:
Borislav Petkov
maintainerQuoted 3 lines · Sean Christopherson
FWIW, I prefer Jiri's version which just drops the printk entirely:
Even better.
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette