Skip to contentSkip to conversation

xen: arm32: Use system wide TLB flushes, not just inner-shareable

PATCH In review Ian Campbell 2 participants 3 messages Feb 8, 2013 – Feb 15, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: arm32: Use system wide TLB flushes, not just inner-shareable

We currently setup page table walks etc as outer-shareable. Given we don't really make the distinction between inner- and outer-shareable yet err on theside of safety.

Cc Stefano Stabellini <[email protected]>
Cc Tim Deegan <[email protected]>
---
 xen/include/asm-arm/flushtlb.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
xen/include/asm-arm/flushtlb.h +2 -2
index 210abfa..5067e5d 100644
@@ -19,7 +19,7 @@ static inline void flush_tlb_local(void)
 {
     dsb();
 
-    WRITE_CP32((uint32_t) 0, TLBIALLIS);
+    WRITE_CP32((uint32_t) 0, TLBIALL);
 
     dsb();
     isb();
@@ -30,7 +30,7 @@ static inline void flush_tlb_all_local(void)
 {
     dsb();
 
-    WRITE_CP32((uint32_t) 0, TLBIALLNSNHIS);
+    WRITE_CP32((uint32_t) 0, TLBIALLNSNH);
 
     dsb();
     isb();
Signature · 1 line
1.7.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Ian Campbell

We currently setup page table walks etc as outer-shareable. Given we don't really make the distinction between inner- and outer-shareable yet err on theside of safety.

Quoted 31 lines
Cc Stefano Stabellini <[email protected]>
Cc Tim Deegan <[email protected]>
---
 xen/include/asm-arm/flushtlb.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
xen/include/asm-arm/flushtlb.h +2 -2
index 210abfa..5067e5d 100644
@@ -19,7 +19,7 @@ static inline void flush_tlb_local(void)
 {
     dsb();
 
-    WRITE_CP32((uint32_t) 0, TLBIALLIS);
+    WRITE_CP32((uint32_t) 0, TLBIALL);
 
     dsb();
     isb();
@@ -30,7 +30,7 @@ static inline void flush_tlb_all_local(void)
 {
     dsb();
 
-    WRITE_CP32((uint32_t) 0, TLBIALLNSNHIS);
+    WRITE_CP32((uint32_t) 0, TLBIALLNSNH);
 
     dsb();
     isb();
Signature · 1 line
1.7.9.1