Skip to content

RFC block/export: Add FUSE-over-io_uring for Storage Exports

Zhi Song qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fuse: add FUSE-over-io_uring enable opt and initblock/export/fuse.c docs/tools/qemu-storage-daemon.rst qapi/block-export.json +2 more+159 -247 replies
2/3fuse: Handle FUSE-uring requestsblock/export/fuse.c+289 -1360 replies
3/3fuse: Safe termination for FUSE-uringblock/export/fuse.c+41 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] block/export: Add FUSE-over-io_uring for Storage Exports

From: Brian Song <[email protected]>

Hello,

This is a GSoC project. You could check out more here:
https://wiki.qemu.org/Google_Summer_of_Code_2025#FUSE-over-io_uring_exports

This series:
- Merges the request processing functions for both traditional FUSE and FUSE-over-io_uring modes
- Implements multi-threading (Multi-IOThread)
- Improves FUSE-over-io_uring termination handling

Due to kernel limitations, when the FUSE-over-io_uring option is enabled,
you must create and assign nr_cpu IOThreads. For example:

qemu-storage-daemon \
--object iothread,id=iothread1 \
--object iothread,id=iothread2 \
--blockdev node-name=prot-node,driver=file,filename=img.qcow2 \
--blockdev node-name=fmt-node,driver=qcow2,file=prot-node \
--export type=fuse,id=exp0,node-name=fmt-node,mountpoint=mount-point, \
writable=on,iothread.0=iothread1,iothread.1=iothread2

More detail on the v1 cover letter:
https://lists.nongnu.org/archive/html/qemu-block/2025-07/msg00280.html

Brian Song (3):
fuse: add FUSE-over-io_uring enable opt and init
fuse: Handle FUSE-uring requests
fuse: Safe termination for FUSE-uring

 block/export/fuse.c                  | 632 ++++++++++++++++++++-------
 docs/tools/qemu-storage-daemon.rst   |  11 +-
 qapi/block-export.json               |   5 +-
 storage-daemon/qemu-storage-daemon.c |   1 +
 util/fdmon-io_uring.c                |   5 +-
 5 files changed, 486 insertions(+), 168 deletions(-)

--
2.45.2