]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Update __get_sregs() / __set_sregs() to support SEV-ES
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 10 Dec 2020 17:09:59 +0000 (11:09 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 10:20:54 +0000 (05:20 -0500)
commit846ab0629e21e2702bb73012536d666a64e9a9ed
tree8a775b1d11251b78b562198d642fadb09ff91a16
parent112bea9484c225ba74efc74c94e8ce970b3dc329
KVM: x86: Update __get_sregs() / __set_sregs() to support SEV-ES

Since many of the registers used by the SEV-ES are encrypted and cannot
be read or written, adjust the __get_sregs() / __set_sregs() to take into
account whether the VMSA/guest state is encrypted.

For __get_sregs(), return the actual value that is in use by the guest
for all registers being tracked using the write trap support.

For __set_sregs(), skip setting of all guest registers values.

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