]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Set the encryption mask for the SVM host save area
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 10 Dec 2020 17:10:04 +0000 (11:10 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 10:20:57 +0000 (05:20 -0500)
commita87826d75ea9d3910f9799e6487e46c3ed3c4fe6
tree0a307368568ed1860f6ed91bdef80ccb1793ce25
parent48b2281b4970ac3a2ff537a9c2d0f721e5b134b8
KVM: SVM: Set the encryption mask for the SVM host save area

The SVM host save area is used to restore some host state on VMEXIT of an
SEV-ES guest. After allocating the save area, clear it and add the
encryption mask to the SVM host save area physical address that is
programmed into the VM_HSAVE_PA MSR.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <b77aa28af6d7f1a0cb545959e08d6dc75e0c3cba.1607620209.git.thomas.lendacky@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h