mbox series

[v4,0/2] mm: add vmalloc_no_huge and use it

Message ID 20210614132357.10202-1-imbrenda@linux.ibm.com (mailing list archive)
Headers show
Series mm: add vmalloc_no_huge and use it | expand

Message

Claudio Imbrenda June 14, 2021, 1:23 p.m. UTC
Add vmalloc_no_huge and export it, so modules can allocate memory with
small pages.

Use the newly added vmalloc_no_huge in KVM on s390 to get around a
hardware limitation.

v3->v4:
* reword commit messages to be more clear
* add comment in the second patch

v2->v3:
* do not export __vmalloc_node_range
* add vmalloc_no_huge as a wrapper around __vmalloc_node_range
* use vmalloc_no_huge instead of __vmalloc_node_range in kvm on s390x

Cc: Andrew Morton <akpm@linux-foundation.org>
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: Christoph Hellwig <hch@infradead.org>

Claudio Imbrenda (2):
  mm/vmalloc: add vmalloc_no_huge
  KVM: s390: prepare for hugepage vmalloc

 arch/s390/kvm/pv.c      |  7 ++++++-
 include/linux/vmalloc.h |  1 +
 mm/vmalloc.c            | 16 ++++++++++++++++
 3 files changed, 23 insertions(+), 1 deletion(-)

Comments

Andrew Morton June 14, 2021, 11:59 p.m. UTC | #1
On Mon, 14 Jun 2021 15:23:55 +0200 Claudio Imbrenda <imbrenda@linux.ibm.com> wrote:

> Add vmalloc_no_huge and export it, so modules can allocate memory with
> small pages.
> 
> Use the newly added vmalloc_no_huge in KVM on s390 to get around a
> hardware limitation.

Thanks.  I added

Fixes: 121e6f3258fe3 ("mm/vmalloc: hugepage vmalloc mappings") 

and also addressed the whitespace thing which Christoph noted.

No cc:stable since 121e6f3258fe3 wasn't in 5.12.