OSDN Git Service

vhost-blk: set features before setting inflight feature
authorJin Yu <jin.yu@intel.com>
Thu, 10 Sep 2020 13:48:51 +0000 (21:48 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 30 Oct 2020 10:48:53 +0000 (06:48 -0400)
commitadb29c027341ba095a3ef4beef6aaef86d3a520e
tree23db478817f72c3151128f02c20d7e10aa410eee
parent6a5b19ca63b1795011f53244f2fd9a2cf8189b72
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>
Message-Id: <20200910134851.7817-1-jin.yu@intel.com>
Acked-by: Raphael Norwitz <raphael.norwitz@nutanix.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