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

2021-03-08 Thread Stefan Hajnoczi
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 >

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

2021-02-25 Thread Stefano Garzarella
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

[PATCH v4] virtio-blk: Respect discard granularity

2021-02-24 Thread Akihiko Odaki
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