KVM: SVM: move VMLOAD/VMSAVE to C code
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 Feb 2021 12:10:43 +0000 (07:10 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:23 +0000 (04:43 -0400)
commitfb0c4a4fee5a35b4e531b57e42231868d1fedb18
treee0c4a74710a98fa08afa1c178a66c3bd3a710283
parentc8781feaf1b590dd4363b76327088561cbeaa6f5
KVM: SVM: move VMLOAD/VMSAVE to C code

Thanks to the new macros that handle exception handling for SVM
instructions, it is easier to just do the VMLOAD/VMSAVE in C.
This is safe, as shown by the fact that the host reload is
already done outside the assembly source.

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