2022-07-26 17:42:33 +00:00
|
|
|
LC_ALL=C \
|
|
|
|
PATH=/bin \
|
2023-03-02 18:05:53 +00:00
|
|
|
HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1 \
|
2022-07-26 17:42:33 +00:00
|
|
|
USER=test \
|
|
|
|
LOGNAME=test \
|
2023-03-02 18:05:53 +00:00
|
|
|
XDG_DATA_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.local/share \
|
|
|
|
XDG_CACHE_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.cache \
|
|
|
|
XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \
|
2022-07-26 17:42:33 +00:00
|
|
|
/usr/bin/qemu-system-x86_64 \
|
|
|
|
-name guest=QEMUGuest1,debug-threads=on \
|
|
|
|
-S \
|
2023-03-02 18:05:53 +00:00
|
|
|
-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain--1-QEMUGuest1/master-key.aes"}' \
|
2023-02-27 11:46:13 +00:00
|
|
|
-machine pc,usb=off,dump-guest-core=off,acpi=off \
|
2022-07-26 17:42:33 +00:00
|
|
|
-accel tcg \
|
|
|
|
-cpu qemu64 \
|
|
|
|
-m size=219136k,slots=16,maxmem=1099511627776k \
|
|
|
|
-overcommit mem-lock=off \
|
2024-01-05 17:44:56 +00:00
|
|
|
-smp 2,sockets=2,dies=1,clusters=1,cores=1,threads=1 \
|
2022-07-26 17:42:33 +00:00
|
|
|
-object '{"qom-type":"memory-backend-ram","id":"ram-node0","size":224395264}' \
|
|
|
|
-numa node,nodeid=0,cpus=0-1,memdev=ram-node0 \
|
|
|
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
|
|
|
-display none \
|
|
|
|
-no-user-config \
|
|
|
|
-nodefaults \
|
|
|
|
-chardev socket,id=charmonitor,fd=1729,server=on,wait=off \
|
|
|
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
|
|
|
-rtc base=utc \
|
|
|
|
-no-shutdown \
|
|
|
|
-boot strict=on \
|
|
|
|
-device '{"driver":"piix3-usb-uhci","id":"usb","bus":"pci.0","addr":"0x1.0x2"}' \
|
qemuBuildThreadContextProps: Prune .node-affinity wrt <emulatorpin/>
When a thread-context object is specified on the cmd line, then
QEMU spawns a thread and sets its affinity to the list of NUMA
nodes specified in .node-affinity attribute. And this works just
fine, until the main QEMU thread itself is not restricted.
Because of v5.3.0-rc1~18 we restrict the main emulator thread
even before QEMU is executed and thus then it tries to set
affinity of a thread-context thread, it inevitably fails with:
Setting CPU affinity failed: Invalid argument
Now, we could lift the pinning temporarily, let QEMU spawn all
thread-context threads, and enforce pinning again, but that would
require some form of communication with QEMU (maybe -preconfig?).
But that would still be wrong, because it would circumvent
<emulatorpin/>.
Technically speaking, thread-context is an internal
implementation detail of QEMU, and if it weren't for it, the main
emulator thread would be doing the allocation. Therefore, we
should honor the pinning and prune the list of node so that
inaccessible ones are dropped.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2154750
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
2023-03-07 13:05:54 +00:00
|
|
|
-object '{"qom-type":"thread-context","id":"tc-memdimm0","node-affinity":[1,2]}' \
|
2022-11-02 13:07:21 +00:00
|
|
|
-object '{"qom-type":"memory-backend-file","id":"memdimm0","mem-path":"/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1","prealloc":true,"size":536870912,"host-nodes":[1,2,3],"policy":"bind","prealloc-context":"tc-memdimm0"}' \
|
2022-07-26 17:42:33 +00:00
|
|
|
-device '{"driver":"pc-dimm","node":0,"memdev":"memdimm0","id":"dimm0","slot":0,"addr":4294967296}' \
|
|
|
|
-object '{"qom-type":"memory-backend-ram","id":"memdimm2","size":536870912}' \
|
|
|
|
-device '{"driver":"pc-dimm","node":0,"memdev":"memdimm2","id":"dimm2","slot":2}' \
|
2023-10-19 20:07:49 +00:00
|
|
|
-blockdev '{"driver":"host_device","filename":"/dev/HostVG/QEMUGuest1","node-name":"libvirt-1-storage","read-only":false}' \
|
|
|
|
-device '{"driver":"ide-hd","bus":"ide.0","unit":0,"drive":"libvirt-1-storage","id":"ide0-0-0","bootindex":1}' \
|
2022-07-26 17:42:33 +00:00
|
|
|
-audiodev '{"id":"audio1","driver":"none"}' \
|
|
|
|
-device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.0","addr":"0x2"}' \
|
|
|
|
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
|
|
|
|
-msg timestamp=on
|