Commit 520e5032 authored by Jason Zeng's avatar Jason Zeng
Browse files

Move boot time allocated hugepages to ZONE_NORMAL if hugepage_no_mirror

Intel inclusion
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I7V2E8


CVE: NA

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

When kernelcore=mirror, non-mirrored memory, including those boot time
allocated non-mirrored hugetlb pages, will be put into ZONE_MOVABLE,
This is not desirable for virtual machine device passthrough, because
device passthrough requires pinning guest memory. However, ZONE_MOVABLE
hugetlb pages can't be pinned.

Move bootmem allocated non-mirrored hugepages to ZONE_NORMAL, so that
it is capable to pin.

Intel-SIG: Move boot time allocated hugepages to ZONE_NORMAL
if hugepage_no_mirror

Signed-off-by: default avatarJason Zeng <jason.zeng@intel.com>
parent f3038ef8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment