KVM: Move vcpu alloc and init invocation to common code
Now that all architectures tightly couple vcpu allocation/free with the mandatory calls to kvm_{un}init_vcpu(), move the sequences verbatim to common KVM code. Move both allocation and initialization in a single patch to eliminate thrash in arch specific code. The bisection benefits of moving the two pieces in separate patches is marginal at best, whereas the odds of introducing a transient arch specific bug are non-zero. Acked-by:Christoffer Dall <christoffer.dall@arm.com> 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>
Showing
- arch/mips/kvm/mips.c 6 additions, 27 deletionsarch/mips/kvm/mips.c
- arch/powerpc/kvm/powerpc.c 4 additions, 23 deletionsarch/powerpc/kvm/powerpc.c
- arch/s390/kvm/kvm-s390.c 10 additions, 31 deletionsarch/s390/kvm/kvm-s390.c
- arch/x86/kvm/x86.c 2 additions, 26 deletionsarch/x86/kvm/x86.c
- include/linux/kvm_host.h 1 addition, 1 deletioninclude/linux/kvm_host.h
- virt/kvm/arm/arm.c 2 additions, 27 deletionsvirt/kvm/arm/arm.c
- virt/kvm/kvm_main.c 18 additions, 3 deletionsvirt/kvm/kvm_main.c
Loading
Please register or sign in to comment