This patch series add AF_VSOCK channel support to QGA on Windows. For that purpose, all common channel logic that can be reused was extracted from channel-posix.c into channel-common.[ch].
Also, a header from kvm-guest-drivers-windows was vendored (and trimmed and adjusted to pass checkpatch). Most importantly, for vsock-listen to actually work on Windows, the viosock driver from a very recent kvm-guest-drivers-windows build (not released yet) is required: the 687c776 commit can be used as a support marker. Polina Vishneva (4): include/system: Add vio_sockets.h with AF_VSOCK support on Windows util/qemu-sockets: Enable AF_VSOCK on Windows qga: Move common channel routines to channel-common qga: Add AF_VSOCK channel support on Windows MAINTAINERS | 1 + docs/interop/qemu-ga.rst | 4 + include/system/vio_sockets.h | 57 ++++++++ meson.build | 15 +- qga/channel-common.c | 115 +++++++++++++++ qga/channel-common.h | 44 ++++++ qga/channel-posix.c | 179 +++++++----------------- qga/channel-win32.c | 263 ++++++++++++++++++++++++++++------- qga/main.c | 6 + qga/meson.build | 3 +- util/qemu-sockets.c | 4 + 11 files changed, 514 insertions(+), 177 deletions(-) create mode 100644 include/system/vio_sockets.h create mode 100644 qga/channel-common.c create mode 100644 qga/channel-common.h -- 2.54.0
