KVM: PPC: Move memslot memory allocation into prepare_memory_region()
Allocate the rmap array during kvm_arch_prepare_memory_region() to pave the way for removing kvm_arch_create_memslot() altogether. Moving PPC's memory allocation only changes the order of kernel memory allocations between PPC and common KVM code. No functional change intended. Acked-by:Paul Mackerras <paulus@ozlabs.org> Reviewed-by:
Peter Xu <peterx@redhat.com> 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, 7 deletionsarch/powerpc/include/asm/kvm_ppc.h
- arch/powerpc/kvm/book3s.c 4 additions, 8 deletionsarch/powerpc/kvm/book3s.c
- arch/powerpc/kvm/book3s_hv.c 11 additions, 12 deletionsarch/powerpc/kvm/book3s_hv.c
- arch/powerpc/kvm/book3s_pr.c 2 additions, 9 deletionsarch/powerpc/kvm/book3s_pr.c
- arch/powerpc/kvm/booke.c 2 additions, 7 deletionsarch/powerpc/kvm/booke.c
- arch/powerpc/kvm/powerpc.c 2 additions, 2 deletionsarch/powerpc/kvm/powerpc.c
Loading
Please register or sign in to comment