projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ef3ea2
)
virtio: minor cleanup
author
Michael S. Tsirkin
<mst@redhat.com>
Mon, 27 Jul 2015 15:39:37 +0000
(18:39 +0300)
committer
Michael S. Tsirkin
<mst@redhat.com>
Mon, 27 Jul 2015 20:55:27 +0000
(23:55 +0300)
There's no need for blk to set ANY_LAYOUT, it's
done by virtio core as necessary.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/block/virtio-blk.c
patch
|
blob
|
history
diff --git
a/hw/block/virtio-blk.c
b/hw/block/virtio-blk.c
index 44f9b8e4b59f90f236697d8aa0627f055943d024..1556c9cf5a231b8beb6365d5916da6e34227f8ae 100644
(file)
--- a/
hw/block/virtio-blk.c
+++ b/
hw/block/virtio-blk.c
@@
-736,7
+736,6
@@
static uint64_t virtio_blk_get_features(VirtIODevice *vdev, uint64_t features,
error_setg(errp, "Please set scsi=off for virtio-blk devices in order to use virtio 1.0");
return 0;
}
- virtio_add_feature(&features, VIRTIO_F_ANY_LAYOUT);
} else {
virtio_clear_feature(&features, VIRTIO_F_ANY_LAYOUT);
virtio_add_feature(&features, VIRTIO_BLK_F_SCSI);