Re: [PATCH v2 45/45] KVM: Move vcpu->run page allocation out of kvm_vcpu_init()

2019-12-20 Thread Cornelia Huck
On Wed, 18 Dec 2019 13:55:30 -0800 Sean Christopherson wrote: > 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

[PATCH v2 45/45] KVM: Move vcpu->run page allocation out of kvm_vcpu_init()

2019-12-18 Thread Sean Christopherson
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 --- virt/kvm/kvm_main.c | 34 +++