[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4] virtio-blk: Respect discard granularity

From: Stefano Garzarella
Subject: Re: [PATCH v4] virtio-blk: Respect discard granularity
Date: Thu, 25 Feb 2021 09:34:13 +0100

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.odaki@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(-)

Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]