KVM: MIPS: Invoke kvm_vcpu_uninit() immediately prior to freeing vcpu
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 18 Dec 2019 21:55:12 +0000 (13:55 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jan 2020 08:19:09 +0000 (09:19 +0100)
commitaaf532c57927982b2523994698f994255a722f5f
tree0eb67e06aadc18a039f7fd3e876df645c4110b97
parenta2017f17fa175b812ce7de302316f67e8f2b7db0
KVM: MIPS: Invoke kvm_vcpu_uninit() immediately prior to freeing vcpu

Move the call to kvm_vcpu_uninit() in kvm_arch_vcpu_destroy() down a few
lines so that it is invoked immediately prior to freeing the vCPU.  This
paves the way for moving the uninit and free sequence to common KVM code
without an associated functional change.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/mips.c