]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a5706f19fe2f7e3a4debea4949da6de6c42a4fc
tree2c4d7095a40f217590f8fe71b80a237899f1a4e5
parent3e4a94ccc6aa2c479ba4b6c732bc52f9dffb2065
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