summary refs log tree commit diff stats
path: root/hw/virtio/vhost-user.c
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2014-07-08 15:29:46 +0200
committerMichael S. Tsirkin <mst@redhat.com>2014-07-11 21:05:14 +0300
commit4ec6ee5acef8092ec64e183694aba2a1cfce8d80 (patch)
tree04075799b8dabd6b513361a733926c4a121cfb9e /hw/virtio/vhost-user.c
parent3f0838ab8557c6071a5931183b2d7fed568cd35c (diff)
downloadfocaccia-qemu-4ec6ee5acef8092ec64e183694aba2a1cfce8d80.tar.gz
focaccia-qemu-4ec6ee5acef8092ec64e183694aba2a1cfce8d80.zip
pc: fix qemu exiting with error when -m X < 128 with old machines types
If machine doesn't support memory hotplug then staring QEMU
with initial memory less than default will make QEMU exit with
following error message:

$QEMU -m 16  -M isapc
qemu-system-i386: "-memory 'slots|maxmem'" is not supported by: isapc

Set maxram_size to initial memory value before parsing
'maxmem' option allows to keep maxmem in sync with initial
memory size if no maxmem option was specified.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
CC: Bruce Rogers <brogers@suse.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio/vhost-user.c')
0 files changed, 0 insertions, 0 deletions