Re: [PATCH v2] KVM: x86/tdx: Do not print error message on non-present feature
"Edgecombe, Rick P" <[email protected]> Wed, 29 Jul 2026 13:34:03 +0000
| Newsgroups | dev.linux.lists.linux-coco,org.kernel.vger.kvm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2026-07-29 at 10:59 +0200, Jiri Slaby (SUSE) wrote: > Before commit 165e77353831 below, the kernel did not print anything > during boot if X86_FEATURE_TDX_HOST_PLATFORM was not present, unless TDX > enablement was explicitly requested via a module parameter. > > After the commit, when attempting to load TDX automatically, this is > emitted to the log: > virt/tdx: TDX not supported by the host platform > > It is emitted with the "error" level, hence it is disturbing. It is not > an error to run CPUs without the feature. > > Drop this silent-boot-breaking error message for the automatic > initialization path. > > Signed-off-by: Jiri Slaby (SUSE) <[email protected]> > Fixes: 165e77353831 ("KVM: x86/tdx: Do VMXON and TDX-Module initialization > during subsys init") > Reviewed-by: Kiryl Shutsemau (Meta) <[email protected]> > Cc: Dan Williams <[email protected]> > Cc: Chao Gao <[email protected]> > Cc: Dave Hansen <[email protected]> > Cc: Sean Christopherson <[email protected]> > > --- Thanks for the log changes. Reviewed-by: Rick Edgecombe <[email protected]>