summaryrefslogtreecommitdiff
path: root/cpu-all.h
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 20:25:08 -0300
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-04 00:28:47 -0300
commitd4ab5e9ecd42849f06300adf48690129343a5606 (patch)
treeebf40c2fba4b138eee6721d011f9f82040a6e565 /cpu-all.h
parent088af8cd4a74e93f589deb90d3c3f27ea082243c (diff)
downloadqemu-d4ab5e9ecd42849f06300adf48690129343a5606.tar.gz
qemu-d4ab5e9ecd42849f06300adf48690129343a5606.tar.bz2
qemu-d4ab5e9ecd42849f06300adf48690129343a5606.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 'cpu-all.h')
-rw-r--r--cpu-all.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpu-all.h b/cpu-all.h
index 8488bfea9f..9823c24bab 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -847,6 +847,9 @@ extern uint8_t *phys_ram_dirty;
extern ram_addr_t ram_size;
extern ram_addr_t last_ram_offset;
+extern const char *mem_path;
+extern int mem_prealloc;
+
/* physical memory access */
/* MMIO pages are identified by a combination of an IO device index and