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 \
|
2018-03-29 10:51:55 +00:00
|
|
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
2015-11-06 13:20:06 +00:00
|
|
|
-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,\
|
2018-08-09 11:26:53 +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 \
|
2018-03-29 10:51:55 +00:00
|
|
|
-display none \
|
2018-03-29 10:51:55 +00:00
|
|
|
-no-user-config \
|
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 \
|
2018-03-28 22:04:58 +00:00
|
|
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
2018-03-29 10:51:55 +00:00
|
|
|
-rtc base=utc \
|
2018-03-29 10:51:55 +00:00
|
|
|
-no-shutdown \
|
2015-11-06 13:20:06 +00:00
|
|
|
-no-acpi \
|
2018-08-10 11:10:29 +00:00
|
|
|
-usb
|