Skip to content

Commit 4cad694

Browse files
JasonChenCJjren1
authored andcommitted
dm: add hugetlb memory management support
Type '-T' in DM cmdline to enable hugetlb memory allocation. It enabled 2 level of huge page: Level 1: size 2M, path: /run/hugepage/acrn/huge_lv1/guid Level 2: size 1G, path: /run/hugepage/acrn/huge_lv2/guid NOTE: before running, please make sure system already have enough hugepages reserved under: /sys/kernel/mm/hugepages/hugepages-xxxxkB/nr_hugepages Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Xu, Anthony <anthony.xu@intel.com>
1 parent ac5da17 commit 4cad694

File tree

6 files changed

+546
-9
lines changed

6 files changed

+546
-9
lines changed

devicemodel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ SRCS += core/consport.c
100100
SRCS += core/vmmapi.c
101101
SRCS += core/mptbl.c
102102
SRCS += core/main.c
103-
103+
SRCS += core/hugetlb.c
104104

105105
OBJS := $(patsubst %.c,$(DM_OBJDIR)/%.o,$(SRCS))
106106

0 commit comments

Comments
 (0)