virtiofsd: add --fd=FDNUM fd passing option
commitcee8e35d4386e34bf79c3ca2aab7f7b1bb48cf8d
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 25 Jun 2019 16:18:00 +0000 (25 17:18 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 23 Jan 2020 16:41:36 +0000 (23 16:41 +0000)
tree6846c294acf2c09e9ef3e3c395055510d6f709be
parenteb49d187ef5134483a34c970bbfece28aaa686a7
virtiofsd: add --fd=FDNUM fd passing option

Although --socket-path=PATH is useful for manual invocations, management
tools typically create the UNIX domain socket themselves and pass it to
the vhost-user device backend.  This way QEMU can be launched
immediately with a valid socket.  No waiting for the vhost-user device
backend is required when fd passing is used.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/fuse_i.h
tools/virtiofsd/fuse_lowlevel.c
tools/virtiofsd/fuse_virtio.c