diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2018-06-14 19:52:23 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2020-01-23 16:41:36 +0000 |
commit | b509e1228b3e5eb83c14819045988999fc2dbd1b (patch) | |
tree | 15d009bdf8e597f311273041451400a1bc610f27 /tools/virtiofsd/fuse_i.h | |
parent | 5dcd1f56141378226d33dc3df68ec57913e0aa04 (diff) |
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>
Diffstat (limited to 'tools/virtiofsd/fuse_i.h')
-rw-r--r-- | tools/virtiofsd/fuse_i.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/virtiofsd/fuse_i.h b/tools/virtiofsd/fuse_i.h index ec04449069..1126723d18 100644 --- a/tools/virtiofsd/fuse_i.h +++ b/tools/virtiofsd/fuse_i.h @@ -14,6 +14,7 @@ #include "fuse_lowlevel.h" struct fv_VuDev; +struct fv_QueueInfo; struct fuse_req { struct fuse_session *se; @@ -75,6 +76,7 @@ struct fuse_chan { pthread_mutex_t lock; int ctr; int fd; + struct fv_QueueInfo *qi; }; /** |