OSDN Git Service

qemu-sockets: add abstract UNIX domain socket support
authorxiaoqiang zhao <zxq_yx_007@163.com>
Sat, 16 May 2020 03:13:25 +0000 (11:13 +0800)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 20 May 2020 09:34:40 +0000 (10:34 +0100)
commit776b97d3605ed0fc94443048fdf988c7725e38a9
tree2d8f731e49c1900ccb7c7f4e1e63d6a9c3590125
parentf2465433b43fb87766d79f42191607dac4aed5b4
qemu-sockets: add abstract UNIX domain socket support

unix_listen/connect_saddr now support abstract address types

two aditional BOOL switches are introduced:
tight: whether to set @addrlen to the minimal string length,
       or the maximum sun_path length. default is TRUE
abstract: whether we use abstract address. default is FALSE

cli example:
-monitor unix:/tmp/unix.socket,abstract,tight=off
OR
-chardev socket,path=/tmp/unix.socket,id=unix1,abstract,tight=on

Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
chardev/char-socket.c
chardev/char.c
qapi/sockets.json
util/qemu-sockets.c