From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mm5JG-0004DO-9K for qemu-devel@nongnu.org; Fri, 11 Sep 2009 08:33:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mm5JB-00045C-3p for qemu-devel@nongnu.org; Fri, 11 Sep 2009 08:33:01 -0400 Received: from [199.232.76.173] (port=49290 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mm5JA-00044r-Ms for qemu-devel@nongnu.org; Fri, 11 Sep 2009 08:32:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42347) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mm5JA-000461-90 for qemu-devel@nongnu.org; Fri, 11 Sep 2009 08:32:56 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8BCWtkD021903 for ; Fri, 11 Sep 2009 08:32:55 -0400 From: Gerd Hoffmann Date: Fri, 11 Sep 2009 14:32:25 +0200 Message-Id: <1252672351-12937-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1252672351-12937-1-git-send-email-kraxel@redhat.com> References: <1252672351-12937-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 2/8] support media=cdrom for if=none List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- vl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index c6c6a6b..316dc49 100644 --- a/vl.c +++ b/vl.c @@ -2187,6 +2187,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) { @@ -2207,7 +2208,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 */ -- 1.6.2.5