]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Move vcpu->run page allocation out of kvm_vcpu_init()
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 18 Dec 2019 21:55:30 +0000 (13:55 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jan 2020 18:59:34 +0000 (19:59 +0100)
commitddd179232ba94e268a6a206161c42da0b43f110b
tree106f9f3c7c2bba2d455a6791c6af98e823f860ef
parent76e46c0ae1284aa623b1860b2600a561482a6cc1
KVM: Move vcpu->run page allocation out of kvm_vcpu_init()

Open code the allocation and freeing of the vcpu->run page in
kvm_vm_ioctl_create_vcpu() and kvm_vcpu_destroy() respectively.  Doing
so allows kvm_vcpu_init() to be a pure init function and eliminates
kvm_vcpu_uninit() entirely.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c