This patch series adds virtio-vsock support to the QEMU guest agent. $ qemu-system-x86_64 -device vhost-vsock-pci,guest-cid=3 ... (guest)# qemu-ga -m vsock-listen -p 3:1234
You can interact with the qga monitor using the nc-vsock utility: https://raw.githubusercontent.com/stefanha/linux/dd0d6a2aa62c0fd6cdc9dbd4b3dc4bfd0828c329/nc-vsock.c $ nc-vsock 3 1234 {'execute': 'guest-info'} ... For more information about virtio-vsock, see http://qemu-project.org/Features/VirtioVsock. Stefan Hajnoczi (4): qga: drop unused sockaddr in accept(2) call qga: drop unnecessary GA_CHANNEL_UNIX_LISTEN checks sockets: add AF_VSOCK support qga: add vsock-listen method qapi-schema.json | 23 +++++- qga/channel-posix.c | 36 +++++++-- qga/channel.h | 1 + qga/main.c | 6 +- util/qemu-sockets.c | 222 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 277 insertions(+), 11 deletions(-) -- 2.7.4