qemu/fsdev
Christian Schoenebeck c6ead5d4fa 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:40:16 +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 Replace GCC_FMT_ATTR with G_GNUC_PRINTF 2022-03-22 14:40:51 +04:00
9p-marshal.h 9pfs: make V9fsString usable via P9Array API 2021-10-27 14:45:22 +02:00
file-op-9p.h hw/9pfs: add max_xattr option 2026-06-30 09:40:16 +03:00
meson.build 9p: remove 'proxy' filesystem backend driver 2024-10-03 19:33:25 +02: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:40:16 +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 fsdev: Use ThrottleDirection instread of bool is_write 2023-08-29 10:49:24 +02:00
qemu-fsdev.c hw/9pfs: add max_xattr option 2026-06-30 09:40:16 +03:00
qemu-fsdev.h 9p: remove 'proxy' filesystem backend driver 2024-10-03 19:33:25 +02:00