2015-11-06 21:20:06 +08:00
|
|
|
LC_ALL=C \
|
|
|
|
PATH=/bin \
|
|
|
|
HOME=/home/test \
|
|
|
|
USER=test \
|
|
|
|
LOGNAME=test \
|
|
|
|
QEMU_AUDIO_DRV=none \
|
|
|
|
/usr/bin/qemu-system-x86_64 \
|
2015-11-06 22:29:41 +08:00
|
|
|
-name dummy2 \
|
2015-11-06 21:20:06 +08:00
|
|
|
-S \
|
2016-01-13 09:41:49 +08:00
|
|
|
-M pc-0.11 \
|
2015-11-06 21:20:06 +08:00
|
|
|
-m 128 \
|
qemuBuildMemoryBackendStr: Report backend requirement more appropriately
So, when building the '-numa' command line, the
qemuBuildMemoryBackendStr() function does quite a lot of checks to
chose the best backend, or to check if one is in fact needed. However,
it returned that backend is needed even for this little fella:
<numatune>
<memory mode="strict" nodeset="0,2"/>
</numatune>
This can be guaranteed via CGroups entirely, there's no need to use
memory-backend-ram to let qemu know where to get memory from. Well, as
long as there's no <memnode/> element, which explicitly requires the
backend. Long story short, we wouldn't have to care, as qemu works
either way. However, the problem is migration (as always). Previously,
libvirt would have started qemu with:
-numa node,memory=X
in this case and restricted memory placement in CGroups. Today, libvirt
creates more complicated command line:
-object memory-backend-ram,id=ram-node0,size=X
-numa node,memdev=ram-node0
Again, one wouldn't find anything wrong with these two approaches.
Both work just fine. Unless you try to migrated from the older libvirt
into the newer one. These two approaches are, unfortunately, not
compatible. My suggestion is, in order to allow users to migrate, lets
use the older approach for as long as the newer one is not needed.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2015-02-13 00:43:27 +08:00
|
|
|
-smp 2,maxcpus=6,sockets=6,cores=1,threads=1 \
|
2015-11-06 21:20:06 +08:00
|
|
|
-object iothread,id=iothread1 \
|
|
|
|
-object iothread,id=iothread2 \
|
2015-11-06 22:29:52 +08:00
|
|
|
-uuid 4d92ec27-9ebf-400b-ae91-20c71c647c19 \
|
2015-11-06 21:20:06 +08:00
|
|
|
-nographic \
|
2016-01-13 09:41:49 +08:00
|
|
|
-nodefaults \
|
2016-02-26 16:15:55 +08:00
|
|
|
-monitor unix:/tmp/lib/domain--1-dummy2/monitor.sock,server,nowait \
|
2015-11-06 21:20:06 +08:00
|
|
|
-no-acpi \
|
|
|
|
-boot c \
|
2016-01-13 09:41:49 +08:00
|
|
|
-usb
|