From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L00Fw-0008V3-Go for qemu-devel@nongnu.org; Tue, 11 Nov 2008 15:54:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L00Fv-0008UK-78 for qemu-devel@nongnu.org; Tue, 11 Nov 2008 15:54:35 -0500 Received: from [199.232.76.173] (port=38121 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L00Fu-0008UC-Qw for qemu-devel@nongnu.org; Tue, 11 Nov 2008 15:54:34 -0500 Received: from hs-out-0708.google.com ([64.233.178.242]:39813) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L00Fu-0005Zy-LW for qemu-devel@nongnu.org; Tue, 11 Nov 2008 15:54:34 -0500 Received: by hs-out-0708.google.com with SMTP id k27so56816hsc.2 for ; Tue, 11 Nov 2008 12:54:33 -0800 (PST) Message-ID: <4919F103.5020705@codemonkey.ws> Date: Tue, 11 Nov 2008 14:54:27 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 3/3] sockets: switch over tcp/telnet/unix serial line to new helper functions. References: <1225730550-31941-1-git-send-email-kraxel@redhat.com> <1225730550-31941-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1225730550-31941-4-git-send-email-kraxel@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Cc: Gerd Hoffmann Gerd Hoffmann wrote: > This switches the tcp, telnet and unix socket support for character > devices (serial/parallel, ...) to the new socket helpers. Thereby they > gain IPv6 support and also get ability to search for a free tcp port. > Syntax is the same as for vnc, using a to= option, like this: > > -serial tcp:localhost:5000,to=5099,server > > This will check the 5000 -> 5099 port range (inclusive) for a free tcp > port. Likewise you can get auto-allocated unix sockets by specifying an > empty path: > > -serial unix:,server > > qemu will create a randomly named socket in $TMPDIR then. > > tcp also got new "ipv4" and "ipv6" options to make qemu try only the > specified internet protocol version. > > You can use the "info chardev" command added by the first patch in this > series to figure the tcp port / unix socket actually allocated. > > Signed-off-by: Gerd Hoffmann > > Applied. Thanks. Regards, Anthony Liguori