From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v3 2/5] Add vmchannel command line option.
Date: Thu, 08 Jan 2009 13:21:01 -0600 [thread overview]
Message-ID: <4966521D.1020706@codemonkey.ws> (raw)
In-Reply-To: <20090108095544.12548.21251.stgit@dhcp-1-237.tlv.redhat.com>
Gleb Natapov wrote:
> Signed-off-by: Gleb Natapov <gleb@redhat.com>
> ---
>
> vl.c | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
> 1 files changed, 74 insertions(+), 1 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index 959be62..c076375 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -207,6 +207,13 @@ static int full_screen = 0;
> static int no_frame = 0;
> #endif
> int no_quit = 0;
> +#if defined(CONFIG_SLIRP)
> +#define MAX_VMCHANNEL_DEVICES 4
> +struct VMChannel {
> + CharDriverState *hd;
> + int port;
> +} vmchannel_hds[MAX_VMCHANNEL_DEVICES];
> +#endif
> CharDriverState *serial_hds[MAX_SERIAL_PORTS];
> CharDriverState *parallel_hds[MAX_PARALLEL_PORTS];
> #ifdef TARGET_I386
> @@ -3948,6 +3955,9 @@ static void help(int exitcode)
> "-monitor dev redirect the monitor to char device 'dev'\n"
> "-serial dev redirect the serial port to char device 'dev'\n"
> "-parallel dev redirect the parallel port to char device 'dev'\n"
> +#if defined(CONFIG_SLIRP)
> + "-vmchannel di:DI,dev redirect the vmchannel device with device id DI, to char device 'dev'\n"
> +#endif
> "-pidfile file Write PID to 'file'\n"
> "-S freeze CPU at startup (use 'c' to start execution)\n"
> "-s wait gdb connection to port\n"
> @@ -4062,6 +4072,9 @@ enum {
> QEMU_OPTION_monitor,
> QEMU_OPTION_serial,
> QEMU_OPTION_parallel,
> +#if defined(CONFIG_SLIRP)
> + QEMU_OPTION_vmchannel,
> +#endif
>
I think this would make more sense as an option to -net user. For instance:
-net user,port=1024,chardev=unix:foo.sock
Not the best syntax, but you get the idea. What do you think?
It may be useful to use this functionality for other things too.
Regards,
Anthony Liguroi
next prev parent reply other threads:[~2009-01-08 19:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-08 9:55 [Qemu-devel] [PATCH v3 0/5] Marry slirp and qemu character device Gleb Natapov
2009-01-08 9:55 ` [Qemu-devel] [PATCH v3 1/5] Redirect slirp traffic to/from " Gleb Natapov
2009-01-08 9:55 ` [Qemu-devel] [PATCH v3 2/5] Add vmchannel command line option Gleb Natapov
2009-01-08 19:21 ` Anthony Liguori [this message]
2009-01-08 19:35 ` Daniel P. Berrange
2009-01-08 19:55 ` Anthony Liguori
2009-01-08 9:55 ` [Qemu-devel] [PATCH v3 3/5] Add slirp_restrict option Gleb Natapov
2009-01-08 9:55 ` [Qemu-devel] [PATCH v3 4/5] Add "restrict" and "ip" option to "user" net option Gleb Natapov
2009-01-08 9:55 ` [Qemu-devel] [PATCH v3 5/5] Add support for vmchannel socket migration Gleb Natapov
2009-01-08 19:27 ` [Qemu-devel] [PATCH v3 0/5] Marry slirp and qemu character device Anthony Liguori
2009-01-08 21:14 ` Gleb Natapov
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=4966521D.1020706@codemonkey.ws \
--to=anthony@codemonkey.ws \
--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).