diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2019-02-21 11:33:09 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2019-02-22 09:42:17 +0000 |
commit | 20764be0421c3d5d97f84219d55a412f3cd2ca9a (patch) | |
tree | 3851d6b4d343394815cfa2c63900eb0c7b33b557 /include | |
parent | ba550851f5de642b8a1359e2c5c27cbb5a52ae61 (diff) | |
download | qemu-20764be0421c3d5d97f84219d55a412f3cd2ca9a.zip qemu-20764be0421c3d5d97f84219d55a412f3cd2ca9a.tar.gz qemu-20764be0421c3d5d97f84219d55a412f3cd2ca9a.tar.bz2 |
virtio-blk: set config size depending on the features enabled
Starting from DISABLE and WRITE_ZEROES features, we use an array of
VirtIOFeature (as virtio-net) to properly set the config size
depending on the features enabled.
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20190221103314.58500-6-sgarzare@redhat.com
Message-Id: <20190221103314.58500-6-sgarzare@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/virtio/virtio-blk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-blk.h b/include/hw/virtio/virtio-blk.h index f7345b0..7877ae6 100644 --- a/include/hw/virtio/virtio-blk.h +++ b/include/hw/virtio/virtio-blk.h @@ -56,6 +56,7 @@ typedef struct VirtIOBlock { bool dataplane_started; struct VirtIOBlockDataPlane *dataplane; uint64_t host_features; + size_t config_size; } VirtIOBlock; typedef struct VirtIOBlockReq { |