From c902760fb25f9c490af01e8f6bccaa8dd71cc224 Mon Sep 17 00:00:00 2001 From: Marcelo Tosatti Date: Mon, 1 Mar 2010 20:25:08 -0300 Subject: 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 CC: john cooper --- cpu-all.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpu-all.h') 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 -- cgit v1.2.3