summary refs log tree commit diff stats
path: root/include/hw/boards.h
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2014-06-02 15:25:02 +0200
committerMichael S. Tsirkin <mst@redhat.com>2014-06-19 16:41:46 +0300
commitc270fb9eff1290e8a4a49040eba1305fec2ce0ec (patch)
tree4975fca3d6ce74d0fb405e4907bcaf23bc1435ee /include/hw/boards.h
parent1f07048933d9c21acb40bce18af4f3ad6bae59b6 (diff)
downloadfocaccia-qemu-c270fb9eff1290e8a4a49040eba1305fec2ce0ec.tar.gz
focaccia-qemu-c270fb9eff1290e8a4a49040eba1305fec2ce0ec.zip
vl.c: extend -m option to support options for memory hotplug
Add following parameters:
  "slots" - total number of hotplug memory slots
  "maxmem" - maximum possible memory

"slots" and "maxmem" should go in pair and "maxmem" should be greater
than "mem" for memory hotplug to be enabled.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

MST: fix build on 32 bit
Diffstat (limited to 'include/hw/boards.h')
-rw-r--r--include/hw/boards.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h
index 2d2e2bef19..184d2450ee 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -113,6 +113,8 @@ struct MachineState {
     char *firmware;
 
     ram_addr_t ram_size;
+    ram_addr_t maxram_size;
+    uint64_t   ram_slots;
     const char *boot_order;
     char *kernel_filename;
     char *kernel_cmdline;