Re: [PATCH v8 08/11] x86/tdx: Wire up KVM hypercalls

From: Borislav Petkov
Date: Wed Oct 06 2021 - 15:41:56 EST


On Wed, Oct 06, 2021 at 12:34:40PM -0700, Josh Poimboeuf wrote:
> Hm, I'm still thinking that figuring out a way to convert all the
> cc_platform_has() stuff to normal cpu features -- or at least inline
> wrappers around them -- would be really nice here. Then this could just
> be a nice fast static_cpu_has().

cpu_feature_enabled(X86_FEATURE_TDX_GUEST)

provided those don't happen too early...

--
Regards/Gruss,
Boris.

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