aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2014-06-10 09:03:22 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2014-07-01 09:15:02 +0200
commit8698e110f8aa1cdf8ba1afdda8f2658333a4ab01 (patch)
tree390f2ab4667509a2150f8d871a4d271ef60a0633
parent1351d1ec89eabebc9fdff20451a62c413d7accc1 (diff)
downloadqemu-arm-8698e110f8aa1cdf8ba1afdda8f2658333a4ab01.tar.gz
virtio-blk: remove need for explicit x-data-plane=on option
The x-data-plane=on|off option is no longer useful because the iothread=<iothread> option conveys the same information plus which IOThread to use. Do not delete x-data-plane=on|off yet as a convenience to people using this legacy experimental option. We will drop it in QEMU 2.2. Instead, turn on data-plane when either x-data-plane=on or iothread=<iothread> are used. The following command-line uses data-plane: qemu -device virtio-blk-pci,iothread=foo,drive=drive0 Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r--hw/block/dataplane/virtio-blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c
index f6e1a5d919..4c5ba18122 100644
--- a/hw/block/dataplane/virtio-blk.c
+++ b/hw/block/dataplane/virtio-blk.c
@@ -132,7 +132,7 @@ void virtio_blk_data_plane_create(VirtIODevice *vdev, VirtIOBlkConf *blk,
*dataplane = NULL;
- if (!blk->data_plane) {
+ if (!blk->data_plane && !blk->iothread) {
return;
}