qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Implement "info chardev" command.
Date: Wed, 22 Oct 2008 10:20:53 +0200	[thread overview]
Message-ID: <48FEE265.1010203@redhat.com> (raw)
In-Reply-To: <48FDEF3F.70807@codemonkey.ws>

Anthony Liguori wrote:
> Gerd Hoffmann wrote:
>>   Hi,
>>
>> This patch makes qemu keep track of the character devices in use and
>> implements a "info chardev" monitor command to print a list.
>>   
> 
> Is it better to enumerate all chardevs or to provide info functions for
> each type of chardev (i.e. 'info serial', 'info parallel').  I don't
> have a strong feeling either way.

I did it this way because
 (a) It is easier to implement
 (b) Covers everything, not just serial and parallel.  There are also
     usb serial dongles, and it also lists gdb & monitor.  And in case
     we get more in the future, it is already covered ;)
 (c) I prefer to keep the number of info commands low.

> The only thing I'd suggest about this patch is that if you're going to
> print pty:/dev/pty/3, then you should also support that syntax for
> specifying a pty.  Otherwise, there's a lack of symmetry.

It's not a bug, it's a feature.

First, when allocating a pts, the kernel hands out the first free one.
There simply is no way to specify one, thus I simply can't support a
pty:/dev/pts/$nr syntax on the command line.

Second, I think even for other types it would be useful to support this
asymmetric syntax.  Allow "unix:" without specifying a path, then have
qemu allocate a random one in $TMPDIR and report the path via monitor.
Likewise for tcp ports.  That allows moving the ressource allocation
from the management application into qemu, closing race windows along
the way.  No patches yet though.

Oh, the same thing for vnc ports is still on the todo list too.
Remember the "-vnc :1,to=10" feature discussed a few weeks (months?) ago
on the list?

cheers,
  Gerd

      reply	other threads:[~2008-10-22  8:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-16 14:57 [Qemu-devel] [PATCH] Implement "info chardev" command Gerd Hoffmann
2008-10-21 15:03 ` Anthony Liguori
2008-10-22  8:20   ` Gerd Hoffmann [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=48FEE265.1010203@redhat.com \
    --to=kraxel@redhat.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).