]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_passt: Report passt's error on failed start
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 16 Feb 2023 11:19:26 +0000 (12:19 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 20 Feb 2023 08:43:14 +0000 (09:43 +0100)
commit02355840ced2af18df1aa9ba387a6137a515eede
treeec1cdaed7ec1ef6cc1f32cfb62f3a54c758fe285
parentc0efdbdb9f66ab5a7334fd1dc75cdfdc28a7393d
qemu_passt: Report passt's error on failed start

When starting passt, it may write something onto its stderr
(convincing it to print even more is addressed later). Pass this
string we read to user.

Since we're not daemonizing passt anymore (see previous commit),
we can let virCommand module do all the heavy lifting and switch
to virCommandSetErrorBuffer() instead of reading error from an
FD.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/qemu/qemu_passt.c