]> git.proxmox.com Git - qemu.git/commit - qapi-schema.json
chardev: add socket chardev support to chardev-add (qmp)
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 20 Dec 2012 12:53:12 +0000 (13:53 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 16 Jan 2013 05:58:54 +0000 (06:58 +0100)
commitf6bd5d6ec514939c421fcd411d1a39bc7dad0948
tree3bdb263875bf66fc8ca842e16d42eebf124509f8
parent88a946d32dd9e4c6c0ad56e19f2822bd5c8b416e
chardev: add socket chardev support to chardev-add (qmp)

qemu_chr_open_socket is split into two functions.  All initialization
after creating the socket file handler is split away into the new
qemu_chr_open_socket_fd function.

chr->filename doesn't get filled from QemuOpts any more.  Qemu gathers
the information using getsockname and getnameinfo instead.  This way it
will also work correctly for file handles passed via file descriptor
passing.

Finally qmp_chardev_open_socket() is the actual qmp hotplug
implementation which basically just calls socket_listen or
socket_connect and the new qemu_chr_open_socket_fd function.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
qapi-schema.json
qemu-char.c