diff options
author | Changpeng Liu <changpeng.liu@intel.com> | 2018-11-01 15:40:35 -0700 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-12-19 18:23:49 -0500 |
commit | 1f23816b8eb8fdc39990abe166c10a18c16f6b21 (patch) | |
tree | a99e7e4494785aac1277f1848a9db07c443d4812 /drivers/vhost | |
parent | c5c08bed843c2b2c048c16d1296d7631d7c1620e (diff) | |
download | linux-1f23816b8eb8fdc39990abe166c10a18c16f6b21.tar.gz |
virtio_blk: add discard and write zeroes support
In commit 88c85538, "virtio-blk: add discard and write zeroes features
to specification" (https://github.com/oasis-tcs/virtio-spec), the virtio
block specification has been extended to add VIRTIO_BLK_T_DISCARD and
VIRTIO_BLK_T_WRITE_ZEROES commands. This patch enables support for
discard and write zeroes in the virtio-blk driver when the device
advertises the corresponding features, VIRTIO_BLK_F_DISCARD and
VIRTIO_BLK_F_WRITE_ZEROES.
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'drivers/vhost')
0 files changed, 0 insertions, 0 deletions