vhost-blk: set features before setting inflight feature
commit1b0063b3048af65dfaae6422a572c87db8575a92
authorJin Yu <jin.yu@intel.com>
Tue, 3 Nov 2020 12:36:17 +0000 (3 20:36 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 3 Nov 2020 21:39:05 +0000 (3 16:39 -0500)
tree60e22f00578b6e978be8fe155c08712de591140c
parentb7c1bd9d78480481455678602c9a8505cc8adadd
vhost-blk: set features before setting inflight feature

Virtqueue has split and packed, so before setting inflight,
you need to inform the back-end virtqueue format.

Signed-off-by: Jin Yu <jin.yu@intel.com>
Acked-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Message-Id: <20201103123617.28256-1-jin.yu@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/block/vhost-user-blk.c
hw/virtio/vhost.c
include/hw/virtio/vhost.h