]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Cannot re-initialize the VMCB after shutdown with SEV-ES
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 10 Dec 2020 17:09:45 +0000 (11:09 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 10:20:46 +0000 (05:20 -0500)
commit9263f72f4f204f835f2d5c076e4c37e4c85c213b
tree8356050a7dfc6e9ce6af56898ad1e1927a056dd8
parent7a503196210b07d9ae1ec9b0c61d34c643c2a726
KVM: SVM: Cannot re-initialize the VMCB after shutdown with SEV-ES

When a SHUTDOWN VMEXIT is encountered, normally the VMCB is re-initialized
so that the guest can be re-launched. But when a guest is running as an
SEV-ES guest, the VMSA cannot be re-initialized because it has been
encrypted. For now, just return -EINVAL to prevent a possible attempt at
a guest reset.

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