diff options
author | Liu Yu <yu.liu@freescale.com> | 2009-03-17 16:57:46 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-03-24 11:03:15 +0200 |
commit | 046a48b35baa7c66d0d0331256ba12ca51665411 (patch) | |
tree | ffb60208848c2b4337fa6d7963acc53acbc5f9a7 /arch/powerpc/kvm/e500_tlb.c | |
parent | bc35cbc85cd78213590761618a13da6a9707652c (diff) | |
download | linux-046a48b35baa7c66d0d0331256ba12ca51665411.tar.gz linux-046a48b35baa7c66d0d0331256ba12ca51665411.tar.bz2 linux-046a48b35baa7c66d0d0331256ba12ca51665411.zip |
KVM: ppc: e500: Fix the bug that KVM is unstable in SMP
TLB entry should enable memory coherence in SMP.
And like commit 631fba9dd3aca519355322cef035730609e91593,
remove guard attribute to enable the prefetch of guest memory.
Signed-off-by: Liu Yu <yu.liu@freescale.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/e500_tlb.c')
-rw-r--r-- | arch/powerpc/kvm/e500_tlb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/powerpc/kvm/e500_tlb.c index ec933209e8af..0e773fc2d5e4 100644 --- a/arch/powerpc/kvm/e500_tlb.c +++ b/arch/powerpc/kvm/e500_tlb.c @@ -99,7 +99,11 @@ static inline u32 e500_shadow_mas3_attrib(u32 mas3, int usermode) static inline u32 e500_shadow_mas2_attrib(u32 mas2, int usermode) { +#ifdef CONFIG_SMP + return (mas2 & MAS2_ATTRIB_MASK) | MAS2_M; +#else return mas2 & MAS2_ATTRIB_MASK; +#endif } /* |