From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNYUE-0003O1-JG for qemu-devel@nongnu.org; Thu, 15 Jan 2009 15:06:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNYUD-0003Nm-Tw for qemu-devel@nongnu.org; Thu, 15 Jan 2009 15:06:42 -0500 Received: from [199.232.76.173] (port=48244 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNYUD-0003Nh-Nv for qemu-devel@nongnu.org; Thu, 15 Jan 2009 15:06:41 -0500 Received: from savannah.gnu.org ([199.232.41.3]:51065 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LNYUD-0001PY-8q for qemu-devel@nongnu.org; Thu, 15 Jan 2009 15:06:41 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LNYUC-00025C-NF for qemu-devel@nongnu.org; Thu, 15 Jan 2009 20:06:40 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LNYUC-000258-HH for qemu-devel@nongnu.org; Thu, 15 Jan 2009 20:06:40 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Thu, 15 Jan 2009 20:06:40 +0000 Subject: [Qemu-devel] [6317] add virtio-console cmdline option (Christian Ehrhardt) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6317 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6317 Author: aliguori Date: 2009-01-15 20:06:40 +0000 (Thu, 15 Jan 2009) Log Message: ----------- add virtio-console cmdline option (Christian Ehrhardt) This patch adds the typical qemu console command line switch to the virtio console. using -virtioconsole ARG it can now be specified what output a guest hvc should be redirected to. Signed-off-by: Christian Ehrhardt Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/vl.c Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2009-01-15 20:05:50 UTC (rev 6316) +++ trunk/vl.c 2009-01-15 20:06:40 UTC (rev 6317) @@ -4062,6 +4062,7 @@ QEMU_OPTION_echr, QEMU_OPTION_monitor, QEMU_OPTION_serial, + QEMU_OPTION_virtiocon, QEMU_OPTION_parallel, QEMU_OPTION_loadvm, QEMU_OPTION_full_screen, @@ -4171,6 +4172,7 @@ { "echr", HAS_ARG, QEMU_OPTION_echr }, { "monitor", HAS_ARG, QEMU_OPTION_monitor }, { "serial", HAS_ARG, QEMU_OPTION_serial }, + { "virtioconsole", HAS_ARG, QEMU_OPTION_virtiocon }, { "parallel", HAS_ARG, QEMU_OPTION_parallel }, { "loadvm", HAS_ARG, QEMU_OPTION_loadvm }, { "full-screen", 0, QEMU_OPTION_full_screen }, @@ -4969,6 +4971,14 @@ serial_devices[serial_device_index] = optarg; serial_device_index++; break; + case QEMU_OPTION_virtiocon: + if (virtio_console_index >= MAX_VIRTIO_CONSOLES) { + fprintf(stderr, "qemu: too many virtio consoles\n"); + exit(1); + } + virtio_consoles[virtio_console_index] = optarg; + virtio_console_index++; + break; case QEMU_OPTION_parallel: if (parallel_device_index >= MAX_PARALLEL_PORTS) { fprintf(stderr, "qemu: too many parallel ports\n");