From patchwork Tue Dec 8 12:11:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 40620 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 D5E94B7B5F for ; Tue, 8 Dec 2009 23:44:03 +1100 (EST) Received: from localhost ([127.0.0.1]:38185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHzQ8-0001fx-Tc for incoming@patchwork.ozlabs.org; Tue, 08 Dec 2009 07:44:01 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHyvQ-0005ik-FA for qemu-devel@nongnu.org; Tue, 08 Dec 2009 07:12:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHyvK-0005ff-Lj for qemu-devel@nongnu.org; Tue, 08 Dec 2009 07:12:14 -0500 Received: from [199.232.76.173] (port=44199 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHyvK-0005fY-9n for qemu-devel@nongnu.org; Tue, 08 Dec 2009 07:12:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42670) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHyvJ-000835-UJ for qemu-devel@nongnu.org; Tue, 08 Dec 2009 07:12:10 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nB8CC9tN004567 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 8 Dec 2009 07:12:09 -0500 Received: from zweiblum.home.kraxel.org (vpn2-9-91.ams2.redhat.com [10.36.9.91]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nB8CC3k5017084; Tue, 8 Dec 2009 07:12:05 -0500 Received: by zweiblum.home.kraxel.org (Postfix, from userid 500) id 25ECE70115; Tue, 8 Dec 2009 13:11:58 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Tue, 8 Dec 2009 13:11:46 +0100 Message-Id: <1260274314-2906-15-git-send-email-kraxel@redhat.com> In-Reply-To: <1260274314-2906-1-git-send-email-kraxel@redhat.com> References: <1260274314-2906-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Gerd Hoffmann , agraf@suse.de, lcapitulino@redhat.com Subject: [Qemu-devel] [FOR 0.12 PATCH v4 14/22] default devices: add global cmd line option. 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 command line option to disable default devices. Signed-off-by: Gerd Hoffmann --- qemu-options.hx | 5 +++++ vl.c | 6 ++++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 420b7d8..e05b2a0 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1881,6 +1881,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 444f414..69b577f 100644 --- a/vl.c +++ b/vl.c @@ -5471,6 +5471,12 @@ 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; + break; #ifndef _WIN32 case QEMU_OPTION_chroot: chroot_dir = optarg;