]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c22c39ef32b258cc1856375843e739ee7c50c41
tree0eb67e06aadc18a039f7fd3e876df645c4110b97
parent9b9fc1ae408f050c34b9646c81d5085b1185d956
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