OSDN Git Service

virtio-blk: set config size depending on the features enabled
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 21 Feb 2019 10:33:09 +0000 (11:33 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 22 Feb 2019 09:42:17 +0000 (09:42 +0000)
commit20764be0421c3d5d97f84219d55a412f3cd2ca9a
tree3851d6b4d343394815cfa2c63900eb0c7b33b557
parentba550851f5de642b8a1359e2c5c27cbb5a52ae61
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>
hw/block/virtio-blk.c
include/hw/virtio/virtio-blk.h