Commit 9b1283f2 authored by Wang Wensheng's avatar Wang Wensheng
Browse files

mm/vmalloc: Extend vmalloc usage about hugepage

ascend inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8LNGH



---------------------------------------------

This allow the user to do huge vmalloc and remap those hugepage range
into userspace.

Some devices could not handle mixed levels of page table. They want to
know exactly if the memory thay alloced is hugepages or not. Introduce
vmalloc/vmap/remap interfaces that handle only hugepages.

Introduce VM_HUGE_PAGES flag. __vmalloc_node_range() would alloc
PMD_SIZE hugepages if specifying VM_HUGE_PAGES.

Signed-off-by: default avatarWang Wensheng <wangwensheng4@huawei.com>
parent 965faf0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment