qemu-devel
[Top][All Lists]
Advanced

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

[PATCH v4 00/11] QMP command to import win32 sockets


From: marcandre . lureau
Subject: [PATCH v4 00/11] QMP command to import win32 sockets
Date: Mon, 6 Mar 2023 16:27:40 +0400

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Hi,

The series focuses on 'add_client' win32 support, by limiting its scope to
sockets and adding a new command to import sockets. This enables vnc-display
test on win32, exercising the new code paths.

(a follow up series will add dbus display support on win32, with tests using
this socket import method)

v4:
- back to new get-win32-socket command, as in v1
- drop qapi conditional fixes
- add "QMP/HMP: only actually implement getfd on CONFIG_POSIX"
- add "qapi/gen: run C code through clang-format, if possible"
- rebased on pending fd/socket mix series

v3:
- drop "tests: fix test-io-channel-command on win32", not good enough
- include "char: do not double-close fd when failing to add client"
- add "monitor: release the lock before calling close()"
- rebase after recent QMP code move

v2:
- replace the propose new command in v1, with 'wsa-info' argument in 'getfd'
- fix qapi/qmp for commands/events with optional arguments
- rebase, and tags

Based-on: <20230221124802.4103554-1-marcandre.lureau@redhat.com>
("[PATCH v3 00/16] win32: do not mix SOCKET and fd space")

Marc-André Lureau (11):
  tests: fix path separator, use g_build_filename()
  char: do not double-close fd when failing to add client
  tests/docker: fix a win32 error due to portability
  osdep: implement qemu_socketpair() for win32
  qmp: 'add_client' actually expects sockets
  monitor: release the lock before calling close()
  qapi/gen: run C code through clang-format, if possible
  qmp: add 'get-win32-socket'
  libqtest: make qtest_qmp_add_client work on win32
  qtest: enable vnc-display test on win32
  QMP/HMP: only actually implement getfd on CONFIG_POSIX

 qapi/misc.json                       |  35 ++++++++-
 include/qemu/sockets.h               |   2 -
 tests/qtest/libqtest.h               |   5 +-
 chardev/char.c                       |   2 -
 monitor/fds.c                        |  77 +++++++++++++++----
 monitor/hmp-cmds.c                   |   2 +
 monitor/qmp-cmds.c                   |   7 ++
 tests/qtest/libqtest.c               |  18 ++++-
 tests/qtest/vnc-display-test.c       |  12 +--
 tests/unit/test-io-channel-command.c |   2 +-
 util/oslib-win32.c                   | 110 +++++++++++++++++++++++++++
 hmp-commands.hx                      |   2 +
 scripts/qapi/gen.py                  |  15 +++-
 scripts/qapi/introspect.py           |   2 +
 tests/docker/docker.py               |   6 +-
 15 files changed, 263 insertions(+), 34 deletions(-)

-- 
2.39.2




reply via email to

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