Re: [PATCH v2 2/3] conf: support for virtio-blk-pci discard option

2021-09-08 Thread Peter Krempa
On Wed, Sep 08, 2021 at 11:56:02 +0200, Peter Krempa wrote: > On Tue, Sep 07, 2021 at 15:12:09 +0800, yuxiat...@huawei.com wrote: > > From: yuxiating > > > > DISCARD and WRITE_ZEROES features for machine type >= 4.0 is enabled by > > default > > since 5c81161f8041("virtio-blk: add "discard" and

Re: [PATCH v2 2/3] conf: support for virtio-blk-pci discard option

2021-09-08 Thread Peter Krempa
On Tue, Sep 07, 2021 at 15:12:09 +0800, yuxiat...@huawei.com wrote: > From: yuxiating > > DISCARD and WRITE_ZEROES features for machine type >= 4.0 is enabled by > default > since 5c81161f8041("virtio-blk: add "discard" and "write-zeroes" properties). > Virtio_blk kernel driver has a bug that

[PATCH v2 2/3] conf: support for virtio-blk-pci discard option

2021-09-07 Thread yuxiating
From: yuxiating DISCARD and WRITE_ZEROES features for machine type >= 4.0 is enabled by default since 5c81161f8041("virtio-blk: add "discard" and "write-zeroes" properties). Virtio_blk kernel driver has a bug that causes memory corruption in virtblk_setup_discard_write_zeroes(); af822aa68fbd