RE: [PATCH] kvm/e500: Fix the bug that mas0 update to wrong value when read TLB entry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> Signed-off-by: Liu Yu <yu.liu@xxxxxxxxxxxxx>
> ---
>  arch/powerpc/kvm/e500_tlb.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/powerpc/kvm/e500_tlb.c
> index 72386dd..4d6ecbd 100644
> --- a/arch/powerpc/kvm/e500_tlb.c
> +++ b/arch/powerpc/kvm/e500_tlb.c
> @@ -448,7 +448,7 @@ int kvmppc_e500_emul_tlbre(struct kvm_vcpu *vcpu)
>  	esel = get_tlb_esel(vcpu_e500, tlbsel);
>  
>  	gtlbe = &vcpu_e500->guest_tlb[tlbsel][esel];
> -	vcpu_e500->mas0 &= MAS0_NV(0);
> +	vcpu_e500->mas0 &= ~MAS0_NV(0);

Oops...
This should be 
vcpu_e500->mas0 &= ~MAS0_NV(~0);

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux