lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240429103346.59115-4-libang.li@antgroup.com>
Date: Mon, 29 Apr 2024 18:33:44 +0800
From: "Bang Li" <libang.li@...group.com>
To: akpm@...ux-foundation.org,
	chenhuacai@...nel.org,
	tsbogend@...ha.franken.de,
	paul.walmsley@...ive.com,
	palmer@...belt.com,
	chris@...kel.net,
	jcmvbkbc@...il.com
Cc:  <david@...hat.com>,
   <ryan.roberts@....com>,
   <libang.linux@...il.com>,
   <ioworker0@...il.com>,
   <linux-kernel@...r.kernel.org>,
   <linux-mm@...ck.org>,
   <loongarch@...ts.linux.dev>,
   <linux-mips@...r.kernel.org>,
   <linux-riscv@...ts.infradead.org>,
  "Bang Li" <libang.li@...group.com>
Subject: [PATCH v1 3/5] riscv: Add update_mmu_tlb_range()

Added update_mmu_tlb_range function, we can batch update tlb of an
address range.

Signed-off-by: Bang Li <libang.li@...group.com>
---
 arch/riscv/include/asm/pgtable.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h
index f2d5973a011b..d515a11a52cd 100644
--- a/arch/riscv/include/asm/pgtable.h
+++ b/arch/riscv/include/asm/pgtable.h
@@ -488,6 +488,8 @@ static inline void update_mmu_cache_range(struct vm_fault *vmf,
 
 #define __HAVE_ARCH_UPDATE_MMU_TLB
 #define update_mmu_tlb update_mmu_cache
+#define update_mmu_tlb_range(vma, addr, ptep, nr) \
+	update_mmu_cache_range(NULL, vma, addr, ptep, nr)
 
 static inline void update_mmu_cache_pmd(struct vm_area_struct *vma,
 		unsigned long address, pmd_t *pmdp)
-- 
2.19.1.6.gb485710b


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ