Re: [PATCH v4 5/8] arch: introduce set_direct_map_valid_noflush()

2024-10-07 Thread Mike Rapoport
Hi Huacai, On Tue, Oct 08, 2024 at 10:11:25AM +0800, Huacai Chen wrote: > Hi, Mike, > > On Mon, Oct 7, 2024 at 2:30 PM Mike Rapoport wrote: > > > > From: "Mike Rapoport (Microsoft)" > > > > Add an API that will allow updates of the direct/linear map for a set of > > physically contiguous pages.

Re: [PATCH v4 5/8] arch: introduce set_direct_map_valid_noflush()

2024-10-07 Thread Huacai Chen
Hi, Mike, On Mon, Oct 7, 2024 at 2:30 PM Mike Rapoport wrote: > > From: "Mike Rapoport (Microsoft)" > > Add an API that will allow updates of the direct/linear map for a set of > physically contiguous pages. > > It will be used in the following patches. > > Signed-off-by: Mike Rapoport (Microsof

Re: [PATCH] arc: rename aux.h to arc_aux.h

2024-10-07 Thread Vineet Gupta
On 10/7/24 05:04, Szőke Benjamin wrote: > 2024. 10. 05. 21:40 keltezéssel, Vineet Gupta írta: >> On 10/5/24 06:41, Szőke Benjamin wrote: >>> 2024. 09. 25. 10:48 keltezéssel, Shahab Vahedi írta: +Add Vineet (with the right address) +Update Alexey's address to business instance Se

Re: [PATCH] arc: rename aux.h to arc_aux.h

2024-10-07 Thread Szőke Benjamin
2024. 10. 05. 21:40 keltezéssel, Vineet Gupta írta: On 10/5/24 06:41, Szőke Benjamin wrote: 2024. 09. 25. 10:48 keltezéssel, Shahab Vahedi írta: +Add Vineet (with the right address) +Update Alexey's address to business instance September 23, "Szőke Benjamin" wrote: Long time ago i submitted

[PATCH v4 8/8] x86/module: enable ROX caches for module text

2024-10-07 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" Enable execmem's cache of PMD_SIZE'ed pages mapped as ROX for module text allocations. Signed-off-by: Mike Rapoport (Microsoft) --- arch/x86/mm/init.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/x86/mm/in

[PATCH v4 7/8] execmem: add support for cache of large ROX pages

2024-10-07 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" Using large pages to map text areas reduces iTLB pressure and improves performance. Extend execmem_alloc() with an ability to use huge pages with ROX permissions as a cache for smaller allocations. To populate the cache, a writable large page is allocated from