Re: [PATCH] x86/tdx: Allow extended topology CPUID leafs to be emulated by hypercall

From: Kirill A. Shutemov
Date: Sat Sep 09 2023 - 06:14:40 EST


On Fri, Sep 08, 2023 at 10:56:44AM -0700, Sagi Shahar wrote:
> The current TDX module does not handle extended topology leaves
> explicitly and will generate a #VE but the current #VE handler
> implementation blindly returns 0 for those CPUID leaves.
>
> This currently causes TDX guests to see 0 values when querying the numa
> topology leading to incorrect numa configurations.
>
> This patch fixes this behavior by emulating the extended topology leaves
> using the CPUID hypercall.
>
> Change-Id: I427807e3ac8d9e3be50a6fac40ebd3f54b445b0c
> Signed-off-by: Sagi Shahar <sagis@xxxxxxxxxx>

NAK. We are working on getting these and other leafs available to the
guest in a safe manner without #VE. It will take time, but it is going to
be there.

--
Kiryl Shutsemau / Kirill A. Shutemov