From patchwork Tue Nov 17 09:38:19 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 38604 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 ozlabs.org (Postfix) with ESMTPS id DAFB4B7B64 for ; Tue, 17 Nov 2009 20:53:53 +1100 (EST) Received: from localhost ([127.0.0.1]:60732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAKkx-0006ro-1f for incoming@patchwork.ozlabs.org; Tue, 17 Nov 2009 04:53:51 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAKWF-000299-OZ for qemu-devel@nongnu.org; Tue, 17 Nov 2009 04:38:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAKW9-00026B-B0 for qemu-devel@nongnu.org; Tue, 17 Nov 2009 04:38:37 -0500 Received: from [199.232.76.173] (port=51756 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAKW8-00025y-T9 for qemu-devel@nongnu.org; Tue, 17 Nov 2009 04:38:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:5497) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NAKW8-0007D0-AD for qemu-devel@nongnu.org; Tue, 17 Nov 2009 04:38:32 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAH9cVSB028373 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 17 Nov 2009 04:38:31 -0500 Received: from zweiblum.home.kraxel.org (vpn1-7-195.ams2.redhat.com [10.36.7.195]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with SMTP id nAH9cS3B016541; Tue, 17 Nov 2009 04:38:29 -0500 Received: by zweiblum.home.kraxel.org (Postfix, from userid 500) id C313F70064; Tue, 17 Nov 2009 10:38:20 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Tue, 17 Nov 2009 10:38:19 +0100 Message-Id: <1258450699-24445-10-git-send-email-kraxel@redhat.com> In-Reply-To: <1258450699-24445-1-git-send-email-kraxel@redhat.com> References: <1258450699-24445-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 9/9] default devices: global switch. 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 Add global switch to turn off all default devices. Signed-off-by: Gerd Hoffmann --- qemu-options.hx | 5 +++++ vl.c | 8 ++++++++ 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index b65fd74..70929fa 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1878,6 +1878,11 @@ DEF("incoming", HAS_ARG, QEMU_OPTION_incoming, \ STEXI ETEXI +DEF("nodefaults", 0, QEMU_OPTION_nodefaults, \ + "-nodefaults don't create default devices.\n") +STEXI +ETEXI + #ifndef _WIN32 DEF("chroot", HAS_ARG, QEMU_OPTION_chroot, \ "-chroot dir Chroot to dir just before starting the VM.\n") diff --git a/vl.c b/vl.c index eb07a5b..5954de0 100644 --- a/vl.c +++ b/vl.c @@ -5412,6 +5412,14 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_incoming: incoming = optarg; break; + case QEMU_OPTION_nodefaults: + default_serial = 0; + default_parallel = 0; + default_monitor = 0; + default_vga = 0; + default_net = 0; + default_drive = 0; + break; #ifndef _WIN32 case QEMU_OPTION_chroot: chroot_dir = optarg;