mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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
This commit is contained in:
parent
1f07048933
commit
c270fb9eff
3 changed files with 59 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue