]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix UNIX socket chardevs operating in client mode
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 6 Jul 2018 10:00:11 +0000 (11:00 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 6 Jul 2018 13:08:05 +0000 (14:08 +0100)
commit1bc1a7e3205f7ef75ebd8fd1ef7653f8e181e3d2
treeea4e6d052723e182d884d0e972f3bf4286c5e9a6
parented5aa85f371aebb0103e712f9a103d011ab9ae43
qemu: fix UNIX socket chardevs operating in client mode

When support was adding for passing a pre-opened listener socket to UNIX
chardevs, it accidentally passed the listener socket for client mode
chardevs too with predictable amounts of fail resulting. This affects
libvirt when using QEMU >= 2.12

Expand the unit test coverage to validate that we are only doing FD
passing when operating in server mode.

  https://bugzilla.redhat.com/show_bug.cgi?id=1598440

Tested-by: Richard W.M. Jones <rjones@redhat.com>
Reported-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/serial-unix-chardev.args
tests/qemuxml2argvdata/serial-unix-chardev.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvdata/serial-unix-chardev.xml
tests/qemuxml2argvtest.c