summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-09-15 19:23:28 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-15 19:23:28 +0000
commitc219331eb0e2de9acf60a3f2d1dc39cfa6f230fd (patch)
treecb8cd73fbdc812a7d3818f4f6eeeb7222a72ea7d /vl.c
parent71077c1cb07c9c73ec279c119d526d2600132ac9 (diff)
downloadhqemu-c219331eb0e2de9acf60a3f2d1dc39cfa6f230fd.zip
hqemu-c219331eb0e2de9acf60a3f2d1dc39cfa6f230fd.tar.gz
support media=cdrom for if=none
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 0e61333..eb01da7 100644
--- a/vl.c
+++ b/vl.c
@@ -2176,6 +2176,7 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque,
case IF_IDE:
case IF_SCSI:
case IF_XEN:
+ case IF_NONE:
switch(media) {
case MEDIA_DISK:
if (cyls != 0) {
@@ -2196,7 +2197,6 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque,
break;
case IF_PFLASH:
case IF_MTD:
- case IF_NONE:
break;
case IF_VIRTIO:
/* add virtio block device */
OpenPOWER on IntegriCloud