summaryrefslogtreecommitdiff
path: root/hw/block/virtio-blk.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2015-07-22 12:32:25 +0300
committerMichael S. Tsirkin <mst@redhat.com>2015-07-27 11:24:48 +0300
commit09999a5f7fc8e3636feda4358a79a25a09467594 (patch)
tree4eb87a705932b27c47659ba61e551689b34ca96e /hw/block/virtio-blk.c
parentcd4bfbb20d957a480032e2626ef1188b62c74d00 (diff)
downloadqemu-09999a5f7fc8e3636feda4358a79a25a09467594.tar.gz
qemu-09999a5f7fc8e3636feda4358a79a25a09467594.tar.bz2
qemu-09999a5f7fc8e3636feda4358a79a25a09467594.zip
virtio: set any_layout in virtio core
Exceptions: - virtio-blk - compat machine types Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/block/virtio-blk.c')
-rw-r--r--hw/block/virtio-blk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c
index 6aefda4bf2..015b9b5718 100644
--- a/hw/block/virtio-blk.c
+++ b/hw/block/virtio-blk.c
@@ -731,6 +731,7 @@ static uint64_t virtio_blk_get_features(VirtIODevice *vdev, uint64_t features)
virtio_add_feature(&features, VIRTIO_BLK_F_TOPOLOGY);
virtio_add_feature(&features, VIRTIO_BLK_F_BLK_SIZE);
virtio_add_feature(&features, VIRTIO_BLK_F_SCSI);
+ virtio_clear_feature(&features, VIRTIO_F_ANY_LAYOUT);
if (s->conf.config_wce) {
virtio_add_feature(&features, VIRTIO_BLK_F_CONFIG_WCE);