]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Add support for SEV-ES GHCB MSR protocol function 0x100
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 10 Dec 2020 17:09:51 +0000 (11:09 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 10:20:48 +0000 (05:20 -0500)
commit54fa8e9666f49b423ddfb89d06a3f5be49fbeaf5
tree1f2c66affe402804629d1140772207be747b90cb
parent005b3923f314f7eeb551a1fe429a062a6da9f83c
KVM: SVM: Add support for SEV-ES GHCB MSR protocol function 0x100

The GHCB specification defines a GHCB MSR protocol using the lower
12-bits of the GHCB MSR (in the hypervisor this corresponds to the
GHCB GPA field in the VMCB).

Function 0x100 is a request for termination of the guest. The guest has
encountered some situation for which it has requested to be terminated.
The GHCB MSR value contains the reason for the request.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <f3a1f7850c75b6ea4101e15bbb4a3af1a203f1dc.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.h