2015-11-06 13:20:06 +00:00
|
|
|
LC_ALL=C \
|
|
|
|
PATH=/bin \
|
2019-03-06 12:29:01 +00:00
|
|
|
HOME=/tmp/lib/domain--1-SomeDummyHugepagesGu \
|
2015-11-06 13:20:06 +00:00
|
|
|
USER=test \
|
|
|
|
LOGNAME=test \
|
2019-03-08 11:15:07 +00:00
|
|
|
XDG_DATA_HOME=/tmp/lib/domain--1-SomeDummyHugepagesGu/.local/share \
|
|
|
|
XDG_CACHE_HOME=/tmp/lib/domain--1-SomeDummyHugepagesGu/.cache \
|
|
|
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-SomeDummyHugepagesGu/.config \
|
2015-11-06 13:20:06 +00:00
|
|
|
QEMU_AUDIO_DRV=none \
|
2019-11-29 16:33:37 +00:00
|
|
|
/usr/bin/qemu-system-i386 \
|
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 \
|
2019-04-12 08:03:36 +00:00
|
|
|
-realtime mlock=off \
|
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 \
|
2020-05-25 12:35:25 +00:00
|
|
|
-object memory-backend-file,id=ram-node1,\
|
|
|
|
mem-path=/dev/hugepages1G/libvirt/qemu/-1-SomeDummyHugepagesGu,prealloc=yes,\
|
|
|
|
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
|