Re: [RFC v2 16/32] x86/tdx: Handle MWAIT, MONITOR and WBINVD

From: Andi Kleen
Date: Tue May 11 2021 - 13:07:24 EST

need anything else than what #GP already does.

How do these end up in practice? Do they still say "general protection

Yes, but there's a #VE specific message before it that prints the exit reason.

Isn't that really mean for anyone that goes trying to figure out what
caused these? If they see a "general protection fault" from WBINVD and
go digging in the SDM for how a #GP can come from WBINVD, won't they be
sorely disappointed?

They'll see both the message and also that it isn't a true #VE in the backtrace.