Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248094
b: refs/heads/master
c: 90d34b0
h: refs/heads/master
v: v3
  • Loading branch information
Scott Wood authored and Avi Kivity committed May 22, 2011
1 parent 7d344b6 commit 63a8803
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2fb92db1ec08f3235c500e7f460eeb78092d844e
refs/heads/master: 90d34b0e45df3bfe522e9e9d604c4c1a0253699d
1 change: 1 addition & 0 deletions trunk/arch/powerpc/include/asm/kvm_e500.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ struct kvmppc_vcpu_e500 {

u32 host_pid[E500_PID_NUM];
u32 pid[E500_PID_NUM];
u32 svr;

u32 mas0;
u32 mas1;
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/powerpc/kvm/e500.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu)

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

/* Since booke kvm only support one core, update all vcpus' PIR to 0 */
vcpu->vcpu_id = 0;
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/powerpc/kvm/e500_emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ int kvmppc_core_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, int rt)
kvmppc_set_gpr(vcpu, rt, vcpu_e500->hid0); break;
case SPRN_HID1:
kvmppc_set_gpr(vcpu, rt, vcpu_e500->hid1); break;
case SPRN_SVR:
kvmppc_set_gpr(vcpu, rt, vcpu_e500->svr); break;

case SPRN_MMUCSR0:
kvmppc_set_gpr(vcpu, rt, 0); break;
Expand Down

0 comments on commit 63a8803

Please sign in to comment.