qemu/include
Kevin Wolf 4693cc8686 block: Add more defaults to DEFAULT_BLOCK_CONF
discard_granularity was missing from this, which means that SCSI disks
created with -drive if=scsi would default to 0 (i.e. disabling discards)
instead of -1, which makes scsi-hd automatically pick a granularity and
is the default of the corresponding qdev property for -device scsi-hd.

This was broken in QEMU 9.0 with commit 3089637.

Also set other fields whose default isn't an obvious 0. These are not
actual bug fixes because ON_OFF_AUTO_AUTO in fact happens to be 0, but
it's better not to rely on the order of enums.

Cc: qemu-stable@nongnu.org
Fixes: 3089637461 ('scsi: Don't ignore most usb-storage properties')
Reported-by: Lexi Winter <ivy@FreeBSD.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20260410152314.86412-3-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit f27aea1896)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2026-05-20 11:23:08 +03:00
..
accel cpus: Introduce SysemuCPUOps::has_work() handler 2025-03-09 17:00:47 +01:00
authz
block block: Add blk_co_start/end_request() and BDRV_REQ_NO_QUEUE 2026-05-20 11:22:56 +03:00
chardev monitor/qmp: cleanup SocketChardev listener sources early to avoid fd handling race 2026-01-08 17:48:10 +03:00
crypto crypto: Remove qcrypto_tls_session_get_handshake_status 2025-02-14 15:19:03 -03:00
disas disas: Fix build against Capstone v6 (again) 2024-11-05 10:09:59 +00:00
exec physmem: Destroy all CPU AddressSpaces on unrealize 2025-10-05 09:39:24 +03:00
fpu fpu: Move m68k_denormal fmt flag into floatx80_behaviour 2025-02-25 15:32:57 +00:00
gdbstub gdbstub/helpers: Introduce ldtul_$endian_p() helpers 2024-10-15 11:55:09 -03:00
hw block: Add more defaults to DEFAULT_BLOCK_CONF 2026-05-20 11:23:08 +03:00
io io: separate freeing of tasks from marking them as complete 2026-03-11 16:37:26 +03:00
libdecnumber
migration migration: cpr_is_incoming 2025-03-14 09:29:19 -03:00
monitor monitor: Remove obsolete stubs 2024-06-30 19:51:44 +03:00
net net: checksum: Convert data to void * 2024-11-25 13:59:50 +08:00
qapi error: define g_autoptr() cleanup function for the Error type 2025-03-06 06:47:33 +01:00
qemu host-utils: Drop workaround for buggy Apple Clang __builtin_subcll() 2025-07-23 11:47:29 +03:00
qobject qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
qom qom: remove unused field 2025-01-10 23:34:44 +01:00
scsi hw/ufs: Support for UFS logical unit 2023-09-07 14:01:29 -04:00
semihosting semihosting/console: Avoid including 'cpu.h' 2025-01-17 10:44:00 +00:00
standard-headers linux-headers: Update to Linux v6.14-rc3 2025-03-04 15:42:54 +10:00
system block: Add flags parameter to blk_*_pdiscard() 2026-05-20 11:22:56 +03:00
tcg tcg: Introduce the 'z' constraint for a hardware zero register 2025-02-18 08:29:03 -08:00
ui ui/vnc: take account of client byte order in pixman format 2025-05-30 15:26:28 +03:00
user user: Extract common MMAP API to 'user/mmap.h' 2025-03-09 14:54:32 +01:00
elf.h elf: Add EF_MIPS_ARCH_ASE definitions 2025-09-04 23:16:52 +03:00
glib-compat.h Bump minimum glib version to v2.66 2024-05-14 12:46:24 +02:00
qemu-io.h
qemu-main.h ui & main loop: Redesign of system-specific main thread event handling 2024-12-31 21:21:34 +01:00