]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S PR: Allocate book3s and shadow vcpu after common init
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 18 Dec 2019 21:54:58 +0000 (13:54 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jan 2020 08:18:59 +0000 (09:18 +0100)
commitc0e6db5f72a2b54d5ab8effa1694b4023af69ac0
treee133d24f77dd5309285b9e7953da1b28760357cf
parentc3d77e8bcbcbbd173d838853f19e0668ded02555
KVM: PPC: Book3S PR: Allocate book3s and shadow vcpu after common init

Call kvm_vcpu_init() in kvmppc_core_vcpu_create_pr() prior to allocating
the book3s and shadow_vcpu objects in preparation of moving said call to
common PPC code.  Although kvm_vcpu_init() has an arch callback, the
callback is empty for Book3S PR, i.e. barring unseen black magic, moving
the allocation has no real functional impact.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/powerpc/kvm/book3s_pr.c