From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
To: aliguori@us.ibm.com
Cc: ehrhardt@linux.vnet.ibm.com, qemu-devel@nongnu.org,
borntraeger@de.ibm.com
Subject: [Qemu-devel] [PATCH 2 of 4] kvm-userpace: add virtio-console cmdline option
Date: Tue, 13 Jan 2009 16:37:46 +0100 [thread overview]
Message-ID: <fe40d92b5aea81b22c49.1231861066@HelionPrime> (raw)
In-Reply-To: <patchbomb.1231861064@HelionPrime>
# HG changeset patch
# User Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
# Date 1231855940 -3600
# Node ID fe40d92b5aea81b22c493e23ca5dc53a1b514c9a
# Parent 50f40bc14f793a5f4ce6d91c36a3f3b19b507d42
kvm-userpace: add virtio-console cmdline option
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 <ehrhardt@linux.vnet.ibm.com>
---
vl.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/vl.c b/vl.c
--- a/vl.c
+++ b/vl.c
@@ -4062,6 +4062,7 @@ enum {
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 @@ static const QEMUOption qemu_options[] =
{ "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 },
@@ -4968,6 +4970,14 @@ int main(int argc, char **argv, char **e
}
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) {
next prev parent reply other threads:[~2009-01-13 15:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-13 15:37 [Qemu-devel] [PATCH 0 of 4] Add virtio-console support to qemu Christian Ehrhardt
2009-01-13 15:37 ` [Qemu-devel] [PATCH 1 of 4] kvm-userpace: add virtio-console support Christian Ehrhardt
2009-01-15 19:55 ` Anthony Liguori
2009-01-19 10:09 ` Mark McLoughlin
2009-01-13 15:37 ` Christian Ehrhardt [this message]
2009-01-19 10:11 ` [Qemu-devel] [PATCH 2 of 4] kvm-userpace: add virtio-console cmdline option Mark McLoughlin
2009-01-13 15:37 ` [Qemu-devel] [PATCH 3 of 4] kvm-userpace: add virtio-console initializer for x86 Christian Ehrhardt
2009-01-13 15:37 ` [Qemu-devel] [PATCH 4 of 4] kvm-userpace: add virtio-console initializer for powerpc Christian Ehrhardt
2009-01-13 20:27 ` [Qemu-devel] [PATCH 0 of 4] Add virtio-console support to qemu Avi Kivity
2009-01-13 20:34 ` Anthony Liguori
2009-01-13 20:39 ` Avi Kivity
2009-01-13 20:44 ` Anthony Liguori
2009-01-13 20:41 ` Christian Borntraeger
2009-01-13 20:58 ` Avi Kivity
2009-01-13 21:00 ` Avi Kivity
2009-01-15 20:08 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fe40d92b5aea81b22c49.1231861066@HelionPrime \
--to=ehrhardt@linux.vnet.ibm.com \
--cc=aliguori@us.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).