qemu/system
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
..
arch_init.c system: Make qemu_arch_available() common code 2026-02-26 00:02:14 +01:00
arch_init.h Remove the qemu-system-microblazeel target from the build 2026-03-02 09:48:10 +01:00
async-teardown.c qemu/osdep: Add excluded fd parameter to qemu_close_all_open_fd() 2024-08-05 08:21:59 +10:00
balloon.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
bootdevice.c include: move hw/qdev-core.h to hw/core/, rename 2025-12-27 10:11:07 +01:00
cpu-timers.c cpus: properly kick CPUs out of inner execution loop 2025-09-17 19:00:55 +02:00
cpus.c cpus: Allocate maximum number of ASes supported by the arch 2026-01-22 10:48:46 +01:00
datadir.c pc-bios: Move device tree files in their own subdir 2025-04-25 17:09:58 +02:00
device_tree-stub.c hw/core/machine.c: Make -machine dumpdtb=file.dtb with no DTB an error 2025-02-25 15:32:57 +00:00
device_tree.c include: move hw/loader.h to hw/core/ 2025-12-27 10:11:07 +01:00
dirtylimit.c include/qemu/atomic: Drop qatomic_{read,set}_[iu]64 2026-01-17 10:46:51 +11:00
dma-helpers.c include/exec: Split out icount.h 2025-04-23 14:08:44 -07:00
exit-with-parent.c Implement -run-with exit-with-parent=on 2025-11-03 10:05:39 +00:00
globals.c system/globals: Build as common code 2026-02-23 00:17:34 +01:00
ioport.c system/ioport: Do not open-code address_space_ld/st_le() methods 2026-01-12 23:47:56 +01:00
main.c system/main: comment lock rationale 2025-05-28 08:07:59 +01:00
memory-internal.h system: Allow restricting the legacy DEVICE_NATIVE_ENDIAN definition 2026-01-22 10:48:45 +01:00
memory.c memory: Set mr->ram before RAM Block allocation 2026-03-19 10:02:42 -04:00
memory_ldst.c.inc system: Allow restricting legacy address_space_ldst() native-endian API 2026-01-22 10:48:45 +01:00
memory_ldst_endian.c.inc system/memory: Directly call address_space_ldst[M]_internal() helper 2026-01-22 10:48:45 +01:00
memory_mapping.c include/system: Move exec/address-spaces.h to system/address-spaces.h 2025-04-23 14:08:21 -07:00
meson.build system: Make qemu_arch_available() common code 2026-02-26 00:02:14 +01:00
physmem.c system/physmem.c: remove useless assertion of block 2026-03-16 13:50:17 +03:00
qdev-monitor.c target/or1k: Rename from openrisc 2026-02-09 20:51:52 +01:00
qemu-seccomp.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
qtest.c system/qtest: Support comments in input commands 2026-03-06 09:43:18 +00:00
ram-block-attributes.c memory: drop RamDiscardListener::double_discard_supported 2026-03-09 14:06:30 -04:00
rtc.c system/rtc: Fix a possible year-2038 integer overflow problem 2026-06-14 08:51:01 +03:00
runstate-action.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
runstate-hmp-cmds.c qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
runstate.c runstate: handle return code of EOPNOTSUPP properly from rebuild_guest() 2026-03-14 08:48:20 +01:00
tpm-hmp-cmds.c
tpm.c tpm: "qemu -tpmdev help" should return success 2025-07-15 10:22:33 +04:00
trace-events system/physmem: Convert DEBUG_SUBPAGE printf() to trace events 2026-01-12 23:47:56 +01:00
trace.h
vl.c hw/9pfs: add max_xattr option 2026-06-30 09:37:33 +03:00
watchpoint.c include/exec: Split out watchpoint.h 2025-04-23 14:08:36 -07:00