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.

> -----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 E500
> 
> Signed-off-by: Liu Yu <[email protected]>
> ---
>  arch/powerpc/kvm/e500_emulate.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/powerpc/kvm/e500_emulate.c 
> b/arch/powerpc/kvm/e500_emulate.c
> index ae3b249..ecb3f55 100644
> --- a/arch/powerpc/kvm/e500_emulate.c
> +++ b/arch/powerpc/kvm/e500_emulate.c
> @@ -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:
> -- 
> 1.5.4
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to