[kvm-unit-tests PATCH v2 02/18] lib: arm64: Remove barriers before TLB operations

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

 



When changing a translation table entry, we already use all the necessary
barriers. Remove them from the flush_tlb_{page,all} functions.

We don't touch the arm versions of the TLB operations because they had no
barriers before the TLBIs to begin with.

Signed-off-by: Alexandru Elisei <alexandru.elisei@xxxxxxx>
---
 lib/arm64/asm/mmu.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/arm64/asm/mmu.h b/lib/arm64/asm/mmu.h
index 72d75eafc882..5d6d49036a06 100644
--- a/lib/arm64/asm/mmu.h
+++ b/lib/arm64/asm/mmu.h
@@ -12,7 +12,6 @@
 
 static inline void flush_tlb_all(void)
 {
-	dsb(ishst);
 	asm("tlbi	vmalle1is");
 	dsb(ish);
 	isb();
@@ -21,7 +20,6 @@ static inline void flush_tlb_all(void)
 static inline void flush_tlb_page(unsigned long vaddr)
 {
 	unsigned long page = vaddr >> 12;
-	dsb(ishst);
 	asm("tlbi	vaae1is, %0" :: "r" (page));
 	dsb(ish);
 	isb();
-- 
2.20.1




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux