qemu-e2k/hw/block
Akihiko Odaki fb0b154c80 virtio-blk: Respect discard granularity
Report the configured granularity for discard operation to the
guest. If this is not set use the block size.

Since until now we have ignored the configured discard granularity
and always reported the block size, let's add
'report-discard-granularity' property and disable it for older
machine types to avoid migration issues.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20210225001239.47046-1-akihiko.odaki@gmail.com>
2021-03-15 09:48:53 +00:00
..
dataplane
block.c
cdrom.c
ecc.c
fdc.c hw/block/fdc: Remove the check_media_rate property 2021-02-20 12:36:19 +01:00
hd-geometry.c
Kconfig hw/block: Introduce TC58128 eeprom Kconfig entry 2021-03-06 16:18:42 +01:00
m25p80.c hw/block: m25p80: Add various ISSI flash information 2021-03-04 09:43:29 -05:00
meson.build hw/block/nvme: introduce nvme-subsys device 2021-03-09 11:00:55 +01:00
nand.c
nvme-ns.c hw/block/nvme: support namespace detach 2021-03-09 11:00:57 +01:00
nvme-ns.h hw/block/nvme: support changed namespace asynchronous event 2021-03-09 11:00:58 +01:00
nvme-subsys.c hw/block/nvme: support for shared namespace in subsystem 2021-03-09 11:00:57 +01:00
nvme-subsys.h hw/block/nvme: support namespace attachment command 2021-03-09 11:00:58 +01:00
nvme.c hw/block/nvme: support Identify NS Attached Controller List 2021-03-09 11:00:58 +01:00
nvme.h hw/block/nvme: support changed namespace asynchronous event 2021-03-09 11:00:58 +01:00
onenand.c
pflash_cfi01.c sysemu: Let VMChangeStateHandler take boolean 'running' argument 2021-03-09 23:13:57 +01:00
pflash_cfi02.c
swim.c
tc58128.c hw/sh4: Add missing license 2021-03-06 16:18:42 +01:00
trace-events hw/block/nvme: support Identify NS Attached Controller List 2021-03-09 11:00:58 +01:00
trace.h
vhost-user-blk.c vhost-user-blk: fix blkcfg->num_queues endianness 2021-03-08 14:55:19 +01:00
virtio-blk.c virtio-blk: Respect discard granularity 2021-03-15 09:48:53 +00:00
xen_blkif.h
xen-block.c xen-block: fix reporting of discard feature 2021-02-15 15:10:14 +01:00