Skip to content

virtiofs daemon [all]

Dr. David Alan Gilbert (git) qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest109 patches 30 repliesIn review
  2. v1104 patches 201 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/109virtiofsd: Pull in upstream headerstools/virtiofsd/fuse.h tools/virtiofsd/fuse_common.h tools/virtiofsd/fuse_i.h +5 more+4814 -00 replies
2/109virtiofsd: Pull in kernel's fuse.hinclude/standard-headers/linux/fuse.h scripts/update-linux-headers.sh+892 -00 replies
3/109virtiofsd: Add auxiliary .c'stools/virtiofsd/buffer.c tools/virtiofsd/fuse_log.c tools/virtiofsd/fuse_opt.c +2 more+1315 -00 replies
4/109virtiofsd: Add fuse_lowlevel.ctools/virtiofsd/fuse_lowlevel.c+3129 -00 replies
5/109virtiofsd: Add passthrough_lltools/virtiofsd/passthrough_ll.c+1338 -00 replies
6/109virtiofsd: Trim down imported filestools/virtiofsd/buffer.c tools/virtiofsd/fuse.h tools/virtiofsd/fuse_common.h +8 more+7 -10562 replies
7/109virtiofsd: Format imported files to qemu styletools/virtiofsd/buffer.c tools/virtiofsd/fuse.h tools/virtiofsd/fuse_common.h +12 more+6401 -60750 replies
8/109virtiofsd: remove mountpoint dummy argumenttools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/fuse_lowlevel.h tools/virtiofsd/helper.c +1 more+7 -310 replies
9/109virtiofsd: remove unused notify reply supporttools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/fuse_lowlevel.h+1 -1930 replies
10/109virtiofsd: Fix fuse_daemonize ignored return valuestools/virtiofsd/helper.c+22 -111 reply
11/109virtiofsd: Fix common header and define for QEMU buildstools/virtiofsd/buffer.c tools/virtiofsd/fuse_i.h tools/virtiofsd/fuse_lowlevel.c +3 more+5 -153 replies
12/109virtiofsd: Trim out compatibility codetools/virtiofsd/fuse_lowlevel.c+119 -2110 replies
13/109vitriofsd/passthrough_ll: fix fallocate() ifdefstools/virtiofsd/passthrough_ll.c+2 -20 replies
14/109virtiofsd: Make fsync work even if only inode is passed intools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/passthrough_ll.c+31 -30 replies
15/109virtiofsd: Add options for virtiotools/virtiofsd/fuse_i.h tools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/helper.c+19 -131 reply
16/109virtiofsd: add -o source=PATH to help outputtools/virtiofsd/passthrough_ll.c+1 -00 replies
17/109virtiofsd: Open vhost connection instead of mountingtools/virtiofsd/fuse_i.h tools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/fuse_virtio.c +1 more+114 -500 replies
18/109virtiofsd: Start wiring up vhost-usertools/virtiofsd/fuse_i.h tools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/fuse_lowlevel.h +3 more+106 -60 replies
19/109virtiofsd: Add main virtio looptools/virtiofsd/fuse_virtio.c+39 -30 replies
20/109virtiofsd: get/set features callbackstools/virtiofsd/fuse_virtio.c+14 -10 replies
21/109virtiofsd: Start queue threadstools/virtiofsd/fuse_virtio.c+89 -00 replies
22/109virtiofsd: Poll kick_fd for queuetools/virtiofsd/fuse_virtio.c+39 -10 replies
23/109virtiofsd: Start reading commands from queuetools/virtiofsd/fuse_i.h tools/virtiofsd/fuse_virtio.c+98 -30 replies
24/109virtiofsd: Send replies to messagestools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/fuse_virtio.c tools/virtiofsd/fuse_virtio.h+111 -40 replies
25/109virtiofsd: Keep track of repliestools/virtiofsd/fuse_virtio.c+20 -30 replies
26/109virtiofsd: Add Makefile wiring for virtiofsd contribMakefile Makefile.objs tools/virtiofsd/Makefile.objs+20 -00 replies
27/109virtiofsd: Fast path for virtio readtools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/fuse_virtio.c tools/virtiofsd/fuse_virtio.h+171 -00 replies
28/109virtiofsd: add --fd=FDNUM fd passing optiontools/virtiofsd/fuse_i.h tools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/fuse_virtio.c+37 -90 replies
29/109virtiofsd: make -f (foreground) the defaulttools/virtiofsd/helper.c+8 -00 replies
30/109virtiofsd: add vhost-user.json file.gitignore Makefile tools/virtiofsd/50-qemu-virtiofsd.json.in+7 -00 replies
31/109virtiofsd: add --print-capabilities optiondocs/interop/vhost-user.json tools/virtiofsd/fuse_lowlevel.h tools/virtiofsd/helper.c +1 more+18 -10 replies
32/109virtiofs: Add maintainers entryMAINTAINERS+8 -00 replies
33/109virtiofsd: passthrough_ll: create new files in caller's contexttools/virtiofsd/passthrough_ll.c+91 -50 replies
34/109virtiofsd: passthrough_ll: add lo_map for ino/fh indirectiontools/virtiofsd/passthrough_ll.c+124 -00 replies
35/109virtiofsd: passthrough_ll: add ino_map to hide lo_inode pointerstools/virtiofsd/passthrough_ll.c+114 -300 replies
36/109virtiofsd: passthrough_ll: add dirp_map to hide lo_dirp pointerstools/virtiofsd/passthrough_ll.c+76 -270 replies
37/109virtiofsd: passthrough_ll: add fd_map to hide file descriptorstools/virtiofsd/passthrough_ll.c+94 -220 replies
38/109virtiofsd: passthrough_ll: add fallback for racy opstools/virtiofsd/helper.c tools/virtiofsd/passthrough_ll.c+145 -170 replies
39/109virtiofsd: validate path componentstools/virtiofsd/passthrough_ll.c+53 -60 replies
40/109virtiofsd: Plumb fuse_bufvec through to do_write_buftools/virtiofsd/fuse_i.h tools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/fuse_virtio.c+44 -220 replies
41/109virtiofsd: Pass write iov's all the way throughtools/virtiofsd/fuse_virtio.c+73 -60 replies
42/109virtiofsd: add fuse_mbuf_iter APItools/virtiofsd/buffer.c tools/virtiofsd/fuse_common.h+76 -10 replies
43/109virtiofsd: validate input buffer sizes in do_write_buf()tools/virtiofsd/fuse_lowlevel.c+30 -190 replies
44/109virtiofsd: check input buffer size in fuse_lowlevel.c opstools/virtiofsd/fuse_lowlevel.c+456 -1250 replies
45/109virtiofsd: prevent ".." escape in lo_do_lookup()tools/virtiofsd/passthrough_ll.c+6 -10 replies
46/109virtiofsd: prevent ".." escape in lo_do_readdir()tools/virtiofsd/passthrough_ll.c+22 -140 replies
47/109virtiofsd: use /proc/self/fd/ O_PATH file descriptortools/virtiofsd/passthrough_ll.c+103 -270 replies
48/109virtiofsd: sandbox mount namespacetools/virtiofsd/passthrough_ll.c+89 -00 replies
49/109virtiofsd: move to an empty network namespacetools/virtiofsd/passthrough_ll.c+14 -00 replies
50/109virtiofsd: move to a new pid namespacetools/virtiofsd/passthrough_ll.c+86 -480 replies
51/109virtiofsd: add seccomp whitelistMakefile tools/virtiofsd/Makefile.objs tools/virtiofsd/passthrough_ll.c +2 more+171 -27 replies
52/109virtiofsd: Parse flag FUSE_WRITE_KILL_PRIVtools/virtiofsd/fuse_common.h tools/virtiofsd/fuse_lowlevel.c+8 -20 replies
53/109virtiofsd: cap-ng helpersMakefile tools/virtiofsd/passthrough_ll.c+73 -10 replies
54/109virtiofsd: Drop CAP_FSETID if client asked for ittools/virtiofsd/passthrough_ll.c+105 -00 replies
55/109virtiofsd: set maximum RLIMIT_NOFILE limittools/virtiofsd/passthrough_ll.c+32 -00 replies
56/109virtiofsd: fix libfuse information leakstools/virtiofsd/fuse_lowlevel.c+76 -740 replies
57/109docs: Add docs/toolsMakefile docs/index.rst docs/tools/conf.py +1 more+37 -11 reply
58/109virtiofsd: add security guide documentdocs/tools/index.rst docs/tools/virtiofsd-security.rst+120 -00 replies
59/109virtiofsd: add --syslog command-line optiontools/virtiofsd/fuse_lowlevel.h tools/virtiofsd/helper.c tools/virtiofsd/passthrough_ll.c +2 more+76 -130 replies
60/109virtiofsd: print log only when priority is high enoughtools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/fuse_lowlevel.h tools/virtiofsd/helper.c +1 more+87 -1150 replies
61/109virtiofsd: Add ID to the log with FUSE_LOG_DEBUG leveltools/virtiofsd/passthrough_ll.c+8 -01 reply
62/109virtiofsd: Add timestamp to the log with FUSE_LOG_DEBUG leveltools/virtiofsd/passthrough_ll.c+9 -12 replies
63/109virtiofsd: Handle reinittools/virtiofsd/fuse_lowlevel.c+2 -00 replies
64/109virtiofsd: Handle hard reboottools/virtiofsd/fuse_lowlevel.c+15 -10 replies
65/109virtiofsd: Kill threads when queues are stoppedtools/virtiofsd/fuse_virtio.c+44 -70 replies
66/109vhost-user: Print unexpected slave message typeshw/virtio/vhost-user.c+1 -12 replies
67/109contrib/libvhost-user: Protect slave fd with mutexcontrib/libvhost-user/libvhost-user.c contrib/libvhost-user/libvhost-user.h+23 -40 replies
68/109virtiofsd: passthrough_ll: add renameat2 supporttools/virtiofsd/passthrough_ll.c+10 -00 replies
69/109virtiofsd: passthrough_ll: disable readdirplus on cache=nevertools/virtiofsd/passthrough_ll.c+4 -00 replies
70/109virtiofsd: passthrough_ll: control readdirplustools/virtiofsd/helper.c tools/virtiofsd/passthrough_ll.c+9 -12 replies
71/109virtiofsd: rename unref_inode() to unref_inode_lolocked()tools/virtiofsd/passthrough_ll.c+8 -70 replies
72/109virtiofsd: fail when parent inode isn't known in lo_do_lookup()tools/virtiofsd/passthrough_ll.c+12 -20 replies
73/109virtiofsd: extract root inode init into setup_root()tools/virtiofsd/passthrough_ll.c+25 -101 reply
74/109virtiofsd: passthrough_ll: clean up cache related optionstools/virtiofsd/helper.c tools/virtiofsd/passthrough_ll.c+13 -100 replies
75/109virtiofsd: passthrough_ll: use hashtabletools/virtiofsd/passthrough_ll.c+45 -360 replies
76/109virtiofsd: Clean up inodes on destroytools/virtiofsd/passthrough_ll.c+26 -00 replies
77/109virtiofsd: support nanosecond resolution for file timestampconfigure tools/virtiofsd/fuse_misc.h+17 -00 replies
78/109virtiofsd: fix error handling in main()tools/virtiofsd/passthrough_ll.c+3 -20 replies
79/109virtiofsd: cleanup allocated resource in setools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/fuse_virtio.c tools/virtiofsd/fuse_virtio.h+15 -10 replies
80/109virtiofsd: fix memory leak on lo.sourcetools/virtiofsd/passthrough_ll.c+4 -31 reply
81/109virtiofsd: add helper for lo_data cleanuptools/virtiofsd/passthrough_ll.c+21 -160 replies
82/109virtiofsd: Prevent multiply running with same vhost_user_sockettools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/fuse_virtio.c+49 -10 replies
83/109virtiofsd: enable PARALLEL_DIROPS during INITtools/virtiofsd/fuse_lowlevel.c+3 -00 replies
84/109virtiofsd: fix incorrect error handling in lo_do_lookuptools/virtiofsd/passthrough_ll.c+0 -10 replies
85/109Virtiofsd: fix memory leak on fuse queueinfotools/virtiofsd/fuse_virtio.c+8 -00 replies
86/109virtiofsd: Support remote posix lockstools/virtiofsd/helper.c tools/virtiofsd/passthrough_ll.c+192 -00 replies
87/109virtiofsd: use fuse_lowlevel_is_virtio() in fuse_session_destroy()tools/virtiofsd/fuse_lowlevel.c+4 -30 replies
88/109virtiofsd: prevent fv_queue_thread() vs virtio_loop() racestools/virtiofsd/fuse_virtio.c+33 -10 replies
89/109virtiofsd: make lo_release() atomictools/virtiofsd/passthrough_ll.c+8 -40 replies
90/109virtiofsd: prevent races with lo_dirp_put()tools/virtiofsd/passthrough_ll.c+35 -60 replies
91/109virtiofsd: rename inode->refcount to inode->nlookuptools/virtiofsd/passthrough_ll.c+25 -120 replies
92/109libvhost-user: Fix some memtable remap casescontrib/libvhost-user/libvhost-user.c contrib/libvhost-user/libvhost-user.h+28 -80 replies
93/109virtiofsd: add man pageMakefile tools/virtiofsd/virtiofsd.texi+111 -01 reply
94/109virtiofsd: passthrough_ll: fix refcounting on remove/renametools/virtiofsd/passthrough_ll.c+49 -10 replies
95/109virtiofsd: introduce inode refcount to prevent use-after-freetools/virtiofsd/passthrough_ll.c+146 -230 replies
96/109virtiofsd: do not always set FUSE_FLOCK_LOCKStools/virtiofsd/passthrough_ll.c+8 -30 replies
97/109virtiofsd: convert more fprintf and perror to use fuse log infratools/virtiofsd/fuse_signals.c tools/virtiofsd/helper.c+11 -51 reply
98/109virtiofsd: Reset O_DIRECT flag during file opentools/virtiofsd/passthrough_ll.c+14 -00 replies
99/109virtiofsd: Fix data corruption with O_APPEND write in writeback modetools/virtiofsd/passthrough_ll.c+33 -330 replies
100/109virtiofsd: add definition of fuse_buf_writev()tools/virtiofsd/buffer.c+38 -00 replies
101/109virtiofsd: use fuse_buf_writev to replace fuse_buf_write for better performancetools/virtiofsd/buffer.c+18 -20 replies
102/109virtiofsd: process requests in a thread pooltools/virtiofsd/fuse_virtio.c+201 -1580 replies
103/109virtiofsd: prevent FUSE_INIT/FUSE_DESTROY racestools/virtiofsd/fuse_i.h tools/virtiofsd/fuse_lowlevel.c+19 -00 replies
104/109virtiofsd: fix lo_destroy() resource leakstools/virtiofsd/passthrough_ll.c+20 -210 replies
105/109virtiofsd: add --thread-pool-size=NUM optiontools/virtiofsd/fuse_i.h tools/virtiofsd/fuse_lowlevel.c tools/virtiofsd/fuse_virtio.c+10 -30 replies
106/109virtiofsd: Convert lo_destroy to take the lo->mutex lock itselftools/virtiofsd/passthrough_ll.c+17 -140 replies
107/109virtiofsd/passthrough_ll: Pass errno to fuse_reply_err()tools/virtiofsd/passthrough_ll.c+1 -10 replies
108/109virtiofsd: stop all queue threads on exit in virtio_loop()tools/virtiofsd/fuse_virtio.c+12 -00 replies
109/109virtiofsd: add some options to the help messagetools/virtiofsd/helper.c+9 -12 replies

Reviews trailers per patch

103 of 109 patches have a Reviewed-by or Acked-by.

PatchDaniel P. BerrangéPhilippe Mathieu-DaudéMisono TomohiroSergio LopezMasayoshi MizumaLiam MerwickXiao YangEryu GuanStefan HajnocziDr. David Alan Gilbert
1/109R-b R-b
2/109R-b
3/109R-b
4/109R-b
5/109R-b
6/109R-b
7/109R-b
8/109R-b
9/109R-b
10/109R-b R-b T-b
11/109R-b T-b
12/109R-b
13/109
14/109R-b
15/109R-b
16/109R-b
17/109R-b R-b
18/109R-b
19/109R-b
20/109R-b
21/109R-b
22/109R-b
23/109R-b
24/109R-b
25/109R-b
26/109R-b R-b
27/109R-b
28/109R-b
29/109R-b
30/109R-b
31/109R-b
32/109R-b R-b T-b
33/109
34/109R-b
35/109R-b
36/109R-b
37/109R-b
38/109R-b
39/109R-b
40/109R-b
41/109R-b
42/109
43/109R-b
44/109R-b
45/109R-b
46/109R-b
47/109R-b
48/109R-b
49/109R-b
50/109R-b
51/109
52/109R-b R-b
53/109R-b
54/109R-b R-b
55/109R-b R-b
56/109R-b R-b
57/109R-b T-b
58/109R-b
59/109R-b
60/109R-b
61/109R-b
62/109R-b
63/109R-b
64/109R-b
65/109R-b
66/109R-b R-b
67/109R-b
68/109
69/109R-b
70/109R-b
71/109R-b
72/109R-b
73/109R-b
74/109R-b
75/109R-b
76/109R-b
77/109R-b
78/109R-b
79/109R-b
80/109R-b
81/109R-b
82/109R-b
83/109R-b
84/109R-b
85/109R-b
86/109R-b
87/109R-b
88/109R-b
89/109R-b
90/109R-b
91/109R-b
92/109
93/109R-b T-b R-b
94/109R-b
95/109R-b R-b
96/109R-b R-b
97/109R-b R-b R-b
98/109R-b
99/109R-b
100/109R-b
101/109R-b
102/109R-b
103/109R-b
104/109R-b
105/109R-b R-b
106/109R-b
107/109R-b
108/109R-b
109/109R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 10 reviewers.

Read the v2 thread

Cover letter [PATCH v2 000/109] virtiofs daemon [all]

From: "Dr. David Alan Gilbert" <[email protected]>

Hi,
This is a full set for virtiofsd - a daemon
that implements the user space side of virtiofs.

I've addressed most review comments from V1; we've got 95 Reviewed-by's out of 110 - I'd like to get a PULL out ASAP.

The set pulls in a big chunk of the upstream libfuse library (unmodified so that it's easy to check it really is upstream), chops all the stuff out we don't need and then adds the
new transport we need. I've formatted everything into qemu's code style - using indent and the clang tools for the files I've imported.

We can't just link with libfuse, since we have to make ABI incompatible changes for the new transport and it's quite invasive; the library is designed to be the basis for multiple filesystems, but all on the same transport.

Running this daemon is typically done with:

   ./virtiofsd --socket-path=/path/socket -o source=/path/to/fs

connected to a qemu that's then started with:
-chardev socket,id=char0,path=/path/socket -device vhost-user-fs-pci,queue-size=1024,chardev=char0,tag=myfs

and then in the guest mount with:
mount -t virtiofs myfs /mnt

Our development branch is: https://gitlab.com/virtio-fs/qemu/tree/virtio-fs-dev

This code is going into tools/virtiofsd based on the previous long discussion.

Thank you to all those who have contributed code and to those who have reviewed the previous version.

Dave

Dr. David Alan Gilbert (35):
virtiofsd: Pull in upstream headers
virtiofsd: Pull in kernel's fuse.h
virtiofsd: Add auxiliary .c's
virtiofsd: Add fuse_lowlevel.c
virtiofsd: Add passthrough_ll
virtiofsd: Trim down imported files
virtiofsd: Format imported files to qemu style
virtiofsd: Fix fuse_daemonize ignored return values
virtiofsd: Fix common header and define for QEMU builds
virtiofsd: Trim out compatibility code
virtiofsd: Add options for virtio
virtiofsd: Open vhost connection instead of mounting
virtiofsd: Start wiring up vhost-user
virtiofsd: Add main virtio loop
virtiofsd: get/set features callbacks
virtiofsd: Start queue threads
virtiofsd: Poll kick_fd for queue
virtiofsd: Start reading commands from queue
virtiofsd: Send replies to messages
virtiofsd: Keep track of replies
virtiofsd: Add Makefile wiring for virtiofsd contrib
virtiofsd: Fast path for virtio read
virtiofs: Add maintainers entry
virtiofsd: Plumb fuse_bufvec through to do_write_buf
virtiofsd: Pass write iov's all the way through
virtiofsd: cap-ng helpers
docs: Add docs/tools
virtiofsd: Handle reinit
virtiofsd: Handle hard reboot
virtiofsd: Kill threads when queues are stopped
vhost-user: Print unexpected slave message types contrib/libvhost-user: Protect slave fd with mutex
virtiofsd: Clean up inodes on destroy
libvhost-user: Fix some memtable remap cases
virtiofsd: Convert lo_destroy to take the lo->mutex lock itself

Eric Ren (1):
virtiofsd: fix incorrect error handling in lo_do_lookup

Eryu Guan (3):
virtiofsd: print log only when priority is high enough
virtiofsd: convert more fprintf and perror to use fuse log infra
virtiofsd: stop all queue threads on exit in virtio_loop()

Jiufei Xue (1):
virtiofsd: support nanosecond resolution for file timestamp

Liu Bo (6):
virtiofsd: fix error handling in main()
virtiofsd: cleanup allocated resource in se
virtiofsd: fix memory leak on lo.source
virtiofsd: add helper for lo_data cleanup
virtiofsd: enable PARALLEL_DIROPS during INIT
Virtiofsd: fix memory leak on fuse queueinfo

Masayoshi Mizuma (4):
virtiofsd: Add ID to the log with FUSE_LOG_DEBUG level
virtiofsd: Add timestamp to the log with FUSE_LOG_DEBUG level
virtiofsd: Prevent multiply running with same vhost_user_socket
virtiofsd: add some options to the help message

Miklos Szeredi (10):
virtiofsd: passthrough_ll: add fallback for racy ops
virtiofsd: passthrough_ll: add renameat2 support
virtiofsd: passthrough_ll: disable readdirplus on cache=never
virtiofsd: passthrough_ll: control readdirplus
virtiofsd: rename unref_inode() to unref_inode_lolocked()
virtiofsd: fail when parent inode isn't known in lo_do_lookup()
virtiofsd: extract root inode init into setup_root()
virtiofsd: passthrough_ll: clean up cache related options
virtiofsd: passthrough_ll: use hashtable
virtiofsd: passthrough_ll: fix refcounting on remove/rename

Misono Tomohiro (1):
virtiofsd: Fix data corruption with O_APPEND write in writeback mode

Peng Tao (1):
virtiofsd: do not always set FUSE_FLOCK_LOCKS

Stefan Hajnoczi (37):
virtiofsd: remove mountpoint dummy argument
virtiofsd: remove unused notify reply support
virtiofsd: add -o source=PATH to help output
virtiofsd: add --fd=FDNUM fd passing option
virtiofsd: make -f (foreground) the default
virtiofsd: add vhost-user.json file
virtiofsd: add --print-capabilities option
virtiofsd: passthrough_ll: add lo_map for ino/fh indirection
virtiofsd: passthrough_ll: add ino_map to hide lo_inode pointers
virtiofsd: passthrough_ll: add dirp_map to hide lo_dirp pointers
virtiofsd: passthrough_ll: add fd_map to hide file descriptors
virtiofsd: validate path components
virtiofsd: add fuse_mbuf_iter API
virtiofsd: validate input buffer sizes in do_write_buf()
virtiofsd: check input buffer size in fuse_lowlevel.c ops
virtiofsd: prevent ".." escape in lo_do_lookup()
virtiofsd: prevent ".." escape in lo_do_readdir()
virtiofsd: use /proc/self/fd/ O_PATH file descriptor
virtiofsd: sandbox mount namespace
virtiofsd: move to an empty network namespace
virtiofsd: move to a new pid namespace
virtiofsd: add seccomp whitelist
virtiofsd: set maximum RLIMIT_NOFILE limit
virtiofsd: fix libfuse information leaks
virtiofsd: add security guide document
virtiofsd: add --syslog command-line option
virtiofsd: use fuse_lowlevel_is_virtio() in fuse_session_destroy()
virtiofsd: prevent fv_queue_thread() vs virtio_loop() races
virtiofsd: make lo_release() atomic
virtiofsd: prevent races with lo_dirp_put()
virtiofsd: rename inode->refcount to inode->nlookup
virtiofsd: add man page
virtiofsd: introduce inode refcount to prevent use-after-free
virtiofsd: process requests in a thread pool
virtiofsd: prevent FUSE_INIT/FUSE_DESTROY races
virtiofsd: fix lo_destroy() resource leaks
virtiofsd: add --thread-pool-size=NUM option

Vivek Goyal (6):
virtiofsd: Make fsync work even if only inode is passed in
virtiofsd: passthrough_ll: create new files in caller's context
virtiofsd: Parse flag FUSE_WRITE_KILL_PRIV
virtiofsd: Drop CAP_FSETID if client asked for it
virtiofsd: Support remote posix locks
virtiofsd: Reset O_DIRECT flag during file open

Xiao Yang (2):
vitriofsd/passthrough_ll: fix fallocate() ifdefs virtiofsd/passthrough_ll: Pass errno to fuse_reply_err()

piaojun (2):
virtiofsd: add definition of fuse_buf_writev()
virtiofsd: use fuse_buf_writev to replace fuse_buf_write for better
performance

 .gitignore                                |    1 +
 MAINTAINERS                               |    8 +
 Makefile                                  |   27 +-
 Makefile.objs                             |    1 +
 configure                                 |   16 +
 contrib/libvhost-user/libvhost-user.c     |   57 +-
 contrib/libvhost-user/libvhost-user.h     |    6 +
 docs/index.rst                            |    1 +
 docs/interop/vhost-user.json              |    4 +-
 docs/tools/conf.py                        |   16 +
 docs/tools/index.rst                      |   14 +
 docs/tools/virtiofsd-security.rst         |  118 +
 hw/virtio/vhost-user.c                    |    2 +-
 include/standard-headers/linux/fuse.h     |  891 ++++++
 scripts/update-linux-headers.sh           |    1 +
 tools/virtiofsd/50-qemu-virtiofsd.json.in |    5 +
 tools/virtiofsd/Makefile.objs             |   12 +
 tools/virtiofsd/buffer.c                  |  351 +++
 tools/virtiofsd/fuse.h                    | 1249 +++++++++
 tools/virtiofsd/fuse_common.h             |  860 ++++++
 tools/virtiofsd/fuse_i.h                  |  115 +
 tools/virtiofsd/fuse_log.c                |   40 +
 tools/virtiofsd/fuse_log.h                |   74 +
 tools/virtiofsd/fuse_lowlevel.c           | 2779 +++++++++++++++++++
 tools/virtiofsd/fuse_lowlevel.h           | 2023 ++++++++++++++
 tools/virtiofsd/fuse_misc.h               |   60 +
 tools/virtiofsd/fuse_opt.c                |  449 +++
 tools/virtiofsd/fuse_opt.h                |  272 ++
 tools/virtiofsd/fuse_signals.c            |   97 +
 tools/virtiofsd/fuse_virtio.c             |  985 +++++++
 tools/virtiofsd/fuse_virtio.h             |   33 +
 tools/virtiofsd/helper.c                  |  349 +++
 tools/virtiofsd/passthrough_helpers.h     |   51 +
 tools/virtiofsd/passthrough_ll.c          | 3006 +++++++++++++++++++++
 tools/virtiofsd/seccomp.c                 |  164 ++
 tools/virtiofsd/seccomp.h                 |   16 +
 tools/virtiofsd/virtiofsd.texi            |  104 +
 37 files changed, 14242 insertions(+), 15 deletions(-)
 create mode 100644 docs/tools/conf.py
 create mode 100644 docs/tools/index.rst
 create mode 100644 docs/tools/virtiofsd-security.rst
 create mode 100644 include/standard-headers/linux/fuse.h
 create mode 100644 tools/virtiofsd/50-qemu-virtiofsd.json.in
 create mode 100644 tools/virtiofsd/Makefile.objs
 create mode 100644 tools/virtiofsd/buffer.c
 create mode 100644 tools/virtiofsd/fuse.h
 create mode 100644 tools/virtiofsd/fuse_common.h
 create mode 100644 tools/virtiofsd/fuse_i.h
 create mode 100644 tools/virtiofsd/fuse_log.c
 create mode 100644 tools/virtiofsd/fuse_log.h
 create mode 100644 tools/virtiofsd/fuse_lowlevel.c
 create mode 100644 tools/virtiofsd/fuse_lowlevel.h
 create mode 100644 tools/virtiofsd/fuse_misc.h
 create mode 100644 tools/virtiofsd/fuse_opt.c
 create mode 100644 tools/virtiofsd/fuse_opt.h
 create mode 100644 tools/virtiofsd/fuse_signals.c
 create mode 100644 tools/virtiofsd/fuse_virtio.c
 create mode 100644 tools/virtiofsd/fuse_virtio.h
 create mode 100644 tools/virtiofsd/helper.c
 create mode 100644 tools/virtiofsd/passthrough_helpers.h
 create mode 100644 tools/virtiofsd/passthrough_ll.c
 create mode 100644 tools/virtiofsd/seccomp.c
 create mode 100644 tools/virtiofsd/seccomp.h
 create mode 100644 tools/virtiofsd/virtiofsd.texi
Signature · 1 line
2.24.1