diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kvm/e500.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/e500.c b/arch/powerpc/kvm/e500.c index 64949eef43f1..efa1198940ab 100644 --- a/arch/powerpc/kvm/e500.c +++ b/arch/powerpc/kvm/e500.c | |||
@@ -60,6 +60,12 @@ int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu) | |||
60 | 60 | ||
61 | kvmppc_e500_tlb_setup(vcpu_e500); | 61 | kvmppc_e500_tlb_setup(vcpu_e500); |
62 | 62 | ||
63 | /* Registers init */ | ||
64 | vcpu->arch.pvr = mfspr(SPRN_PVR); | ||
65 | |||
66 | /* Since booke kvm only support one core, update all vcpus' PIR to 0 */ | ||
67 | vcpu->vcpu_id = 0; | ||
68 | |||
63 | return 0; | 69 | return 0; |
64 | } | 70 | } |
65 | 71 | ||