KVM: nSVM: move map argument out of enter_svm_guest_mode
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 May 2020 16:57:26 +0000 (12:57 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Jun 2020 08:24:32 +0000 (04:24 -0400)
commit69c9dfa24bb7bac5c9e2bd4d3f631e35b91e3733
tree8b0a08cbf4bce6840707ddbf717f76d5c716899e
parentdf7e0681dd8acfa8d07816eaef232ded816d8a8c
KVM: nSVM: move map argument out of enter_svm_guest_mode

Unmapping the nested VMCB in enter_svm_guest_mode is a bit of a wart,
since the map argument is not used elsewhere in the function.  There are
just two callers, and those are also the place where kvm_vcpu_map is
called, so it is cleaner to unmap there.

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