Re: [PATCH 07/26] x86/tdx: Handle CPUID via #VE

From: Borislav Petkov
Date: Fri Dec 31 2021 - 12:19:40 EST


On Tue, Dec 14, 2021 at 06:02:45PM +0300, Kirill A. Shutemov wrote:
> In TDX guests, most CPUID leaf/sub-leaf combinations are virtualized
> by the TDX module while some trigger #VE.
>
> Implement the #VE handling for EXIT_REASON_CPUID by handing it through
> the hypercall, which in turn lets the TDX module handle it by invoking
> the host VMM.
>
> More details on CPUID Virtualization can be found in the TDX module
> specification [1], the section titled "CPUID Virtualization".

The exact name and section should be enough to find the spec document
because...

>
> [1] - https://software.intel.com/content/dam/develop/external/us/en/documents/tdx-module-1.0-public-spec-v0.931.pdf

... those links are never stable and become stale eventually. Just save
yourself the effort of adding them to commit messages.

--
Regards/Gruss,
Boris.

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