From patchwork Mon Sep 14 15:49:17 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 33585 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 1D4DCB7C3E for ; Tue, 15 Sep 2009 01:52:29 +1000 (EST) Received: from localhost ([127.0.0.1]:38677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnDqr-0006pb-T3 for incoming@patchwork.ozlabs.org; Mon, 14 Sep 2009 11:52:25 -0400 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 Received: from zweiblum.home.kraxel.org (vpn1-5-94.ams2.redhat.com [10.36.5.94]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with SMTP id n8EFnQ4u020063; Mon, 14 Sep 2009 11:49:27 -0400 Received: by zweiblum.home.kraxel.org (Postfix, from userid 500) id 3EF35700E3; Mon, 14 Sep 2009 17:49:24 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 2/9] support media=cdrom for if=none X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 */