diff options
Diffstat (limited to 'arch/powerpc/kvm/e500.c')
-rw-r--r-- | arch/powerpc/kvm/e500.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/e500.c b/arch/powerpc/kvm/e500.c index 64949eef43f1..669a5c5fc7d7 100644 --- a/arch/powerpc/kvm/e500.c +++ b/arch/powerpc/kvm/e500.c | |||
@@ -13,6 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <linux/kvm_host.h> | 15 | #include <linux/kvm_host.h> |
16 | #include <linux/slab.h> | ||
16 | #include <linux/err.h> | 17 | #include <linux/err.h> |
17 | 18 | ||
18 | #include <asm/reg.h> | 19 | #include <asm/reg.h> |
@@ -60,6 +61,12 @@ int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu) | |||
60 | 61 | ||
61 | kvmppc_e500_tlb_setup(vcpu_e500); | 62 | kvmppc_e500_tlb_setup(vcpu_e500); |
62 | 63 | ||
64 | /* Registers init */ | ||
65 | vcpu->arch.pvr = mfspr(SPRN_PVR); | ||
66 | |||
67 | /* Since booke kvm only support one core, update all vcpus' PIR to 0 */ | ||
68 | vcpu->vcpu_id = 0; | ||
69 | |||
63 | return 0; | 70 | return 0; |
64 | } | 71 | } |
65 | 72 | ||