]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: do not attempt to pass unopened vsock FD
authorJán Tomko <jtomko@redhat.com>
Thu, 20 Oct 2022 14:19:20 +0000 (16:19 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 24 Oct 2022 13:36:33 +0000 (15:36 +0200)
commit0b1da01ef2fb0f00b8df5967e14c3dd10396680d
treee2d537db9f4ab9ace62b7386a3e1aa704b76f6d0
parentd1f291b4c387d29821660390c425ce22567e90b6
qemu: do not attempt to pass unopened vsock FD

On normal vm startup, we open a file descriptor
for the vsock device in qemuProcessPrepareHost.

However, when doing domxml-to-native, no file descriptors are open.

Only pass the fd if it's not -1, to make domxml-to-native work.

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

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_command.c