From: Guoyi Tu <tugy@chinatelecom.cn>
Introduce qemu_socketpair() to create socket pair fd, and
set the close-on-exec flag at default as with the other type
of socket does.
besides, the live update feature is developing, so it's necessary
to do that.
Guoyi Tu (2):
oslib-posix: Introduce qemu_socketpair()
vhost-user: Call qemu_socketpair() instead of socketpair()
hw/display/vhost-user-gpu.c | 3 ++-
hw/virtio/vhost-user.c | 2 +-
include/qemu/sockets.h | 18 ++++++++++++++++++
util/oslib-posix.c | 19 +++++++++++++++++++
4 files changed, 40 insertions(+), 2 deletions(-)