virtiofsd: Start reading commands from queue
commitb509e1228b3e5eb83c14819045988999fc2dbd1b
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 14 Jun 2018 18:52:23 +0000 (14 19:52 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 23 Jan 2020 16:41:36 +0000 (23 16:41 +0000)
tree15d009bdf8e597f311273041451400a1bc610f27
parent5dcd1f56141378226d33dc3df68ec57913e0aa04
virtiofsd: Start reading commands from queue

Pop queue elements off queues, copy the data from them and
pass that to fuse.

  Note: 'out' in a VuVirtqElement is from QEMU
        'in' in libfuse is into the daemon

  So we read from the out iov's to get a fuse_in_header

When we get a kick we've got to read all the elements until the queue
is empty.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@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_virtio.c