From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnDo7-0004Z9-Hb for qemu-devel@nongnu.org; Mon, 14 Sep 2009 11:49:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnDo2-0004U4-G5 for qemu-devel@nongnu.org; Mon, 14 Sep 2009 11:49:34 -0400 Received: from [199.232.76.173] (port=54810 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnDo2-0004Tp-7J for qemu-devel@nongnu.org; Mon, 14 Sep 2009 11:49:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62047) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MnDo1-0007UB-Mk for qemu-devel@nongnu.org; Mon, 14 Sep 2009 11:49:30 -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 n8EFnTES003161 for ; Mon, 14 Sep 2009 11:49:29 -0400 From: Gerd Hoffmann Date: Mon, 14 Sep 2009 17:49:17 +0200 Message-Id: <1252943364-32705-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1252943364-32705-1-git-send-email-kraxel@redhat.com> References: <1252943364-32705-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 2/9] 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 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 */ -- 1.6.2.5