mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + mm-vmalloc-export-__vmalloc_node_range.patch added to -mm tree
@ 2021-06-08 21:06 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-06-08 21:06 UTC (permalink / raw)
  To: borntraeger, catalin.marinas, david, frankja, imbrenda, mingo,
	mm-commits, npiggin, rientjes, tglx, urezki


The patch titled
     Subject: mm/vmalloc: export __vmalloc_node_range
has been added to the -mm tree.  Its filename is
     mm-vmalloc-export-__vmalloc_node_range.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/mm-vmalloc-export-__vmalloc_node_range.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/mm-vmalloc-export-__vmalloc_node_range.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Claudio Imbrenda <imbrenda@linux.ibm.com>
Subject: mm/vmalloc: export __vmalloc_node_range

The recent patches to add support for hugepage vmalloc mappings added a
flag for __vmalloc_node_range to allow to request small pages.  This flag
is not accessible when calling vmalloc, the only option is to call
directly __vmalloc_node_range, which is not exported.

This means that a module can't vmalloc memory with small pages.

Case in point: KVM on s390x needs to vmalloc a large area, and it needs to
be mapped with small pages, because of a hardware limitation.

This patch exports __vmalloc_node_range so it can be used in modules too.

Link: https://lkml.kernel.org/r/20210608180618.477766-2-imbrenda@linux.ibm.com
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Uladzislau Rezki (Sony) <urezki@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/vmalloc.c |    1 +
 1 file changed, 1 insertion(+)

--- a/mm/vmalloc.c~mm-vmalloc-export-__vmalloc_node_range
+++ a/mm/vmalloc.c
@@ -2937,6 +2937,7 @@ fail:
 
 	return NULL;
 }
+EXPORT_SYMBOL_GPL(__vmalloc_node_range);
 
 /**
  * __vmalloc_node - allocate virtually contiguous memory
_

Patches currently in -mm which might be from imbrenda@linux.ibm.com are

mm-vmalloc-export-__vmalloc_node_range.patch
kvm-s390-fix-for-hugepage-vmalloc.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-08 21:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08 21:06 + mm-vmalloc-export-__vmalloc_node_range.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).