From: "Daniel P. Berrange" <berrange@redhat.com>
To: Avi Kivity <avi@qumranet.com>
Cc: Xen Development Mailing List <xen-devel@lists.xensource.com>,
qemu-devel@nongnu.org
Subject: Re: [Xen-devel] Re: [Qemu-devel] vnc port selection
Date: Thu, 21 Aug 2008 20:52:40 +0100 [thread overview]
Message-ID: <20080821195240.GA1531@redhat.com> (raw)
In-Reply-To: <48ADB43D.9050401@qumranet.com>
On Thu, Aug 21, 2008 at 09:30:21PM +0300, Avi Kivity wrote:
> Gerd Hoffmann wrote:
> > Hi folks,
> >
> >Xen's qemu-dm version has a '-vncunused' command line switch which asks
> >the internal vnc server to pick any unused tcp port to listen on. The
> >actual port is communicated to the outside world via xenstore.
> >
> >I'm looking for a reasonable way to implement that functionality in
> >upstream qemu. First, I think it shouldn't be a separate command line
> >switch but an option for the existion -vnc switch. Second, we need a
> >way to communicate the port picked which isn't xen-specific. Obvious
> >choice is a monitor info subcommand.
> >
> >Comments? Other suggestions?
> >
> >
>
> Presumably -vncunused is passed by the management application, which
> knows about all domains. Can't it figure out an unused port and pass it on?
>
Yes & no. Yes, we do this in libvirt, but it open a race condition
unless you pass the actual file descriptor to QEMU. In addition when
we add IPv6 support to QEMU, you will actally have multiple sockets
you need to listen on. It will make it far easier if we just do the
right thing in QEMU, based on a command line flag.
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
prev parent reply other threads:[~2008-08-21 19:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-21 16:37 [Qemu-devel] vnc port selection Gerd Hoffmann
2008-08-21 17:31 ` Anthony Liguori
2008-08-21 14:34 ` acue
2008-08-21 18:30 ` Avi Kivity
2008-08-21 18:35 ` Anthony Liguori
2008-08-21 19:53 ` [Xen-devel] " Daniel P. Berrange
2008-08-24 8:54 ` Avi Kivity
2008-08-24 10:01 ` Jamie Lokier
2008-08-26 10:15 ` [Xen-devel] " Ian Jackson
2008-08-21 19:52 ` Daniel P. Berrange [this message]
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=20080821195240.GA1531@redhat.com \
--to=berrange@redhat.com \
--cc=avi@qumranet.com \
--cc=qemu-devel@nongnu.org \
--cc=xen-devel@lists.xensource.com \
/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).