From c219331eb0e2de9acf60a3f2d1dc39cfa6f230fd Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 15 Sep 2009 19:23:28 +0000 Subject: [PATCH] support media=cdrom for if=none Signed-off-by: Gerd Hoffmann Signed-off-by: Blue Swirl --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 0e6133316a..eb01da7c65 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 */ -- 2.11.4.GIT