diff options
| author | Stefano Garzarella | 2019-02-21 11:33:09 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2019-02-22 10:42:17 +0100 |
| commit | 20764be0421c3d5d97f84219d55a412f3cd2ca9a (patch) | |
| tree | 3851d6b4d343394815cfa2c63900eb0c7b33b557 /include | |
| parent | virtio-net: make VirtIOFeature usable for other virtio devices (diff) | |
| download | qemu-20764be0421c3d5d97f84219d55a412f3cd2ca9a.tar.gz qemu-20764be0421c3d5d97f84219d55a412f3cd2ca9a.tar.xz qemu-20764be0421c3d5d97f84219d55a412f3cd2ca9a.zip | |
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 f7345b0511..7877ae67ae 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 { |
