Skip to content

Commit

Permalink
KVM: PPC: Add PVR/PIR init for E500
Browse files Browse the repository at this point in the history
commit 513579e change the way
we emulate PVR/PIR,
which left PVR/PIR uninitialized on E500, and make guest puzzled.

Signed-off-by: Liu Yu <yu.liu@freescale.com>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
  • Loading branch information
Liu Yu authored and Marcelo Tosatti committed Mar 1, 2010
1 parent d86be07 commit a9040f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/powerpc/kvm/e500.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu)

kvmppc_e500_tlb_setup(vcpu_e500);

/* Registers init */
vcpu->arch.pvr = mfspr(SPRN_PVR);

/* Since booke kvm only support one core, update all vcpus' PIR to 0 */
vcpu->vcpu_id = 0;

return 0;
}

Expand Down

0 comments on commit a9040f2

Please sign in to comment.