On 5/10/21 7:17 PM, Andi Kleen wrote:
To prevent TD guest from using MWAIT/MONITOR instructions,Why does this not result in a #UD if the instruction is disabled by
support for these instructions are already disabled by TDX
module (SEAM). So CPUID flags for these instructions should
be in disabled state.
SEAM?
It's just the TDX module (SEAM is the execution mode used by the TDX module)
If it is disabled by the TDX Module, we should never execute it. But for some
reason, if we still come across this instruction (buggy TDX module?), we add
appropriate warning in #VE handler.