diff options
author | Xie Yongji <xieyongji@baidu.com> | 2019-03-20 19:26:43 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-05-20 18:40:02 -0400 |
commit | f3facbe67110089f075aba1091dbc8280304fbaf (patch) | |
tree | fdf2d398e553387458a653aa4dfcc1d8a3ea8457 | |
parent | 96cb54981728f5f2af1706658ad44abfa9df24e7 (diff) | |
download | qemu-f3facbe67110089f075aba1091dbc8280304fbaf.zip qemu-f3facbe67110089f075aba1091dbc8280304fbaf.tar.gz qemu-f3facbe67110089f075aba1091dbc8280304fbaf.tar.bz2 |
vhost-user-blk: Only start vhost-user backend with the first kick
We should only start vhost-user backend at the first kick for
virtio 1.0 transitional devices.
Signed-off-by: Xie Yongji <xieyongji@baidu.com>
Signed-off-by: Zhang Yu <zhangyu31@baidu.com>
Message-Id: <20190320112646.3712-5-xieyongji@baidu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r-- | hw/block/vhost-user-blk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/block/vhost-user-blk.c b/hw/block/vhost-user-blk.c index 700c1dd..39e1adc 100644 --- a/hw/block/vhost-user-blk.c +++ b/hw/block/vhost-user-blk.c @@ -239,8 +239,7 @@ static void vhost_user_blk_handle_output(VirtIODevice *vdev, VirtQueue *vq) VHostUserBlk *s = VHOST_USER_BLK(vdev); int i; - if (!(virtio_host_has_feature(vdev, VIRTIO_F_VERSION_1) && - !virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1))) { + if (!vdev->start_on_kick) { return; } |