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

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 0x002 is a request to set the GHCB MSR value to the SEV INFO as
per the specification via the VMCB GHCB GPA field.

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