mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
To: linux-mm@kvack.org
Cc: "Adrian Barnaś" <abarnas@google.com>,
	"Alexander Gordeev" <agordeev@linux.ibm.com>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"Andy Lutomirski" <luto@kernel.org>,
	"Arnd Bergmann" <arnd@arndb.de>, "Borislav Petkov" <bp@alien8.de>,
	"Brendan Jackman" <brendan.jackman@linux.dev>,
	"Catalin Marinas" <catalin.marinas@arm.com>,
	"Dave Hansen" <dave.hansen@linux.intel.com>,
	"David Hildenbrand" <david@kernel.org>,
	"Gerald Schaefer" <gerald.schaefer@linux.ibm.com>,
	"Heiko Carstens" <hca@linux.ibm.com>,
	"Huacai Chen" <chenhuacai@kernel.org>,
	"Ingo Molnar" <mingo@kernel.org>,
	"Kevin Brodsky" <kevin.brodsky@arm.com>,
	"Liam R. Howlett" <liam@infradead.org>,
	"Lorenzo Stoakes" <ljs@kernel.org>,
	"Madhavan Srinivasan" <maddy@linux.ibm.com>,
	"Michal Hocko" <mhocko@suse.com>,
	"Mike Rapoport" <rppt@kernel.org>,
	"Palmer Dabbelt" <palmer@dabbelt.com>,
	"Paul Walmsley" <pjw@kernel.org>,
	"Peter Zijlstra" <peterz@infradead.org>,
	"Russell King" <linux@armlinux.org.uk>,
	"Suren Baghdasaryan" <surenb@google.com>,
	"Thomas Gleixner" <tglx@kernel.org>,
	"Vasily Gorbik" <gor@linux.ibm.com>,
	"Vlastimil Babka" <vbabka@kernel.org>,
	"Will Deacon" <will@kernel.org>,
	linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org,
	linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
	loongarch@lists.linux.dev, x86@kernel.org
Subject: [PATCH RFC v2 47/54] s390: use the generic CPA core
Date: Thu, 26 Nov 2026 13:15:00 +0200	[thread overview]
Message-ID: <20261126-generic-set-memory-v0-1-v2-47-723f1e33c3d8@kernel.org> (raw)
In-Reply-To: <20261126-generic-set-memory-v0-1-v2-0-723f1e33c3d8@kernel.org>

s390 implementation of set_memory_*() APIs has a few shortcomings:

* it splits every large page that a request touches, even when the request
  covers it with one protection
* it writes every entry of the range, whether anything changes or not
* only VM_ALLOC areas change their identity map alias, so the identity map
  alias of the kernel image stays writable after the image is write
  protected

The availability of the generic CPA core makes s390's implementation of
set_memory_*() APIs unnecessary and it can be replaced with several hooks
required by CPA core.

This way the core can manage the policy decisions and the architecture only
has to take care of the page table manipulation.

Switch to the generic CPA core and its set_memory() entry points.
For s390 this means that:

* a large page is kept when a request covers it with one protection and
  split only otherwise
* nothing is written when nothing changes
* a hole in the identity map is skipped
* an unmapped address outside of the identity map is reported with a
  warning and -EFAULT
* the identity map alias follows read-only and read-write changes of any
  mapping of RAM outside the identity map, the kernel image included
* set_memory_4k() is implemented using a split request to the core
* the direct map counters are the generic ones; the DirectMap lines of
  /proc/meminfo do not change
* requests are serialized by the core, rather than by cpa_mutex; the page
  table dump may now run during a split by set_direct_map_*_noflush(),
  which never frees a table, and sees either the leaf or a complete table
* lazily unmapped vmap areas are purged before a request, so that they do
  not keep stale TLB entries with the old protection

The page table modification hooks write entries with pgt_set(), which uses
CRDTE or CSPG, so there is no need to flush the TLB at the end of a CPA
request.

vmem.c keeps split_pud_page() for memory hot-remove, built from the same
hooks.

The boot time counts of the decompressor are folded into the generic
counters in paging_init(), before the first split.

Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
---
 arch/s390/Kconfig                  |   1 +
 arch/s390/include/asm/pageattr.h   |  21 ++
 arch/s390/include/asm/set_memory.h |  55 +---
 arch/s390/mm/dump_pagetables.c     |   2 -
 arch/s390/mm/init.c                |  15 ++
 arch/s390/mm/pageattr.c            | 496 ++++++++++++++++---------------------
 arch/s390/mm/vmem.c                |  10 +-
 7 files changed, 272 insertions(+), 328 deletions(-)

diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index 7138d923d86f..413b886a9e9a 100644
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -180,6 +180,7 @@ config S390
 	select GENERIC_CPU_VULNERABILITIES
 	select GENERIC_ENTRY
 	select GENERIC_GETTIMEOFDAY
+	select GENERIC_PAGEATTR
 	select GENERIC_SMP_IDLE_THREAD
 	select GENERIC_IOREMAP
 	select GLOB
diff --git a/arch/s390/include/asm/pageattr.h b/arch/s390/include/asm/pageattr.h
new file mode 100644
index 000000000000..83c4a40a9b20
--- /dev/null
+++ b/arch/s390/include/asm/pageattr.h
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_S390_PAGEATTR_H
+#define _ASM_S390_PAGEATTR_H
+
+void *arch_cpa_alloc_pgtable(struct cpa_leaf *leaf);
+void arch_cpa_free_pgtable(struct cpa_leaf *leaf, void *table);
+#define arch_cpa_alloc_pgtable arch_cpa_alloc_pgtable
+
+int arch_cpa_split_leaf(struct cpa_data *cpa, struct cpa_leaf *leaf,
+			void *table);
+static inline bool arch_cpa_can_split(struct cpa_data *cpa,
+				      struct cpa_leaf *leaf)
+{
+	return true;
+}
+#define arch_cpa_can_split arch_cpa_can_split
+
+int arch_cpa_process_alias(struct cpa_data *cpa);
+#define arch_cpa_process_alias arch_cpa_process_alias
+
+#endif /* _ASM_S390_PAGEATTR_H */
diff --git a/arch/s390/include/asm/set_memory.h b/arch/s390/include/asm/set_memory.h
index 23987b721ed9..30bfc8305f5d 100644
--- a/arch/s390/include/asm/set_memory.h
+++ b/arch/s390/include/asm/set_memory.h
@@ -2,65 +2,32 @@
 #ifndef _ASMS390_SET_MEMORY_H
 #define _ASMS390_SET_MEMORY_H
 
-#include <linux/mutex.h>
+#include <asm-generic/set_memory.h>
 
-extern struct mutex cpa_mutex;
-
-enum {
-	_SET_MEMORY_RO_BIT,
-	_SET_MEMORY_RW_BIT,
-	_SET_MEMORY_NX_BIT,
-	_SET_MEMORY_X_BIT,
-	_SET_MEMORY_4K_BIT,
-	_SET_MEMORY_INV_BIT,
-	_SET_MEMORY_DEF_BIT,
-};
-
-#define SET_MEMORY_RO	BIT(_SET_MEMORY_RO_BIT)
-#define SET_MEMORY_RW	BIT(_SET_MEMORY_RW_BIT)
-#define SET_MEMORY_NX	BIT(_SET_MEMORY_NX_BIT)
-#define SET_MEMORY_X	BIT(_SET_MEMORY_X_BIT)
-#define SET_MEMORY_4K	BIT(_SET_MEMORY_4K_BIT)
-#define SET_MEMORY_INV	BIT(_SET_MEMORY_INV_BIT)
-#define SET_MEMORY_DEF	BIT(_SET_MEMORY_DEF_BIT)
-
-int __set_memory(unsigned long addr, unsigned long numpages, unsigned long flags);
-
-#define set_memory_rox set_memory_rox
+int set_memory_4k(unsigned long addr, unsigned long numpages);
 
 /*
- * Generate two variants of each set_memory() function:
+ * Generate a variant of each set_memory() function:
  *
- * set_memory_yy(unsigned long addr, int numpages);
  * __set_memory_yy(void *start, void *end);
  *
- * The second variant exists for both convenience to avoid the usual
- * (unsigned long) casts, but unlike the first variant it can also be used
- * for areas larger than 8TB, which may happen at memory initialization.
+ * It exists for convenience to avoid the usual (unsigned long) casts.
  */
-#define __SET_MEMORY_FUNC(fname, flags)					\
-static inline int fname(unsigned long addr, int numpages)		\
-{									\
-	return __set_memory(addr, numpages, (flags));			\
-}									\
-									\
+#define __SET_MEMORY_FUNC(fname)					\
 static inline int __##fname(void *start, void *end)			\
 {									\
 	unsigned long numpages;						\
 									\
 	numpages = (end - start) >> PAGE_SHIFT;				\
-	return __set_memory((unsigned long)start, numpages, (flags));	\
+	return fname((unsigned long)start, numpages);			\
 }
 
-__SET_MEMORY_FUNC(set_memory_ro, SET_MEMORY_RO)
-__SET_MEMORY_FUNC(set_memory_rw, SET_MEMORY_RW)
-__SET_MEMORY_FUNC(set_memory_nx, SET_MEMORY_NX)
-__SET_MEMORY_FUNC(set_memory_x, SET_MEMORY_X)
-__SET_MEMORY_FUNC(set_memory_rox, SET_MEMORY_RO | SET_MEMORY_X)
-__SET_MEMORY_FUNC(set_memory_4k, SET_MEMORY_4K)
+__SET_MEMORY_FUNC(set_memory_ro)
+__SET_MEMORY_FUNC(set_memory_rw)
+__SET_MEMORY_FUNC(set_memory_nx)
+__SET_MEMORY_FUNC(set_memory_x)
+__SET_MEMORY_FUNC(set_memory_rox)
 
-int set_direct_map_invalid_noflush(struct page *page, unsigned int nr);
-int set_direct_map_default_noflush(struct page *page, unsigned int nr);
 bool kernel_page_present(struct page *page);
 
 #endif
diff --git a/arch/s390/mm/dump_pagetables.c b/arch/s390/mm/dump_pagetables.c
index a23a0bd4d8a8..7533dc22e0e9 100644
--- a/arch/s390/mm/dump_pagetables.c
+++ b/arch/s390/mm/dump_pagetables.c
@@ -247,9 +247,7 @@ static int ptdump_show(struct seq_file *m, void *v)
 		.marker = markers,
 	};
 
-	mutex_lock(&cpa_mutex);
 	ptdump_walk_pgd(&st.ptdump, &init_mm, NULL);
-	mutex_unlock(&cpa_mutex);
 	return 0;
 }
 DEFINE_SHOW_ATTRIBUTE(ptdump);
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c
index be7e009e7b59..ce51c2ca8e3b 100644
--- a/arch/s390/mm/init.c
+++ b/arch/s390/mm/init.c
@@ -24,6 +24,7 @@
 #include <linux/init.h>
 #include <linux/pagemap.h>
 #include <linux/memblock.h>
+#include <linux/pageattr.h>
 #include <linux/memory.h>
 #include <linux/pfn.h>
 #include <linux/poison.h>
@@ -95,11 +96,25 @@ void __init arch_zone_limits_init(unsigned long *max_zone_pfns)
 	max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
 }
 
+static long __init direct_pages(int type)
+{
+	return atomic_long_read(&direct_pages_count[type]);
+}
+
 /*
  * paging_init() sets up the page tables
  */
 void __init paging_init(void)
 {
+	if (IS_ENABLED(CONFIG_PROC_FS)) {
+		direct_map_count_update(PGTABLE_LEVEL_PTE,
+					direct_pages(PG_DIRECT_MAP_4K));
+		direct_map_count_update(PGTABLE_LEVEL_PMD,
+					direct_pages(PG_DIRECT_MAP_1M));
+		direct_map_count_update(PGTABLE_LEVEL_PUD,
+					direct_pages(PG_DIRECT_MAP_2G));
+	}
+
 	vmem_map_init();
 	zone_dma_limit = DMA_BIT_MASK(31);
 }
diff --git a/arch/s390/mm/pageattr.c b/arch/s390/mm/pageattr.c
index 80e834e8b8e1..d3e91b9d391e 100644
--- a/arch/s390/mm/pageattr.c
+++ b/arch/s390/mm/pageattr.c
@@ -5,6 +5,7 @@
  */
 #include <linux/cpufeature.h>
 #include <linux/hugetlb.h>
+#include <linux/pageattr.h>
 #include <linux/proc_fs.h>
 #include <linux/vmalloc.h>
 #include <linux/mm.h>
@@ -42,12 +43,8 @@ atomic_long_t __bootdata_preserved(direct_pages_count[PG_DIRECT_MAP_MAX]);
 
 void arch_report_meminfo(struct seq_file *m)
 {
-	seq_printf(m, "DirectMap4k:    %8lu kB\n",
-		   atomic_long_read(&direct_pages_count[PG_DIRECT_MAP_4K]) << 2);
-	seq_printf(m, "DirectMap1M:    %8lu kB\n",
-		   atomic_long_read(&direct_pages_count[PG_DIRECT_MAP_1M]) << 10);
-	seq_printf(m, "DirectMap2G:    %8lu kB\n",
-		   atomic_long_read(&direct_pages_count[PG_DIRECT_MAP_2G]) << 21);
+	cpa_report_meminfo(m, BIT(PGTABLE_LEVEL_PTE) | BIT(PGTABLE_LEVEL_PMD) |
+			   BIT(PGTABLE_LEVEL_PUD));
 }
 #endif /* CONFIG_PROC_FS */
 
@@ -76,320 +73,261 @@ static void pgt_set(unsigned long *old, unsigned long new, unsigned long addr,
 	}
 }
 
-static int walk_pte_level(pmd_t *pmdp, unsigned long addr, unsigned long end,
-			  unsigned long flags)
+static unsigned long cpa_large_to_pte(unsigned long val)
 {
-	pte_t *ptep, new;
-
-	if (flags == SET_MEMORY_4K)
-		return 0;
-	ptep = pte_offset_kernel(pmdp, addr);
-	do {
-		new = ptep_get(ptep);
-		if (pte_none(new))
-			return -EINVAL;
-		if (flags & SET_MEMORY_RO)
-			new = pte_wrprotect(new);
-		else if (flags & SET_MEMORY_RW)
-			new = pte_mkwrite_novma(pte_mkdirty(new));
-		if (flags & SET_MEMORY_NX)
-			new = set_pte_bit(new, __pgprot(_PAGE_NOEXEC));
-		else if (flags & SET_MEMORY_X)
-			new = clear_pte_bit(new, __pgprot(_PAGE_NOEXEC));
-		if (flags & SET_MEMORY_INV) {
-			new = set_pte_bit(new, __pgprot(_PAGE_INVALID));
-		} else if (flags & SET_MEMORY_DEF) {
-			new = __pte(pte_val(new) & PAGE_MASK);
-			new = set_pte_bit(new, PAGE_KERNEL);
-		}
-		pgt_set((unsigned long *)ptep, pte_val(new), addr, CRDTE_DTT_PAGE);
-		ptep++;
-		addr += PAGE_SIZE;
-	} while (addr < end);
-	return 0;
+	unsigned long prot = 0;
+
+	if (val & _SEGMENT_ENTRY_PRESENT)
+		prot |= _PAGE_PRESENT;
+	if (val & _SEGMENT_ENTRY_INVALID)
+		prot |= _PAGE_INVALID;
+	if (val & _SEGMENT_ENTRY_PROTECT)
+		prot |= _PAGE_PROTECT;
+	if (val & _SEGMENT_ENTRY_NOEXEC)
+		prot |= _PAGE_NOEXEC;
+	if (val & _SEGMENT_ENTRY_SOFT_DIRTY)
+		prot |= _PAGE_SOFT_DIRTY;
+	if (val & _SEGMENT_ENTRY_YOUNG)
+		prot |= _PAGE_YOUNG;
+	if (val & _SEGMENT_ENTRY_DIRTY)
+		prot |= _PAGE_DIRTY;
+	if (val & _SEGMENT_ENTRY_READ)
+		prot |= _PAGE_READ;
+	if (val & _SEGMENT_ENTRY_WRITE)
+		prot |= _PAGE_WRITE;
+
+	return prot;
 }
 
-static int split_pmd_page(pmd_t *pmdp, unsigned long addr)
+static unsigned long cpa_pte_to_large(unsigned long prot)
 {
-	unsigned long pte_addr, prot;
-	pte_t *pt_dir, *ptep;
-	pmd_t new, pmd;
-	int i, ro, nx;
+	unsigned long val = _SEGMENT_ENTRY_LARGE;
+
+	if (prot & _PAGE_PRESENT)
+		val |= _SEGMENT_ENTRY_PRESENT;
+	if (prot & _PAGE_INVALID)
+		val |= _SEGMENT_ENTRY_INVALID;
+	if (prot & _PAGE_PROTECT)
+		val |= _SEGMENT_ENTRY_PROTECT;
+	if (prot & _PAGE_NOEXEC)
+		val |= _SEGMENT_ENTRY_NOEXEC;
+	if (prot & _PAGE_SOFT_DIRTY)
+		val |= _SEGMENT_ENTRY_SOFT_DIRTY;
+	if (prot & _PAGE_YOUNG)
+		val |= _SEGMENT_ENTRY_YOUNG;
+	if (prot & _PAGE_DIRTY)
+		val |= _SEGMENT_ENTRY_DIRTY;
+	if (prot & _PAGE_READ)
+		val |= _SEGMENT_ENTRY_READ;
+	if (prot & _PAGE_WRITE)
+		val |= _SEGMENT_ENTRY_WRITE;
+
+	return val;
+}
 
-	pt_dir = vmem_pte_alloc();
-	if (!pt_dir)
-		return -ENOMEM;
-	pmd = pmdp_get(pmdp);
-	pte_addr = pmd_pfn(pmd) << PAGE_SHIFT;
-	ro = !!(pmd_val(pmd) & _SEGMENT_ENTRY_PROTECT);
-	nx = !!(pmd_val(pmd) & _SEGMENT_ENTRY_NOEXEC);
-	prot = pgprot_val(ro ? PAGE_KERNEL_RO : PAGE_KERNEL);
-	if (!nx)
-		prot &= ~_PAGE_NOEXEC;
-	ptep = pt_dir;
-	for (i = 0; i < PTRS_PER_PTE; i++) {
-		set_pte(ptep, __pte(pte_addr | prot));
-		pte_addr += PAGE_SIZE;
-		ptep++;
+void arch_cpa_decode_leaf(struct cpa_leaf *leaf)
+{
+	unsigned long val = pte_val(ptep_get(leaf->kpte));
+	enum pgtable_level level = leaf->level;
+
+	switch (level) {
+	case PGTABLE_LEVEL_PTE:
+		leaf->pfn = pte_pfn(__pte(val));
+		leaf->prot = __pgprot(val & ~PAGE_MASK);
+		break;
+	case PGTABLE_LEVEL_PMD:
+		leaf->pfn = pmd_pfn(__pmd(val));
+		leaf->prot = __pgprot(cpa_large_to_pte(val));
+		break;
+	case PGTABLE_LEVEL_PUD:
+		leaf->pfn = pud_pfn(__pud(val));
+		leaf->prot = __pgprot(cpa_large_to_pte(val));
+		break;
+	default:
+		leaf->pfn = 0;
+		leaf->prot = __pgprot(0);
+		break;
 	}
-	new = __pmd(__pa(pt_dir) | _SEGMENT_ENTRY);
-	pgt_set((unsigned long *)pmdp, pmd_val(new), addr, CRDTE_DTT_SEGMENT);
-	update_page_count(PG_DIRECT_MAP_4K, PTRS_PER_PTE);
-	update_page_count(PG_DIRECT_MAP_1M, -1);
-	return 0;
 }
 
-static void modify_pmd_page(pmd_t *pmdp, unsigned long addr,
-			    unsigned long flags)
+void arch_cpa_modify_leaf(struct cpa_leaf *leaf, pgprot_t prot)
 {
-	pmd_t new = pmdp_get(pmdp);
-
-	if (flags & SET_MEMORY_RO)
-		new = pmd_wrprotect(new);
-	else if (flags & SET_MEMORY_RW)
-		new = pmd_mkwrite_novma(pmd_mkdirty(new));
-	if (flags & SET_MEMORY_NX)
-		new = set_pmd_bit(new, __pgprot(_SEGMENT_ENTRY_NOEXEC));
-	else if (flags & SET_MEMORY_X)
-		new = clear_pmd_bit(new, __pgprot(_SEGMENT_ENTRY_NOEXEC));
-	if (flags & SET_MEMORY_INV) {
-		new = set_pmd_bit(new, __pgprot(_SEGMENT_ENTRY_INVALID));
-	} else if (flags & SET_MEMORY_DEF) {
-		new = __pmd(pmd_val(new) & PMD_MASK);
-		new = set_pmd_bit(new, SEGMENT_KERNEL);
+	unsigned long *entry = (unsigned long *)leaf->kpte;
+	unsigned long val = PFN_PHYS(leaf->pfn);
+	enum pgtable_level level = leaf->level;
+	unsigned long lpaddr = leaf->addr;
+
+	switch (level) {
+	case PGTABLE_LEVEL_PTE:
+		pgt_set(entry, val | pgprot_val(prot), lpaddr, CRDTE_DTT_PAGE);
+		break;
+	case PGTABLE_LEVEL_PMD:
+		pgt_set(entry, val | cpa_pte_to_large(pgprot_val(prot)),
+			lpaddr, CRDTE_DTT_SEGMENT);
+		break;
+	case PGTABLE_LEVEL_PUD:
+		pgt_set(entry, val | _REGION_ENTRY_TYPE_R3 |
+			cpa_pte_to_large(pgprot_val(prot)),
+			lpaddr, CRDTE_DTT_REGION3);
+		break;
+	default:
+		break;
 	}
-	pgt_set((unsigned long *)pmdp, pmd_val(new), addr, CRDTE_DTT_SEGMENT);
 }
 
-static int walk_pmd_level(pud_t *pudp, unsigned long addr, unsigned long end,
-			  unsigned long flags)
+void arch_cpa_flush(struct cpa_data *cpa)
 {
-	unsigned long next;
-	pmd_t *pmdp, pmd;
-	int need_split;
-	int rc = 0;
-
-	pmdp = pmd_offset(pudp, addr);
-	do {
-		pmd = pmdp_get(pmdp);
-		if (pmd_none(pmd))
-			return -EINVAL;
-		next = pmd_addr_end(addr, end);
-		if (pmd_leaf(pmd)) {
-			need_split  = !!(flags & SET_MEMORY_4K);
-			need_split |= !!(addr & ~PMD_MASK);
-			need_split |= !!(addr + PMD_SIZE > next);
-			if (need_split) {
-				rc = split_pmd_page(pmdp, addr);
-				if (rc)
-					return rc;
-				continue;
-			}
-			modify_pmd_page(pmdp, addr, flags);
-		} else {
-			rc = walk_pte_level(pmdp, addr, next, flags);
-			if (rc)
-				return rc;
-		}
-		pmdp++;
-		addr = next;
-	} while (addr < end);
-	return rc;
 }
 
-int split_pud_page(pud_t *pudp, unsigned long addr)
+void *arch_cpa_alloc_pgtable(struct cpa_leaf *leaf)
 {
-	unsigned long pmd_addr, prot;
-	pmd_t *pm_dir, *pmdp;
-	pud_t new, pud;
-	int i, ro, nx;
+	enum pgtable_level level = leaf->level;
+	void *table;
 
-	pm_dir = vmem_crst_alloc(_SEGMENT_ENTRY_EMPTY);
-	if (!pm_dir)
-		return -ENOMEM;
-	pud = pudp_get(pudp);
-	pmd_addr = pud_pfn(pud) << PAGE_SHIFT;
-	ro = !!(pud_val(pud) & _REGION_ENTRY_PROTECT);
-	nx = !!(pud_val(pud) & _REGION_ENTRY_NOEXEC);
-	prot = pgprot_val(ro ? SEGMENT_KERNEL_RO : SEGMENT_KERNEL);
-	if (!nx)
-		prot &= ~_SEGMENT_ENTRY_NOEXEC;
-	pmdp = pm_dir;
-	for (i = 0; i < PTRS_PER_PMD; i++) {
-		set_pmd(pmdp, __pmd(pmd_addr | prot));
-		pmd_addr += PMD_SIZE;
-		pmdp++;
-	}
-	new = __pud(__pa(pm_dir) | _REGION3_ENTRY);
-	pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3);
-	update_page_count(PG_DIRECT_MAP_1M, PTRS_PER_PMD);
-	update_page_count(PG_DIRECT_MAP_2G, -1);
-	return 0;
-}
+	if (level == PGTABLE_LEVEL_PMD)
+		table = vmem_pte_alloc();
+	else
+		table = vmem_crst_alloc(_SEGMENT_ENTRY_EMPTY);
 
-static void modify_pud_page(pud_t *pudp, unsigned long addr,
-			    unsigned long flags)
-{
-	pud_t new = pudp_get(pudp);
-
-	if (flags & SET_MEMORY_RO)
-		new = pud_wrprotect(new);
-	else if (flags & SET_MEMORY_RW)
-		new = pud_mkwrite(pud_mkdirty(new));
-	if (flags & SET_MEMORY_NX)
-		new = set_pud_bit(new, __pgprot(_REGION_ENTRY_NOEXEC));
-	else if (flags & SET_MEMORY_X)
-		new = clear_pud_bit(new, __pgprot(_REGION_ENTRY_NOEXEC));
-	if (flags & SET_MEMORY_INV) {
-		new = set_pud_bit(new, __pgprot(_REGION_ENTRY_INVALID));
-	} else if (flags & SET_MEMORY_DEF) {
-		new = __pud(pud_val(new) & PUD_MASK);
-		new = set_pud_bit(new, REGION3_KERNEL);
-	}
-	pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3);
+	return table;
 }
 
-static int walk_pud_level(p4d_t *p4d, unsigned long addr, unsigned long end,
-			  unsigned long flags)
+void arch_cpa_free_pgtable(struct cpa_leaf *leaf, void *table)
 {
-	unsigned long next;
-	pud_t *pudp, pud;
-	int need_split;
-	int rc = 0;
-
-	pudp = pud_offset(p4d, addr);
-	do {
-		pud = pudp_get(pudp);
-		if (pud_none(pud))
-			return -EINVAL;
-		next = pud_addr_end(addr, end);
-		if (pud_leaf(pud)) {
-			need_split  = !!(flags & SET_MEMORY_4K);
-			need_split |= !!(addr & ~PUD_MASK);
-			need_split |= !!(addr + PUD_SIZE > next);
-			if (need_split) {
-				rc = split_pud_page(pudp, addr);
-				if (rc)
-					break;
-				continue;
-			}
-			modify_pud_page(pudp, addr, flags);
-		} else {
-			rc = walk_pmd_level(pudp, addr, next, flags);
-		}
-		pudp++;
-		addr = next;
-	} while (addr < end && !rc);
-	return rc;
-}
+	enum pgtable_level level = leaf->level;
 
-static int walk_p4d_level(pgd_t *pgd, unsigned long addr, unsigned long end,
-			  unsigned long flags)
-{
-	unsigned long next;
-	p4d_t *p4dp;
-	int rc = 0;
-
-	p4dp = p4d_offset(pgd, addr);
-	do {
-		if (p4d_none(p4dp_get(p4dp)))
-			return -EINVAL;
-		next = p4d_addr_end(addr, end);
-		rc = walk_pud_level(p4dp, addr, next, flags);
-		p4dp++;
-		addr = next;
-	} while (addr < end && !rc);
-	return rc;
+	if (level == PGTABLE_LEVEL_PMD)
+		page_table_free(&init_mm, table);
+	else
+		free_pages((unsigned long)table, CRST_ALLOC_ORDER);
 }
 
-DEFINE_MUTEX(cpa_mutex);
-
-static int change_page_attr(unsigned long addr, unsigned long end,
-			    unsigned long flags)
+int arch_cpa_split_leaf(struct cpa_data *cpa, struct cpa_leaf *leaf,
+			void *table)
 {
-	unsigned long next;
-	int rc = -EINVAL;
-	pgd_t *pgdp;
+	unsigned long *entry = (unsigned long *)leaf->kpte;
+	unsigned long prot = pgprot_val(leaf->prot);
+	unsigned long addr = PFN_PHYS(leaf->pfn);
+	enum pgtable_level level = leaf->level;
+	unsigned long lpaddr = leaf->addr;
+	unsigned long i;
+
+	switch (level) {
+	case PGTABLE_LEVEL_PMD:
+		for (i = 0; i < PTRS_PER_PTE; i++, addr += PAGE_SIZE)
+			set_pte((pte_t *)table + i, __pte(addr | prot));
+		pgt_set(entry, __pa(table) | _SEGMENT_ENTRY, lpaddr,
+			CRDTE_DTT_SEGMENT);
+		break;
+	case PGTABLE_LEVEL_PUD:
+		prot = cpa_pte_to_large(prot);
+		for (i = 0; i < PTRS_PER_PMD; i++, addr += PMD_SIZE)
+			set_pmd((pmd_t *)table + i, __pmd(addr | prot));
+		pgt_set(entry, __pa(table) | _REGION3_ENTRY, lpaddr,
+			CRDTE_DTT_REGION3);
+		break;
+	default:
+		return -EINVAL;
+	}
 
-	pgdp = pgd_offset_k(addr);
-	do {
-		if (pgd_none(pgdp_get(pgdp)))
-			break;
-		next = pgd_addr_end(addr, end);
-		rc = walk_p4d_level(pgdp, addr, next, flags);
-		if (rc)
-			break;
-	} while (pgdp++, addr = next, addr < end && !rc);
-	return rc;
+	return 0;
 }
 
-static int change_page_attr_alias(unsigned long addr, unsigned long end,
-				  unsigned long flags)
+/*
+ * Memory hot-remove splits a region-third entry of the identity map that
+ * it removes only a part of. It calls the hooks outside of a request,
+ * under vmem_mutex and without cpa_lock.
+ */
+int split_pud_page(pud_t *pudp, unsigned long addr)
 {
-	unsigned long alias, offset, va_start, va_end;
-	struct vm_struct *area;
-	int rc = 0;
-
-	/*
-	 * Changes to read-only permissions on kernel VA mappings are also
-	 * applied to the kernel direct mapping. Execute permissions are
-	 * intentionally not transferred to keep all allocated pages within
-	 * the direct mapping non-executable.
-	 */
-	flags &= SET_MEMORY_RO | SET_MEMORY_RW;
-	if (!flags)
-		return 0;
-	area = NULL;
-	while (addr < end) {
-		if (!area)
-			area = find_vm_area((void *)addr);
-		if (!area || !(area->flags & VM_ALLOC))
-			return 0;
-		va_start = (unsigned long)area->addr;
-		va_end = va_start + area->nr_pages * PAGE_SIZE;
-		offset = (addr - va_start) >> PAGE_SHIFT;
-		alias = (unsigned long)page_address(area->pages[offset]);
-		rc = change_page_attr(alias, alias + PAGE_SIZE, flags);
-		if (rc)
-			break;
-		addr += PAGE_SIZE;
-		if (addr >= va_end)
-			area = NULL;
+	struct cpa_leaf leaf = {
+		.kpte = (pte_t *)pudp,
+		.level = PGTABLE_LEVEL_PUD,
+		.addr = addr,
+		.size = PUD_SIZE,
+	};
+	void *table;
+	int rc;
+
+	arch_cpa_decode_leaf(&leaf);
+	table = arch_cpa_alloc_pgtable(&leaf);
+	if (!table)
+		return -ENOMEM;
+
+	rc = arch_cpa_split_leaf(NULL, &leaf, table);
+	if (rc) {
+		arch_cpa_free_pgtable(&leaf, table);
+		return rc;
 	}
-	return rc;
+
+	direct_map_count_split(PGTABLE_LEVEL_PUD);
+
+	return 0;
 }
 
-int __set_memory(unsigned long addr, unsigned long numpages, unsigned long flags)
+/*
+ * Changes to read-only permissions on kernel VA mappings are also
+ * applied to the kernel direct mapping. Execute permissions are
+ * intentionally not transferred to keep all allocated pages within
+ * the direct mapping non-executable.
+ */
+#define CPA_ALIAS_PROT	(_PAGE_PROTECT | _PAGE_WRITE | _PAGE_DIRTY | \
+			 _PAGE_SOFT_DIRTY)
+
+int arch_cpa_process_alias(struct cpa_data *cpa)
 {
-	unsigned long end;
-	int rc;
+	unsigned long set = pgprot_val(cpa->mask_set) & CPA_ALIAS_PROT;
+	unsigned long clr = pgprot_val(cpa->mask_clr) & CPA_ALIAS_PROT;
+	unsigned long vaddr = cpa_addr(cpa, cpa->curpage);
+	struct cpa_data alias_cpa;
 
-	if (!cpu_has_nx())
-		flags &= ~(SET_MEMORY_NX | SET_MEMORY_X);
-	if (!flags)
-		return 0;
-	if (!numpages)
+	/* The identity map covers the memory below ident_map_size. */
+	if (cpa_is_direct_map(vaddr) || PFN_PHYS(cpa->pfn) >= ident_map_size)
 		return 0;
-	addr &= PAGE_MASK;
-	end = addr + numpages * PAGE_SIZE;
-	mutex_lock(&cpa_mutex);
-	rc = change_page_attr(addr, end, flags);
-	if (rc)
-		goto out;
-	rc = change_page_attr_alias(addr, end, flags);
-out:
-	mutex_unlock(&cpa_mutex);
-	return rc;
+
+	alias_cpa = *cpa;
+	alias_cpa.addr = (unsigned long)__va(PFN_PHYS(cpa->pfn));
+	alias_cpa.mask_set = __pgprot(set);
+	alias_cpa.mask_clr = __pgprot(clr);
+
+	return cpa_change_alias(cpa, &alias_cpa);
 }
 
-int set_direct_map_invalid_noflush(struct page *page, unsigned int nr)
+static const struct cpa_op_prot cpa_ops[CPA_OP_NR] = {
+	[CPA_OP_RO]	= { .set = __pgprot(_PAGE_PROTECT),
+			    .clr = __pgprot(_PAGE_WRITE) },
+	[CPA_OP_RW]	= { .set = __pgprot(_PAGE_WRITE | _PAGE_DIRTY |
+					   _PAGE_SOFT_DIRTY),
+			    .clr = __pgprot(_PAGE_PROTECT) },
+	[CPA_OP_X]	= { .clr = __pgprot(_PAGE_NOEXEC) },
+	[CPA_OP_NX]	= { .set = __pgprot(_PAGE_NOEXEC) },
+	[CPA_OP_ROX]	= { .set = __pgprot(_PAGE_PROTECT),
+			    .clr = __pgprot(_PAGE_WRITE | _PAGE_NOEXEC) },
+	[CPA_OP_DIRECT_MAP_INVALID] = { .set = __pgprot(_PAGE_INVALID) },
+	[CPA_OP_DIRECT_MAP_DEFAULT] = { .set = __pgprot(__PAGE_KERNEL),
+					.clr = __pgprot(~PAGE_MASK) },
+};
+
+int arch_cpa_prepare(struct cpa_data *cpa, enum cpa_op op)
 {
-	return __set_memory((unsigned long)page_to_virt(page), nr, SET_MEMORY_INV);
+	cpa_init_op(cpa, &cpa_ops[op]);
+
+	/* _PAGE_NOEXEC needs the instruction-execution-protection facility */
+	cpa->mask_set = __pgprot(pgprot_val(cpa->mask_set) & page_noexec_mask);
+	cpa->mask_clr = __pgprot(pgprot_val(cpa->mask_clr) & page_noexec_mask);
+
+	return 0;
 }
 
-int set_direct_map_default_noflush(struct page *page, unsigned int nr)
+int set_memory_4k(unsigned long addr, unsigned long numpages)
 {
-	return __set_memory((unsigned long)page_to_virt(page), nr, SET_MEMORY_DEF);
+	struct cpa_data cpa = {
+		.addr = addr,
+		.numpages = numpages,
+		.flags = CPA_REQ_SPLIT,
+	};
+
+	return change_page_attr(&cpa);
 }
 
 bool kernel_page_present(struct page *page)
diff --git a/arch/s390/mm/vmem.c b/arch/s390/mm/vmem.c
index 191326ee7ec8..3cf4e6987ac0 100644
--- a/arch/s390/mm/vmem.c
+++ b/arch/s390/mm/vmem.c
@@ -6,6 +6,7 @@
 #include <linux/memory_hotplug.h>
 #include <linux/cpufeature.h>
 #include <linux/memblock.h>
+#include <linux/pageattr.h>
 #include <linux/pfn.h>
 #include <linux/mm.h>
 #include <linux/init.h>
@@ -198,7 +199,8 @@ static int __ref modify_pte_table(pmd_t *pmd, unsigned long addr,
 	ret = 0;
 out:
 	if (direct)
-		update_page_count(PG_DIRECT_MAP_4K, add ? pages : -pages);
+		direct_map_count_update(PGTABLE_LEVEL_PTE,
+					add ? pages : -pages);
 	return ret;
 }
 
@@ -295,7 +297,8 @@ static int __ref modify_pmd_table(pud_t *pud, unsigned long addr,
 	ret = 0;
 out:
 	if (direct)
-		update_page_count(PG_DIRECT_MAP_1M, add ? pages : -pages);
+		direct_map_count_update(PGTABLE_LEVEL_PMD,
+					add ? pages : -pages);
 	return ret;
 }
 
@@ -365,7 +368,8 @@ static int modify_pud_table(p4d_t *p4d, unsigned long addr, unsigned long end,
 	ret = 0;
 out:
 	if (direct)
-		update_page_count(PG_DIRECT_MAP_2G, add ? pages : -pages);
+		direct_map_count_update(PGTABLE_LEVEL_PUD,
+					add ? pages : -pages);
 	return ret;
 }
 

-- 
2.53.0


  parent reply	other threads:[~2026-11-26 11:22 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 11:14 [PATCH RFC v2 00/54] arch, mm: create a generic set_memory/change_page_attr core Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 01/54] riscv: do not use P4D entries for the linear mapping Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 02/54] riscv: test for Svnapot in pte_napot() Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 03/54] s390/boot: parse boolean parameters like the kernel Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 04/54] s390/boot: stop parsing the command line at "--" Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 05/54] s390/boot: treat dashes and underscores alike in parameter names Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 06/54] x86/mm/pat: don't count kernel image splits as direct map splits Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 07/54] x86/mm/pat: drop KERN_WARNING from the WARN() in __cpa_process_fault() Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 08/54] x86/mm/pat: fail a split at an unexpected level with -EINVAL Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 09/54] x86/mm/pat: separate CPA request flags from internal state Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 10/54] x86/mm/pat: stop using CPA for debug_pagealloc Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 11/54] x86/mm/pat: drop the init_mm read lock from change_page_attr_set_clr() Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 12/54] x86/mm/pat: introduce change_page_attr_pages() Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 13/54] x86/mm/pat: make the direct map counters atomic Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 14/54] x86/mm/pat: take pgd_lock only around the pgd_list walks Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 15/54] x86/mm/pat: look up the effective NX/RW bits in verify_rwx() Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 16/54] x86/mm/pat: look up a large page again only after dropping cpa_lock Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 17/54] x86/mm/pat: drop the check of existing mappings against static protections Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 18/54] x86/mm/pat: consolidate encoding of page table entries Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 19/54] x86/mm/pat: use enum pgtable_level in CPA Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 20/54] x86/mm/pat: index the CPA statistics by page table level Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 21/54] x86/mm/pat: introduce struct cpa_leaf Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 22/54] x86/mm/pat: consolidate calculation of the new protection Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 23/54] x86/mm/pat: allocate the page tables for a split by level Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 24/54] x86/mm/pat: detect unchanged mappings by comparing protections Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 25/54] x86/mm/pat: add cpa_is_direct_map() Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 26/54] x86/mm/pat: implement set_memory_*() with a table of operations Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 27/54] x86/mm/pat: prepare the direct map counters for the generic code Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 28/54] x86/mm/pat: separate the generic part of CPA from the x86 hooks Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 29/54] x86/mm/pat, mm: pull CPA core to mm/ Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 30/54] mm/pageattr: introduce arch_cpa_can_split() Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 31/54] mm/pageattr: introduce cpa_flush_tlb_kernel_range() Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 32/54] asm-generic: add an empty pageattr.h Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 33/54] LoongArch: use pfn_is_nosave() to exclude firmware ranges from hibernation Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 34/54] LoongArch: stop pretending LoongArch supports set_direct_map APIs Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 35/54] LoongArch: drop the huge page handling from set_memory() Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 36/54] LoongArch: use the generic CPA core Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 37/54] ARM: mm: " Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 38/54] mm/pageattr: let a leaf cover a contiguous block of entries Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 39/54] powerpc: use the generic CPA core Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 40/54] riscv: replace set_memory_rw_nx() with set_memory_nx() and set_memory_rw() Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 41/54] riscv: use the generic CPA core Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 42/54] riscv: count the mappings of the linear map Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 43/54] mm/pageattr: let an architecture allocate the page tables for a split Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 44/54] mm/pageattr: derive direct map counter updates from the level sizes Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 45/54] s390/boot: map the identity map with 4K pages for debug_pagealloc Mike Rapoport (Microsoft)
2026-11-26 11:14 ` [PATCH RFC v2 46/54] s390: remove set_memory_rwnx() Mike Rapoport (Microsoft)
2026-11-26 11:15 ` Mike Rapoport (Microsoft) [this message]
2026-11-26 11:15 ` [PATCH RFC v2 48/54] mm/pageattr: let an architecture bracket the set_memory() entry points Mike Rapoport (Microsoft)
2026-11-26 11:15 ` [PATCH RFC v2 49/54] arm64: mm: allocate page tables in the callers of split_p{mu}d() Mike Rapoport (Microsoft)
2026-11-26 11:15 ` [PATCH RFC v2 50/54] arm64: use the generic CPA core Mike Rapoport (Microsoft)
2026-11-26 11:15 ` [PATCH RFC v2 51/54] arm64: let the generic CPA core split large mappings Mike Rapoport (Microsoft)
2026-11-26 11:15 ` [PATCH RFC v2 52/54] arm64: count the mappings of the linear map Mike Rapoport (Microsoft)
2026-11-26 11:15 ` [PATCH RFC v2 53/54] arch, mm: enable the generic CPA core with ARCH_HAS_SET_MEMORY Mike Rapoport (Microsoft)
2026-11-26 11:15 ` [PATCH RFC v2 54/54] mm/pageattr: document CPA core and the architecture hooks Mike Rapoport (Microsoft)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126-generic-set-memory-v0-1-v2-47-723f1e33c3d8@kernel.org \
    --to=rppt@kernel.org \
    --cc=abarnas@google.com \
    --cc=agordeev@linux.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=bp@alien8.de \
    --cc=brendan.jackman@linux.dev \
    --cc=catalin.marinas@arm.com \
    --cc=chenhuacai@kernel.org \
    --cc=dave.hansen@linux.intel.com \
    --cc=david@kernel.org \
    --cc=gerald.schaefer@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=kevin.brodsky@arm.com \
    --cc=liam@infradead.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=ljs@kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=luto@kernel.org \
    --cc=maddy@linux.ibm.com \
    --cc=mhocko@suse.com \
    --cc=mingo@kernel.org \
    --cc=palmer@dabbelt.com \
    --cc=peterz@infradead.org \
    --cc=pjw@kernel.org \
    --cc=surenb@google.com \
    --cc=tglx@kernel.org \
    --cc=vbabka@kernel.org \
    --cc=will@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®