qemu/include
Kevin Wolf c75c1f83b5 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:22:33 +03:00
..
accel include: Don't include guest-host.h in cpu-ldst.h 2026-05-14 22:28:26 +03:00
authz
block block: Add blk_co_start/end_request() and BDRV_REQ_NO_QUEUE 2026-05-20 11:22:08 +03:00
chardev monitor/qmp: cleanup SocketChardev listener sources early to avoid fd handling race 2026-01-08 17:44:39 +03:00
crypto crypto: support upto 5 parallel certificate identities 2025-11-03 10:45:55 +00:00
disas disas: Fix build against Capstone v6 (again) 2024-11-05 10:09:59 +00:00
exec exec/cpu: Declare cpu_memory_rw_debug() in 'hw/core/cpu.h' and document 2025-11-03 11:59:32 +01:00
fpu fpu: Move m68k_denormal fmt flag into floatx80_behaviour 2025-02-25 15:32:57 +00:00
gdbstub gdbstub/helpers: Replace TARGET_BIG_ENDIAN -> target_big_endian() 2025-07-15 02:56:39 -04:00
hw block: Add more defaults to DEFAULT_BLOCK_CONF 2026-05-20 11:22:33 +03:00
io io: separate freeing of tasks from marking them as complete 2026-03-11 16:42:36 +03:00
libdecnumber include/libdecnumber: replace FSF postal address with licenses URL 2025-06-26 00:42:37 +02:00
migration Revert "migration/vmstate: remove VMSTATE_BUFFER_POINTER_UNSAFE macro" 2025-12-09 21:00:15 +01:00
monitor qdev: add qdev_find_default_bus() 2025-10-29 22:53:41 +04:00
net qom: remove redundant typedef when use OBJECT_DECLARE_SIMPLE_TYPE 2025-10-28 08:08:04 +01:00
qapi error: Kill @error_warn 2025-10-01 08:33:24 +02:00
qemu osdep: Undefine FSCALE definition to fix Solaris builds 2025-12-09 20:42:53 +01:00
qobject qobject: make refcount atomic 2025-10-28 13:02:26 +01:00
qom qom: reverse order of instance_post_init calls 2025-05-20 08:18:53 +02:00
scsi hw/ufs: Support for UFS logical unit 2023-09-07 14:01:29 -04:00
semihosting include/semihosting/common-semi: extract common_semi API 2025-09-26 09:55:19 +01:00
standard-headers linux-headers: Update to Linux v6.18-rc3 2025-10-30 10:33:55 +08:00
system block: Add flags parameter to blk_*_pdiscard() 2026-05-20 11:22:08 +03:00
tcg tcg/tci: Disable -Wundef FFI_GO_CLOSURES warning 2025-12-05 07:50:15 -06:00
ui ui/gtk: Add scale option 2025-07-15 10:22:33 +04:00
user include/user/guest-host.h: Provide g2h etc for both abi_ptr and vaddr 2026-05-14 22:28:26 +03:00
elf.h elf: Add EF_MIPS_ARCH_ASE definitions 2025-09-02 17:57:05 +02:00
glib-compat.h include/glib-compat.h: Poison g_list_sort and g_slist_sort 2025-05-06 16:02:04 +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