Keep shadow pid equal to guest pid on E500
Subsystems (2)
PATCH 1/1 Keep shadow pid equal to guest pid on E500
Signed-off-by Liu Yu <[email protected]>
--- arch/powerpc/kvm/e500_emulate.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
arch/powerpc/kvm/e500_emulate.c +2 -1
@@ -124,7 +124,9 @@ int kvmppc_core_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, int rs)switch (sprn) {/* E500 */ case SPRN_PID : - vcpu_e500->pid[0 ] = vcpu->arch.pid = vcpu->arch.gpr[rs];break ; + vcpu_e500->pid[0 ] = vcpu->arch.shadow_pid + vcpu->arch.pid = vcpu->arch.gpr[rs]; +break ;case SPRN_PID1 : vcpu_e500->pid[1 ] = vcpu->arch.gpr[rs];break ;case SPRN_PID2 :
Signature · 1 line
1.5.4
Hi Hollis,
You can ignore the patch "[PATCH 03/11] Use arch.pid as shadow pid for E500" and append this one,
or I will wait for more feedback and then resend the whole patchset.
Quoted 33 lines
-----Original Message-----
From: Liu Yu-B13201
Sent: Monday, December 15, 2008 5:55 PM
To: [email protected]
Cc: Liu Yu-B13201
Subject: [PATCH] Keep shadow pid equal to guest pid on E500Signed-off-by Liu Yu <[email protected]>--- arch/powerpc/kvm/e500_emulate.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)arch/powerpc/kvm/e500_emulate.c +2
-1@@ -124,7 +124,9 @@ int kvmppc_core_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, int rs) switch (sprn) { /* E500 */ case SPRN_PID: - vcpu_e500->pid[0] = vcpu->arch.pid = vcpu->arch.gpr[rs]; break; + vcpu_e500->pid[0 ] = vcpu->arch.shadow_pid > + vcpu->arch.pid = vcpu->arch.gpr[rs]; +break ;case SPRN_PID1 : vcpu_e500->pid[1 ] = vcpu->arch.gpr[rs];break ;case SPRN_PID2 :Signature · 1 line
1.5.4