diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 20:25:08 -0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-04 00:28:47 -0300 |
commit | c902760fb25f9c490af01e8f6bccaa8dd71cc224 (patch) | |
tree | ebf40c2fba4b138eee6721d011f9f82040a6e565 /qemu-options.hx | |
parent | 60e4c6317b8773d987729401aeca9d8c6b61b05f (diff) | |
download | qemu-c902760fb25f9c490af01e8f6bccaa8dd71cc224.tar.gz qemu-c902760fb25f9c490af01e8f6bccaa8dd71cc224.tar.bz2 qemu-c902760fb25f9c490af01e8f6bccaa8dd71cc224.zip |
Add option to use file backed guest memory
Port qemu-kvm's -mem-path and -mem-prealloc options. These are useful
for backing guest memory with huge pages via hugetlbfs.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
CC: john cooper <john.cooper@redhat.com>
Diffstat (limited to 'qemu-options.hx')
-rw-r--r-- | qemu-options.hx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/qemu-options.hx b/qemu-options.hx index 7daa246c1f..fd50addb65 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -314,6 +314,22 @@ a suffix of ``M'' or ``G'' can be used to signify a value in megabytes or gigabytes respectively. ETEXI +DEF("mem-path", HAS_ARG, QEMU_OPTION_mempath, + "-mem-path FILE provide backing storage for guest RAM\n") +STEXI +@item -mem-path @var{path} +Allocate guest RAM from a temporarily created file in @var{path}. +ETEXI + +#ifdef MAP_POPULATE +DEF("mem-prealloc", 0, QEMU_OPTION_mem_prealloc, + "-mem-prealloc preallocate guest memory (use with -mem-path)\n") +STEXI +@item -mem-prealloc +Preallocate memory when using -mem-path. +ETEXI +#endif + DEF("k", HAS_ARG, QEMU_OPTION_k, "-k language use keyboard layout (for example 'fr' for French)\n") STEXI |