From patchwork Sun Mar 7 10:28:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 47071 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 33B78B7C7E for ; Sun, 7 Mar 2010 21:29:47 +1100 (EST) Received: from localhost ([127.0.0.1]:55638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NoDk0-0003he-1X for incoming@patchwork.ozlabs.org; Sun, 07 Mar 2010 05:29:44 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NoDj9-0003hM-Q3 for qemu-devel@nongnu.org; Sun, 07 Mar 2010 05:28:51 -0500 Received: from [199.232.76.173] (port=55185 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NoDj8-0003hE-0x for qemu-devel@nongnu.org; Sun, 07 Mar 2010 05:28:50 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NoDj6-0001ae-JD for qemu-devel@nongnu.org; Sun, 07 Mar 2010 05:28:49 -0500 Received: from thoth.sbs.de ([192.35.17.2]:20602) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NoDj6-0001a8-3n for qemu-devel@nongnu.org; Sun, 07 Mar 2010 05:28:48 -0500 Received: from mail2.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id o27ASh4d012086; Sun, 7 Mar 2010 11:28:43 +0100 Received: from [139.25.173.8] ([139.25.173.8]) by mail2.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id o27ASeYx021209; Sun, 7 Mar 2010 11:28:43 +0100 Message-ID: <4B937FD8.50807@siemens.com> Date: Sun, 07 Mar 2010 11:28:40 +0100 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Anthony Liguori X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Cc: qemu-devel Subject: [Qemu-devel] [RESEND][PATCH][STABLE] Don't set default monitor when there is a mux'ed one 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 This fixes eg. "-nographic -serial mon:stdio [-serial ...]". Signed-off-by: Jan Kiszka --- vl.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index 10d8e34..bffb796 100644 --- a/vl.c +++ b/vl.c @@ -5369,6 +5369,9 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_serial: add_device_config(DEV_SERIAL, optarg); default_serial = 0; + if (strncmp(optarg, "mon:", 4) == 0) { + default_monitor = 0; + } break; case QEMU_OPTION_watchdog: if (watchdog) { @@ -5387,10 +5390,16 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_virtiocon: add_device_config(DEV_VIRTCON, optarg); default_virtcon = 0; + if (strncmp(optarg, "mon:", 4) == 0) { + default_monitor = 0; + } break; case QEMU_OPTION_parallel: add_device_config(DEV_PARALLEL, optarg); default_parallel = 0; + if (strncmp(optarg, "mon:", 4) == 0) { + default_monitor = 0; + } break; case QEMU_OPTION_debugcon: add_device_config(DEV_DEBUGCON, optarg);