From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCrEj-0006sn-2J for qemu-devel@nongnu.org; Tue, 24 Nov 2009 03:59:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCrEe-0006nd-34 for qemu-devel@nongnu.org; Tue, 24 Nov 2009 03:58:59 -0500 Received: from [199.232.76.173] (port=51448 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCrEd-0006nX-Mm for qemu-devel@nongnu.org; Tue, 24 Nov 2009 03:58:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2476) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NCrEd-0000tF-3r for qemu-devel@nongnu.org; Tue, 24 Nov 2009 03:58:55 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAO8wsFh028866 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 24 Nov 2009 03:58:54 -0500 From: Gerd Hoffmann Date: Tue, 24 Nov 2009 09:58:42 +0100 Message-Id: <1259053124-10471-9-git-send-email-kraxel@redhat.com> In-Reply-To: <1259053124-10471-1-git-send-email-kraxel@redhat.com> References: <1259053124-10471-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 08/10] default devices: add global cmd line option. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann 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 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 eb1d23e..6b00c2c 100644 --- a/vl.c +++ b/vl.c @@ -5413,6 +5413,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; -- 1.6.2.5