From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWpJI-0003AO-Nq for qemu-devel@nongnu.org; Fri, 31 Jul 2009 06:26:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWpJB-00037E-5f for qemu-devel@nongnu.org; Fri, 31 Jul 2009 06:25:57 -0400 Received: from [199.232.76.173] (port=47783 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWpJA-000375-Vo for qemu-devel@nongnu.org; Fri, 31 Jul 2009 06:25:53 -0400 Received: from mx2.redhat.com ([66.187.237.31]:47171) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWpJA-0004lM-DJ for qemu-devel@nongnu.org; Fri, 31 Jul 2009 06:25:52 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6VAPpsv028402 for ; Fri, 31 Jul 2009 06:25:51 -0400 From: Gerd Hoffmann Date: Fri, 31 Jul 2009 12:25:39 +0200 Message-Id: <1249035941-4562-9-git-send-email-kraxel@redhat.com> In-Reply-To: <1249035941-4562-1-git-send-email-kraxel@redhat.com> References: <1249035941-4562-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 08/10] add -drive 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 This adds a host drive, but doesn't implicitly add a guest drive for it. First step in splitting host and guest configuration, check the following patches to see how this can be used ... Signed-off-by: Gerd Hoffmann --- sysemu.h | 1 + vl.c | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/sysemu.h b/sysemu.h index 21e132c..ac18890 100644 --- a/sysemu.h +++ b/sysemu.h @@ -151,6 +151,7 @@ extern unsigned int nb_prom_envs; #endif typedef enum { + IF_NONE, IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO, IF_XEN, IF_COUNT } BlockInterfaceType; diff --git a/vl.c b/vl.c index 12423b2..2024822 100644 --- a/vl.c +++ b/vl.c @@ -1982,6 +1982,9 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque, } else if (!strcmp(buf, "xen")) { type = IF_XEN; max_devs = 0; + } else if (!strcmp(buf, "none")) { + type = IF_NONE; + max_devs = 0; } else { fprintf(stderr, "qemu: unsupported bus type '%s'\n", buf); return NULL; @@ -2195,6 +2198,7 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque, case IF_PFLASH: case IF_MTD: case IF_VIRTIO: + case IF_NONE: break; case IF_COUNT: abort(); -- 1.6.2.5