qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 0/4] Enable unix socket support on Windows


From: Bin Meng
Subject: [PATCH v3 0/4] Enable unix socket support on Windows
Date: Sat, 30 Jul 2022 22:50:32 +0800

Support for the unix socket has existed both in BSD and Linux for the
longest time, but not on Windows. Since Windows 10 build 17063 [1],
the native support for the unix socket has come to Windows. Starting
this build, two Win32 processes can use the AF_UNIX address family
over Winsock API to communicate with each other.

[1] https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/

Changes in v3:
- drop patch "util/oslib-win32: Add a helper to get the Windows version"
- drop patch "qga/commands-win32: Use os_get_win_version()"
- drop the run-time check afunix_available()

Changes in v2:
- move #include <afunix.h> to os-win32.h
- define WIN_BUILD_AF_UNIX only when CONFIG_WIN32
- drop #include <afunix.h> as it is now already included in osdep.h
- new patch: tests/unit: Update test-io-channel-socket.c for Windows

Bin Meng (4):
  util/qemu-sockets: Replace the call to close a socket with
    closesocket()
  util/qemu-sockets: Enable unix socket support on Windows
  chardev/char-socket: Update AF_UNIX for Windows
  tests/unit: Update test-io-channel-socket.c for Windows

 meson.build                         |  6 ++++++
 include/sysemu/os-win32.h           |  4 ++++
 chardev/char-socket.c               |  4 +++-
 tests/unit/test-io-channel-socket.c | 16 ++++++++++++++--
 util/qemu-sockets.c                 | 18 +++++++++---------
 5 files changed, 36 insertions(+), 12 deletions(-)

-- 
2.34.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]