All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] block/export/fuse: set FUSE_DIRECT_IO_ALLOW_MMAP flag to fix regression
@ 2026-05-06 14:49 Fiona Ebner
  2026-05-06 14:49 ` [PATCH 1/3] block/export/fuse: use struct fuse_init_in Fiona Ebner
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Fiona Ebner @ 2026-05-06 14:49 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-block, hreitz, kwolf, qemu-stable

Commit 8599559580 ("fuse: Set direct_io and parallel_direct_writes")
broke use cases that require mmap() with MAP_SHARED on the export. In
particular, swtpm_setup using its 'file://' protocol requires this.
This is mentioned in the kernel documentation [0]:

> To allow shared mmap, the FUSE_DIRECT_IO_ALLOW_MMAP flag may be
> enabled in the FUSE_INIT reply.

[0]: https://www.kernel.org/doc/html/next/filesystems/fuse/fuse-io.html

Set the FUSE_DIRECT_IO_ALLOW_MMAP flag to restore compatibility with
users requiring shared mmap.

Fiona Ebner (3):
  block/export/fuse: use struct fuse_init_in
  block/export/fuse: set FUSE_DIRECT_IO_ALLOW_MMAP flag to fix
    regression
  iotests: test shared mmap for fuse export

 block/export/fuse.c                           |  69 +++++++++---
 tests/qemu-iotests/tests/fuse-mmap-shared     | 103 ++++++++++++++++++
 tests/qemu-iotests/tests/fuse-mmap-shared.out |   5 +
 3 files changed, 161 insertions(+), 16 deletions(-)
 create mode 100755 tests/qemu-iotests/tests/fuse-mmap-shared
 create mode 100644 tests/qemu-iotests/tests/fuse-mmap-shared.out

-- 
2.47.3




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-05 15:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-06 14:49 [PATCH 0/3] block/export/fuse: set FUSE_DIRECT_IO_ALLOW_MMAP flag to fix regression Fiona Ebner
2026-05-06 14:49 ` [PATCH 1/3] block/export/fuse: use struct fuse_init_in Fiona Ebner
2026-05-06 14:49 ` [PATCH 2/3] block/export/fuse: set FUSE_DIRECT_IO_ALLOW_MMAP flag to fix regression Fiona Ebner
2026-05-06 14:49 ` [PATCH 3/3] iotests: test shared mmap for fuse export Fiona Ebner
2026-06-05 15:33 ` [PATCH 0/3] block/export/fuse: set FUSE_DIRECT_IO_ALLOW_MMAP flag to fix regression Kevin Wolf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.