Skip to content

W32, W64 msys2/mingw patches

Yonggang Luo qemu-devel qemu-trivial 7 versions – Applied

Status from this message: Applied to my trivial-patches branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest26 patches 6 repliesApplied
  2. v926 patches 4 repliesSuperseded
  3. v827 patches 42 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v725 patches7 repliesSuperseded
v410 of 24 patches1 replySuperseded
v221 patches33 repliesSuperseded
v116 patches26 repliesSuperseded

Patches in v10 Applied

#Subject and filesSizeRepliesApplied
1/26rcu: Implement drain_call_rcuinclude/qemu/rcu.h util/rcu.c+56 -00 replies
2/26ci: fixes msys2 build by upgrading capstone to 4.0.2capstone configure+2 -20 replies
3/26configure: Fixes ncursesw detection under msys2/mingw and enable cursesconfigure ui/curses.c+20 -150 replies
4/26win32: Simplify gmtime_r detection direct base on _POSIX_THREAD_SAFE_FUNCTIONS.configure include/sysemu/os-win32.h util/oslib-win32.c+3 -370 replies
5/26curses: Fixes curses compiling errors.ui/curses.c+2 -20 replies
6/26tests: disable /char/stdio/* tests in test-char.c on win32tests/test-char.c+17 -100 replies
7/26tests: Fixes test-replication.c on msys2/mingw.tests/test-replication.c+14 -40 replies
8/26tests: test-replication disable /replication/secondary/* on msys2/mingw.tests/test-replication.c+4 -00 replies
9/26osdep: file locking functions are not available on Win32include/qemu/osdep.h+1 -10 replies
10/26meson: Use -b to ignore CR vs. CR-LF issues on Windowstests/qapi-schema/meson.build+1 -10 replies
11/26gcrypt: test_tls_psk_init should write binary file instead text file.tests/crypto-tls-psk-helpers.c+1 -10 replies
12/26tests: Enable crypto tests under msys2/mingwinclude/qemu/osdep.h include/sysemu/os-win32.h tests/crypto-tls-psk-helpers.c +7 more+197 -760 replies
13/26meson: remove empty else and duplicated gio depsmeson.build+0 -61 reply
14/26vmstate: Fixes test-vmstate.c on msys2/mingwtests/test-vmstate.c+2 -10 replies
15/26cirrus: Building freebsd in a single short.cirrus.yml+8 -272 replies
16/26tests: Convert g_free to g_autofree macro in test-logging.ctests/test-logging.c+2 -20 replies
17/26tests: Fixes test-io-channel-socket.c tests under msys2/mingwtests/test-io-channel-socket.c+2 -00 replies
18/26tests: fixes aio-win32 about aio_remove_fd_handler, get it consistence with aio-posix.cutil/aio-win32.c+10 -20 replies
19/26tests: Fixes test-io-channel-file by mask only owner file state mask bitstests/test-io-channel-file.c+11 -10 replies
20/26tests: fix test-util-sockets.ctests/test-util-sockets.c+5 -10 replies
21/26tests: Fixes test-qdev-global-props.ctests/test-qdev-global-props.c+6 -30 replies
22/26rcu: fixes test-logging.c by call drain_call_rcu before rmdir_fulltests/test-logging.c+2 -00 replies
23/26meson: upgrade meson for execute custom ninjatool under msys2 properlymeson+1 -10 replies
24/26ci: Enable msys2 ci in cirrus.cirrus.yml+61 -00 replies
25/26block: Fixes nfs compiling error on msys2/mingwblock/nfs.c+30 -71 reply
26/26block: enable libnfs on msys2/mingw in cirrus.yml.cirrus.yml+1 -00 replies

Reviews trailers per patch

16 of 26 patches have a Reviewed-by or Acked-by.

PatchDaniel P. BerrangéEd MastePhilippe Mathieu-DaudéThomas HuthEric BlakeGerd HoffmannStefan Hajnoczi
1/26R-b
2/26
3/26R-b
4/26
5/26R-b R-b
6/26
7/26R-b
8/26R-b
9/26R-b
10/26R-b R-b
11/26
12/26
13/26R-b
14/26R-b R-b R-b
15/26R-b R-b
16/26R-b R-b
17/26R-b
18/26
19/26R-b
20/26R-b
21/26R-b
22/26
23/26
24/26R-b
25/26
26/26

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v10 thread

Cover letter [PATCH v10 00/26] W32, W64 msys2/mingw patches

V9-V10
* gcrypt: test_tls_psk_init should write binary file instead text file. Split #include <glib/gstdio.h> out, that line not belong this patch

* tests: Enable crypto tests under msys2/mingw
move qemu_socketpair into oslib-win32.c and rename to socketpair move qemu_link into osdep.c
Fixes code style warning

* tests: Fixes test-io-channel-file by mask only owner file state mask bits Update comment place

* ci: Enable msys2 ci in cirrus
Fixes misleading error message

Fixes all checkpatch error messages

V8-V9

* ci: Enable msys2 ci in cirrus
do not install libnfs, libcapstone and jemalloc ident lines properly
Do not install libnfs when the add the msys2 ci,

* Revert "configure: add --ninja option"
Skip this revision

* block: Fixes nfs compiling error on msys2/mingw
Use typedef long long blkcnt_t; for libnfs on msys2/mingw
for futher implemenation, still disable nfs_get_allocated_file_size on win32 as it not working yet, but preserve the possibility implemenation it in futher

* gcrypt: test_tls_psk_init should write binary file instead text file. only fixes the file open mode parameter

* osdep: file locking functions are not available on Win32:
Reword with "Do not declare the following locking functions on Win32:"

* meson: Use -b to ignore CR vs. CR-LF issues on Windows Reword of commit message

* tests: Enable crypto tests under msys2/mingw
Reimplement qemu_socketpair in a simpler way. without thirdparty code

* block: enable libnfs on msys2/mingw in cirrus.yml New commit

* tests: disable /char/stdio/* tests in test-char.c on win32 Needs review

* tests: fixes aio-win32 about aio_remove_fd_handler, get it consistence with= aio-posix.c
Needs review

* rcu: fixes test-logging.c by call drain_call_rcu before rmdir_full Needs review

It first introduce msys2 CI on cirrus by fixes nfs, capstone, curses and disable partial test-char tests.
And then fixes all unit tests failure on msys2/mingw
This fixes the reviews suggested in the mailling list
All cirrus CI are passed

Maxim Levitsky (1):
rcu: Implement drain_call_rcu

Yonggang Luo (25):
ci: fixes msys2 build by upgrading capstone to 4.0.2
configure: Fixes ncursesw detection under msys2/mingw and enable
curses
win32: Simplify gmtime_r detection direct base on
_POSIX_THREAD_SAFE_FUNCTIONS.
curses: Fixes curses compiling errors.
tests: disable /char/stdio/* tests in test-char.c on win32
tests: Fixes test-replication.c on msys2/mingw.
tests: test-replication disable /replication/secondary/* on
msys2/mingw.
osdep: file locking functions are not available on Win32
meson: Use -b to ignore CR vs. CR-LF issues on Windows
gcrypt: test_tls_psk_init should write binary file instead text file.
tests: Enable crypto tests under msys2/mingw
meson: remove empty else and duplicated gio deps
vmstate: Fixes test-vmstate.c on msys2/mingw
cirrus: Building freebsd in a single short
tests: Convert g_free to g_autofree macro in test-logging.c
tests: Fixes test-io-channel-socket.c tests under msys2/mingw
tests: fixes aio-win32 about aio_remove_fd_handler, get it consistence
with aio-posix.c
tests: Fixes test-io-channel-file by mask only owner file state mask
bits
tests: fix test-util-sockets.c
tests: Fixes test-qdev-global-props.c
rcu: fixes test-logging.c by call drain_call_rcu before rmdir_full
meson: upgrade meson for execute custom ninjatool under msys2 properly
ci: Enable msys2 ci in cirrus
block: Fixes nfs compiling error on msys2/mingw
block: enable libnfs on msys2/mingw in cirrus.yml

 .cirrus.yml                      | 97 +++++++++++++++++++++++---------
 block/nfs.c                      | 37 +++++++++---
 capstone                         |  2 +-
 configure                        | 61 ++++++--------------
 include/qemu/osdep.h             |  3 +-
 include/qemu/rcu.h               |  1 +
 include/sysemu/os-win32.h        |  9 ++-
 meson                            |  2 +-
 meson.build                      |  6 --
 tests/crypto-tls-psk-helpers.c   |  6 +-
 tests/crypto-tls-x509-helpers.c  |  6 +-
 tests/crypto-tls-x509-helpers.h  |  5 +-
 tests/qapi-schema/meson.build    |  2 +-
 tests/test-char.c                | 27 +++++----
 tests/test-crypto-tlscredsx509.c | 47 ++++++++--------
 tests/test-crypto-tlssession.c   | 64 ++++++++++++---------
 tests/test-io-channel-file.c     | 12 +++-
 tests/test-io-channel-socket.c   |  2 +
 tests/test-io-channel-tls.c      | 49 +++++++++-------
 tests/test-logging.c             |  6 +-
 tests/test-qdev-global-props.c   |  9 ++-
 tests/test-replication.c         | 22 ++++++--
 tests/test-util-sockets.c        |  6 +-
 tests/test-vmstate.c             |  3 +-
 ui/curses.c                      | 14 ++---
 util/aio-win32.c                 | 12 +++-
 util/osdep.c                     | 16 ++++++
 util/oslib-win32.c               | 78 ++++++++++++++++++++++++-
 util/rcu.c                       | 55 ++++++++++++++++++
 29 files changed, 459 insertions(+), 200 deletions(-)

--=20
2.28.0.windows.1