KVM: nSVM: only copy L1 non-VMLOAD/VMSAVE data in svm_set_nested_state()
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Nov 2020 07:51:35 +0000 (02:51 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:42:34 +0000 (04:42 -0400)
commitc08f390a75c14fb9f8115d74ae9b7a6142a659b3
tree2c4d7095a40f217590f8fe71b80a237899f1a4e5
parent4bb170a5430b9ea9589ded486d8fbb0df99de377
KVM: nSVM: only copy L1 non-VMLOAD/VMSAVE data in svm_set_nested_state()

The VMLOAD/VMSAVE data is not taken from userspace, since it will
not be restored on VMEXIT (it will be copied from VMCB02 to VMCB01).
For clarity, replace the wholesale copy of the VMCB save area
with a copy of that state only.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c