vhost-user-blk: start vhost when guest kicks
commit110b9463d5c820120c8311db79f55a64c9d81ebe
authorYongji Xie <elohimes@gmail.com>
Wed, 6 Jun 2018 13:24:48 +0000 (6 21:24 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 5 Nov 2018 18:24:02 +0000 (5 13:24 -0500)
treeaf937b1123c66d0e2cb48e849d443ced4d8407ce
parentc28b535d083d0a263d38d9ceeada83cdae8c64f0
vhost-user-blk: start vhost when guest kicks

Some old guests (before commit 7a11370e5: "virtio_blk: enable VQs early")
kick virtqueue before setting VIRTIO_CONFIG_S_DRIVER_OK. This violates
the virtio spec. But virtio 1.0 transitional devices support this behaviour.
So we should start vhost when guest kicks in this case.

Signed-off-by: Yongji Xie <xieyongji@baidu.com>
Signed-off-by: Chai Wen <chaiwen@baidu.com>
Signed-off-by: Ni Xun <nixun@baidu.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/block/vhost-user-blk.c