]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Invoke kvm_vcpu_uninit() immediately prior to freeing vcpu
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 18 Dec 2019 21:55:13 +0000 (13:55 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jan 2020 08:19:10 +0000 (09:19 +0100)
commitf8e9f234b10c60ecac82c4c611af0f8161f4dd9d
tree53b3476741a8bffde35f9b38800db2743bf811da
parent0a484d8957bdb3224296c3209fbc5e4e46215e90
KVM: x86: 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/x86/kvm/x86.c