Skip to contentSkip to conversation

x86/tlb: Don't use locked operations in tlbflush_filter()

PATCH In review Andrew Cooper 2 participants 2 messages May 8, 2017 – May 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/tlb: Don't use locked operations in tlbflush_filter()

All passed cpumask_t's are context-local and not at risk of concurrent updates.

---
CC: Jan Beulich <[email protected]>

---
 xen/include/asm-x86/flushtlb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/asm-x86/flushtlb.h +1 -1
index 8b7adef..aa86ea2 100644
@@ -55,7 +55,7 @@ static inline void tlbflush_filter(cpumask_t *mask, uint32_t page_timestamp)
 
     for_each_cpu ( cpu, mask )
         if ( !NEED_FLUSH(per_cpu(tlbflush_time, cpu), page_timestamp) )
-            cpumask_clear_cpu(cpu, mask);
+            __cpumask_clear_cpu(cpu, mask);
 }
 
 void new_tlbflush_clock_period(void);
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel