]> 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)
commit17970344e5e011d534566288bb503b7a6c7b983b
tree2c4d7095a40f217590f8fe71b80a237899f1a4e5
parentc4a3f0bb94e88d2cd9e2f419b58af4068ac8f2c6
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