qemu/fsdev
Christian Schoenebeck 5ab98d34b0 hw/9pfs: add max_xattr option
Previous patch introduced a limit of max. 1024 simultaneous xattr FIDs.

This patch introduces an option "max_attr" that allows to override this
limit, just for the case that some user might run into this limit for
some reason, even if unlikely; or for reducing the limit further down
(e.g. that default limit of 1024 would cap at max. 64 MiB host memory,
at least on Linux hosts where the limit per xattr is 64k).

This new "max_xattr" option can be specified with both -fsdev and
-virtfs command line options, with the "local" and the "synth" fs
drivers.

The previous limit of 1024 is preserved as the default value.

Link: https://lore.kernel.org/qemu-devel/b7631ac0d8dde0629bc7c4f2c4185d9f57b962b4.1781361555.git.qemu_oss@crudebyte.com
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
(cherry picked from commit e6116a81f0)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2026-06-30 09:37:33 +03:00
..
9p-iov-marshal.c fsdep/9p: fix -Werror=maybe-uninitialized false-positive 2024-10-02 16:14:29 +04:00
9p-iov-marshal.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
9p-marshal.c fsdev/9p-marshal: move G_GNUC_PRINTF to header 2025-07-16 14:18:48 +02:00
9p-marshal.h fsdev/9p-marshal: move G_GNUC_PRINTF to header 2025-07-16 14:18:48 +02:00
file-op-9p.h hw/9pfs: add max_xattr option 2026-06-30 09:37:33 +03:00
meson.build fsdev: Build stubs once 2026-03-17 19:50:05 +01:00
p9array.h Don't include headers already included by qemu/osdep.h 2023-02-08 07:28:05 +01:00
qemu-fsdev-dummy.c Include qemu/module.h where needed, drop it from qemu-common.h 2019-06-12 13:18:33 +02:00
qemu-fsdev-opts.c hw/9pfs: add max_xattr option 2026-06-30 09:37:33 +03:00
qemu-fsdev-throttle.c fsdev: Use ThrottleDirection instread of bool is_write 2023-08-29 10:49:24 +02:00
qemu-fsdev-throttle.h block: extract include/qemu/aiocb.h out of include/block/aio.h 2025-12-27 10:11:12 +01:00
qemu-fsdev.c hw/9pfs: add max_xattr option 2026-06-30 09:37:33 +03:00
qemu-fsdev.h 9p: remove 'proxy' filesystem backend driver 2024-10-03 19:33:25 +02:00