x86/sev: Check for MWAITX and MONITORX opcodes in the #VC handler
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 22 Apr 2024 13:39:21 +0000 (08:39 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 22 Apr 2024 16:38:28 +0000 (18:38 +0200)
commite70316d17f6ab49a6038ffd115397fd68f8c7be8
treed234e457445fe7d5bd88961f48579cb9c8e27953
parented30a4a51bb196781c8058073ea720133a65596f
x86/sev: Check for MWAITX and MONITORX opcodes in the #VC handler

The MWAITX and MONITORX instructions generate the same #VC error code as
the MWAIT and MONITOR instructions, respectively. Update the #VC handler
opcode checking to also support the MWAITX and MONITORX opcodes.

Fixes: e3ef461af35a ("x86/sev: Harden #VC instruction emulation somewhat")
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/453d5a7cfb4b9fe818b6fb67f93ae25468bc9e23.1713793161.git.thomas.lendacky@amd.com
arch/x86/kernel/sev-shared.c