virtio-blk: add host_features field in VirtIOBlock
commitbbe8bd4d85d80442f87774d7bffaca11f2c02b9b
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 21 Feb 2019 10:33:06 +0000 (21 11:33 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 22 Feb 2019 09:42:16 +0000 (22 09:42 +0000)
tree46d354fd1d29ce5f3299a702dcd6937135527deb
parent00f639fb8f3e2b34f0e9767619cb16604a844a5f
virtio-blk: add host_features field in VirtIOBlock

Since configurable features for virtio-blk are growing, this patch
adds host_features field in the struct VirtIOBlock. (as in virtio-net)
In this way, we can avoid to add new fields for new properties and
we can directly set VIRTIO_BLK_F* flags in the host_features.

We update "config-wce" and "scsi" property definition to use the new
host_features field without change the behaviour.

Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20190221103314.58500-3-sgarzare@redhat.com
Message-Id: <20190221103314.58500-3-sgarzare@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/virtio-blk.c
include/hw/virtio/virtio-blk.h