Re: [PATCH v3 1/1] x86/tdx: Handle MWAIT, MONITOR and WBINVD

From: Andy Lutomirski
Date: Mon Mar 29 2021 - 22:59:04 EST



> On Mar 29, 2021, at 7:04 PM, Andi Kleen <ak@xxxxxxxxxxxxxxx> wrote:
>
> 
>>
>>> No, if these instructions take a #VE then they were executed at CPL=0. MONITOR
>>> and MWAIT will #UD without VM-Exit->#VE. Same for WBINVD, s/#UD/#GP.
>>
>> Dare I ask about XSETBV?
>
> XGETBV does not cause a #VE, it just works normally. The guest has full
> AVX capabilities.
>

X *SET* BV