OSDN Git Service

virtio-blk: use VIRTIO_BLK_F_WCE and VIRTIO_BLK_F_CONFIG_WCE in virtio1
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Aug 2015 22:53:55 +0000 (15:53 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 8 Sep 2015 10:29:14 +0000 (13:29 +0300)
commit53eab6fd2777dc7cb338519827e23f8bf892903e
tree29fc9d97ab032f82cd49bad8737cd4c6d0ad223c
parent64291f7db5bd8150a74ad2036f1037e6a0428df2
virtio-blk: use VIRTIO_BLK_F_WCE and VIRTIO_BLK_F_CONFIG_WCE in virtio1

VIRTIO_BLK_F_CONFIG_WCE is important in order to achieve good performance
(up to 2x, though more realistically +30-40%) in latency-bound workloads.
However, it was removed by mistake together with VIRTIO_BLK_F_FLUSH.

It will be restored in the next revision of the virtio 1.0 standard, so
do the same in Linux.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/block/virtio_blk.c