mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 08:05:24 +00:00
ffbafd4e88
The code which generates paths for UNIX socket blindly used target name without checking if it was set. Thus for the following device XML <channel type='unix'> <source mode='bind'/> <target type='virtio'/> </channel> we would generate "/var/lib/libvirt/qemu/channel/target/NAME.(null)" path which works but is not really correct. Let's not use the ".target_name" suffix at all if target name is not set. https://bugzilla.redhat.com/show_bug.cgi?id=1226854 Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
20 lines
992 B
Plaintext
20 lines
992 B
Plaintext
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -nodefconfig -nodefaults \
|
|
-chardev socket,id=charmonitor,path=/tmp/test-monitor,server,nowait \
|
|
-mon chardev=charmonitor,id=monitor,mode=readline \
|
|
-no-acpi \
|
|
-boot c \
|
|
-device virtio-serial-pci,id=virtio-serial1,bus=pci.0,addr=0xa \
|
|
-device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x3 \
|
|
-usb \
|
|
-hda /dev/HostVG/QEMUGuest1 \
|
|
-chardev socket,id=charchannel0,path=\
|
|
/tmp/QEMUGuest1.org.qemu.guest_agent.0,server,nowait \
|
|
-device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,\
|
|
name=org.qemu.guest_agent.0 \
|
|
-chardev socket,id=charchannel1,path=/tmp/QEMUGuest1,server,nowait \
|
|
-device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1 \
|
|
-chardev socket,id=charchannel2,path=/tmp/QEMUGuest1.ble,server,nowait \
|
|
-device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,\
|
|
name=ble
|