qemu/include/hw/virtio
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
..
vhost-backend.h
vhost-scsi-common.h vhost-scsi: support inflight io track 2020-09-30 19:09:20 +02:00
vhost-scsi.h
vhost-user-blk.h
vhost-user-fs.h vhost-user-fs: add the "bootindex" property 2021-01-13 09:06:37 -05:00
vhost-user-scsi.h
vhost-user-vsock.h
vhost-user.h
vhost-vdpa.h
vhost-vsock-common.h
vhost-vsock.h
vhost.h vhost-blk: set features before setting inflight feature 2020-11-03 16:39:05 -05:00
virtio-access.h
virtio-balloon.h
virtio-blk.h virtio-blk: Respect discard granularity 2021-03-15 09:48:53 +00:00
virtio-bus.h
virtio-crypto.h
virtio-gpu-bswap.h
virtio-gpu-pci.h
virtio-gpu-pixman.h
virtio-gpu.h display/ui: add a callback to indicate GL state is flushed 2021-02-04 15:58:54 +01:00
virtio-input.h
virtio-iommu.h
virtio-mem.h
virtio-mmio.h
virtio-net.h failover: Remove primary_dev member 2020-12-08 13:48:58 -05:00
virtio-pmem.h qapi: Restrict device memory commands to machine code 2020-09-29 15:41:36 +02:00
virtio-rng.h
virtio-scsi.h
virtio-serial.h
virtio.h virtio: skip legacy support check on machine types less than 5.1 2020-09-29 02:15:24 -04:00