]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: fs: do not try to fill binary path if we have a socket
authorJán Tomko <jtomko@redhat.com>
Thu, 20 May 2021 09:01:15 +0000 (11:01 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 20 May 2021 14:27:21 +0000 (16:27 +0200)
We do not need to look for a suitable binary in the vhost-user
description files, if we aren't the ones starting it.
Otherwise startup will fail with:

error: Failed to start domain 'vm1'
error: operation failed: Unable to find a satisfying virtiofsd

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

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_virtiofs.c

index e310f2e7aa2ccc9b34804d9eeefe16aae55184aa..edaedf03044ceb04f5a00ac04b9858442bd381da 100644 (file)
@@ -322,7 +322,7 @@ int
 qemuVirtioFSPrepareDomain(virQEMUDriver *driver,
                           virDomainFSDef *fs)
 {
-    if (fs->binary)
+    if (fs->binary || fs->sock)
         return 0;
 
     return qemuVhostUserFillDomainFS(driver, fs);