]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost-blk: turn on pre-defined RO feature bit
authorChangpeng Liu <changpeng.liu@intel.com>
Tue, 29 May 2018 01:24:35 +0000 (09:24 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 1 Jun 2018 16:20:38 +0000 (19:20 +0300)
commit25b1d45a1975fd8624c37b5bf42e8502ccf53460
tree142b8efd36a8abb4ff8a44e651bc928380fc935c
parentcab27afa10c241cb99df41f770b29cebd6a91e73
vhost-blk: turn on pre-defined RO feature bit

Read only feature shouldn't be negotiable, because if the
backend device reported Read only feature supported, QEMU
host driver shouldn't change backend's RO attribute. While
here, also enable the vhost-user-blk test utility to test
RO feature.

Signed-off-by: Changpeng Liu <changpeng.liu@intel.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>
contrib/vhost-user-blk/vhost-user-blk.c
hw/block/vhost-user-blk.c
include/hw/virtio/vhost-user-blk.h