summaryrefslogtreecommitdiffstats
path: root/blockdev.c
diff options
context:
space:
mode:
authorAlexander Graf2011-03-29 15:29:29 +0200
committerAurelien Jarno2011-04-04 00:34:09 +0200
commit29f82b37e5341b96e514373854411c4fcb935fc0 (patch)
tree50e7681e20bb9bad39ee174f53cf38b710e9d7e3 /blockdev.c
parentOnly build ivshmem when CONFIG_PCI && CONFIG_KVM (diff)
downloadqemu-29f82b37e5341b96e514373854411c4fcb935fc0.tar.gz
qemu-29f82b37e5341b96e514373854411c4fcb935fc0.tar.xz
qemu-29f82b37e5341b96e514373854411c4fcb935fc0.zip
virtio: use generic name when possible
We have two different virtio buses: pci and s390. The abstraction path taken in qemu is to have generic aliases for each device type in the architecture specific qdev devices. So let's make use of these aliases whenever we can and define them whenever we can. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'blockdev.c')
-rw-r--r--blockdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c
index ecf2252d83..bbe92fe196 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -503,7 +503,7 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi)
case IF_VIRTIO:
/* add virtio block device */
opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0);
- qemu_opt_set(opts, "driver", "virtio-blk-pci");
+ qemu_opt_set(opts, "driver", "virtio-blk");
qemu_opt_set(opts, "drive", dinfo->id);
if (devaddr)
qemu_opt_set(opts, "addr", devaddr);