summaryrefslogtreecommitdiff
path: root/drivers/vhost
diff options
context:
space:
mode:
authorChangpeng Liu <changpeng.liu@intel.com>2018-11-01 15:40:35 -0700
committerMichael S. Tsirkin <mst@redhat.com>2018-12-19 18:23:49 -0500
commit1f23816b8eb8fdc39990abe166c10a18c16f6b21 (patch)
treea99e7e4494785aac1277f1848a9db07c443d4812 /drivers/vhost
parentc5c08bed843c2b2c048c16d1296d7631d7c1620e (diff)
downloadlinux-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