2015-11-06 13:20:06 +00:00
|
|
|
LC_ALL=C \
|
|
|
|
PATH=/bin \
|
|
|
|
HOME=/home/test \
|
|
|
|
USER=test \
|
|
|
|
LOGNAME=test \
|
|
|
|
QEMU_AUDIO_DRV=none \
|
2017-04-06 16:19:48 +00:00
|
|
|
/usr/bin/qemu-system-i686 \
|
2015-11-06 14:29:41 +00:00
|
|
|
-name SomeDummyHugepagesGuest \
|
2015-11-06 13:20:06 +00:00
|
|
|
-S \
|
|
|
|
-M pc \
|
|
|
|
-m 1024 \
|
2016-06-23 11:29:16 +00:00
|
|
|
-smp 2,sockets=2,cores=1,threads=1 \
|
qemu: command: Don't combine old and modern NUMA node creation
Change done by commit f309db1f4d51009bad0d32e12efc75530b66836b wrongly
assumes that qemu can start with a combination of NUMA nodes specified
with the "memdev" option and the appropriate backends, and the legacy
way by specifying only "mem" as a size argument. QEMU rejects such
commandline though:
$ /usr/bin/qemu-system-x86_64 -S -M pc -m 1024 -smp 2 \
-numa node,nodeid=0,cpus=0,mem=256 \
-object memory-backend-ram,id=ram-node1,size=12345 \
-numa node,nodeid=1,cpus=1,memdev=ram-node1
qemu-system-x86_64: -numa node,nodeid=1,cpus=1,memdev=ram-node1: qemu: memdev option must be specified for either all or no nodes
To fix this issue we need to check if any of the nodes requires the new
definition with the backend and if so, then all other nodes have to use
it too.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1182467
2015-01-26 12:48:02 +00:00
|
|
|
-object memory-backend-ram,id=ram-node0,size=268435456 \
|
|
|
|
-numa node,nodeid=0,cpus=0,memdev=ram-node0 \
|
2015-01-15 14:55:48 +00:00
|
|
|
-object memory-backend-file,id=ram-node1,prealloc=yes,\
|
2016-11-22 12:21:51 +00:00
|
|
|
mem-path=/dev/hugepages1G/libvirt/qemu/-1-SomeDummyHugepagesGu,size=805306368 \
|
2014-07-23 15:37:21 +00:00
|
|
|
-numa node,nodeid=1,cpus=1,memdev=ram-node1 \
|
2015-11-06 14:29:52 +00:00
|
|
|
-uuid ef1bdff4-27f3-4e85-a807-5fb4d58463cc \
|
2015-11-06 13:20:06 +00:00
|
|
|
-nographic \
|
2016-01-13 00:26:40 +00:00
|
|
|
-nodefaults \
|
2017-06-26 14:40:39 +00:00
|
|
|
-chardev socket,id=charmonitor,\
|
|
|
|
path=/tmp/lib/domain--1-SomeDummyHugepagesGu/monitor.sock,server,nowait \
|
|
|
|
-mon chardev=charmonitor,id=monitor,mode=readline \
|
2015-11-06 13:20:06 +00:00
|
|
|
-no-acpi \
|
|
|
|
-boot c \
|
|
|
|
-usb \
|
2016-01-13 00:26:40 +00:00
|
|
|
-drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-ide0-0-0 \
|
|
|
|
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 \
|
|
|
|
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
|