On Thu, Feb 25, 2021 at 09:12:39AM +0900, Akihiko Odaki wrote: > 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.od...@gmail.com> > --- > hw/block/virtio-blk.c | 8 +++++++- > hw/core/machine.c | 4 +++- > include/hw/virtio/virtio-blk.h | 1 + > 3 files changed, 11 insertions(+), 2 deletions(-)
Thanks, applied to my block tree: https://gitlab.com/stefanha/qemu/commits/block Stefan
signature.asc
Description: PGP signature