~vcs-imports/qemu/git

  • Committer: aliguori
  • Date: 2008-11-11 20:54:09 UTC
  • Revision ID: git-v1:f07b6003b6cebaa5404d702ad8aca181580e4d6c
sockets: switch over tcp/telnet/unix serial line to new helper functions (Gerd Hoffman)

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 <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5697 c046a42c-6fe2-441c-8c8c-71466251a162
Filename Latest Rev Last Changed Committer Comment Size
..
commpage.c 2380 18 years ago bellard This patch fixes typos in the commpage definition 12.9 KB Diff Download File
ioctls.h 2323 18 years ago ths Darwin userspace emulation, by Pierre d'Herbemont. 158 bytes Diff Download File
ioctls_types.h 2323 18 years ago ths Darwin userspace emulation, by Pierre d'Herbemont. 100 bytes Diff Download File
machload.c 2323 18 years ago ths Darwin userspace emulation, by Pierre d'Herbemont. 26 KB Diff Download File
main.c 4589 16 years ago bellard variable dynamic translation buffer size git-svn- 35.6 KB Diff Download File
mmap.c 2917 17 years ago ths Spelling fixes, by Stefan Weil. git-svn-id: svn: 12.9 KB Diff Download File
qemu.h 5402 16 years ago blueswir1 Use qemu-log.h git-svn-id: svn://svn.savannah.non 4.9 KB Diff Download File
signal.c 5417 16 years ago blueswir1 Make target_sigaltstack_used static git-svn-id: s 12.2 KB Diff Download File
syscall.c 5415 16 years ago blueswir1 Make ioctl table static git-svn-id: svn://svn.sav 48.2 KB Diff Download File
syscalls.h 2492 17 years ago ths Handling more darwin-user syscalls, by Ilya Shar. 53.8 KB Diff Download File