]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/sev: Add support for the RMPREAD instruction
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 2 Dec 2024 20:50:47 +0000 (14:50 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sat, 14 Dec 2024 00:02:30 +0000 (01:02 +0100)
commit0cbc0258415814c86eb6db50237ae3d90fbf3b3d
tree4d729e17026221d39040b8236b31cb369be2c21d
parent3e43c60eb3e3779e88635d45400f7387ec732c07
x86/sev: Add support for the RMPREAD instruction

The RMPREAD instruction returns an architecture defined format of an
RMP table entry. This is the preferred method for examining RMP entries.

The instruction is advertised in CPUID 0x8000001f_EAX[21]. Use this
instruction when available.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Nikunj A Dadhania <nikunj@amd.com>
Reviewed-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Reviewed-by: Ashish Kalra <ashish.kalra@amd.com>
Link: https://lore.kernel.org/r/72c734ac8b324bbc0c839b2c093a11af4a8881fa.1733172653.git.thomas.lendacky@amd.com
arch/x86/include/asm/cpufeatures.h
arch/x86/virt/svm/sev.c