diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2019-12-18 22:55:30 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-01-27 19:59:34 +0100 |
commit | 8bd826d629d6ff4a4e647079db15d64d06346004 (patch) | |
tree | 106f9f3c7c2bba2d455a6791c6af98e823f860ef /arch/x86/include/asm/kvm_host.h | |
parent | KVM: Move putting of vcpu->pid to kvm_vcpu_destroy() (diff) | |
download | linux-8bd826d629d6ff4a4e647079db15d64d06346004.tar.xz linux-8bd826d629d6ff4a4e647079db15d64d06346004.zip |
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>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
0 files changed, 0 insertions, 0 deletions