OSDN Git Service

KVM: SVM: Create a separate mapping for the SEV-ES save area
authorTom Lendacky <thomas.lendacky@amd.com>
Tue, 5 Apr 2022 18:27:43 +0000 (13:27 -0500)
committerBorislav Petkov <bp@suse.de>
Wed, 6 Apr 2022 10:08:40 +0000 (12:08 +0200)
commit3dd2775b74c9b1b01d19805877ab45bc47c4a5a5
treeb085f2b250737cc0ac62bc1d03b1008a55c2306b
parent046f773be106ec8eb92b13414c90f8e279deffe0
KVM: SVM: Create a separate mapping for the SEV-ES save area

The save area for SEV-ES/SEV-SNP guests, as used by the hardware, is
different from the save area of a non SEV-ES/SEV-SNP guest.

This is the first step in defining the multiple save areas to keep them
separate and ensuring proper operation amongst the different types of
guests. Create an SEV-ES/SEV-SNP save area and adjust usage to the new
save area definition where needed.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Venu Busireddy <venu.busireddy@oracle.com>
Link: https://lore.kernel.org/r/20220405182743.308853-1-brijesh.singh@amd.com
arch/x86/include/asm/svm.h
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h