mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
cab27afa10
commit
25b1d45a19
3 changed files with 36 additions and 18 deletions
|
@ -35,7 +35,6 @@ typedef struct VHostUserBlk {
|
|||
uint16_t num_queues;
|
||||
uint32_t queue_size;
|
||||
uint32_t config_wce;
|
||||
uint32_t config_ro;
|
||||
struct vhost_dev dev;
|
||||
VhostUserState *vhost_user;
|
||||
} VHostUserBlk;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue