-
- Downloads
KVM: PPC: Allocate vcpu struct in common PPC code
Move allocation of all flavors of PPC vCPUs to common PPC code. All variants either allocate 'struct kvm_vcpu' directly, or require that the embedded 'struct kvm_vcpu' member be located at offset 0, i.e. guarantee that the allocation can be directly interpreted as a 'struct kvm_vcpu' object. Remove the message from the build-time assertion regarding placement of the struct, as compatibility with the arch usercopy region is no longer the sole dependent on 'struct kvm_vcpu' being at offset zero. Signed-off-by:Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/powerpc/include/asm/kvm_ppc.h 4 additions, 3 deletionsarch/powerpc/include/asm/kvm_ppc.h
- arch/powerpc/kvm/book3s.c 3 additions, 2 deletionsarch/powerpc/kvm/book3s.c
- arch/powerpc/kvm/book3s_hv.c 5 additions, 15 deletionsarch/powerpc/kvm/book3s_hv.c
- arch/powerpc/kvm/book3s_pr.c 5 additions, 13 deletionsarch/powerpc/kvm/book3s_pr.c
- arch/powerpc/kvm/booke.c 3 additions, 2 deletionsarch/powerpc/kvm/booke.c
- arch/powerpc/kvm/e500.c 7 additions, 19 deletionsarch/powerpc/kvm/e500.c
- arch/powerpc/kvm/e500mc.c 6 additions, 18 deletionsarch/powerpc/kvm/e500mc.c
- arch/powerpc/kvm/powerpc.c 18 additions, 5 deletionsarch/powerpc/kvm/powerpc.c
Loading
Please register or sign in to comment