From 9e5b4a7580c3a38ac466f97d75b9dad60b8abc57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 28 Jun 2012 17:30:45 +0200 Subject: [PATCH] - basic hugetable memory page support --- build | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build b/build index 5c388fc..83eac38 100755 --- a/build +++ b/build @@ -72,6 +72,7 @@ VMDISK_SWAPSIZE=1024 VMDISK_FILESYSTEM=ext3 # settings are for speed and not data safety, we format anyway on next run VMDISK_MOUNT_OPTIONS=__default +HUGETLBFSPATH= MEMSIZE= RUNNING_IN_VM= RPMLIST= @@ -281,6 +282,9 @@ Known Parameters: --vm-memory SIZEINMB Set amount of RAM for VMs + --hugetlbfs HUGETLBFSPATH + Use hugetlb for memory management, path to mounted hugetlbfs. + --vm-kernel FILE --vm-initrd FILE Kernel and initrd to use for VM (kvm and qemu only) @@ -979,6 +983,10 @@ while test -n "$1"; do BUILD_RPMS= shift ;; + *-hugetlbfs) + HUGETLBFSPATH="$ARG" + shift + ;; *-release) needarg RELEASE="$ARG" @@ -1669,6 +1677,9 @@ for SPECFILE in "${SPECFILES[@]}" ; do fi if [ "$VM_TYPE" = 'kvm' ]; then KVM_OPTIONS="$KVM_OPTIONS -cpu host" + if [ -n "$HUGETLBFSPATH" ]; then + KVM_OPTIONS="$KVM_OPTIONS -mem-path $HUGETLBFSPATH" + fi fi set -- $qemu_bin -no-reboot -nographic -net none $KVM_OPTIONS \ -- 2.7.4