KVM: PPC: Move kvm_vcpu_init() invocation to common code
Move the kvm_cpu_{un}init() calls to common PPC code as an intermediate step towards removing kvm_cpu_{un}init() altogether. No functional change intended. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:

committed by
Paolo Bonzini

parent
4dbf6fec78
commit
ff030fdf55
@@ -2114,10 +2114,9 @@ int kvmppc_core_init_vm(struct kvm *kvm)
|
||||
return kvm->arch.kvm_ops->init_vm(kvm);
|
||||
}
|
||||
|
||||
int kvmppc_core_vcpu_create(struct kvm *kvm, struct kvm_vcpu *vcpu,
|
||||
unsigned int id)
|
||||
int kvmppc_core_vcpu_create(struct kvm_vcpu *vcpu)
|
||||
{
|
||||
return kvm->arch.kvm_ops->vcpu_create(kvm, vcpu, id);
|
||||
return vcpu->kvm->arch.kvm_ops->vcpu_create(vcpu);
|
||||
}
|
||||
|
||||
void kvmppc_core_vcpu_free(struct kvm_vcpu *vcpu)
|
||||
|
Reference in New Issue
Block a user