From patchwork Thu Sep 10 10:30:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yonggang Luo X-Patchwork-Id: 11767411 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0EED059D for ; Thu, 10 Sep 2020 10:32:07 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9FBEF20BED for ; Thu, 10 Sep 2020 10:32:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="E5/EbFaR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9FBEF20BED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:33138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGJs5-0007SL-Mw for patchwork-qemu-devel@patchwork.kernel.org; Thu, 10 Sep 2020 06:32:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGJrO-0006VA-8E; Thu, 10 Sep 2020 06:31:22 -0400 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:42291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGJrM-000342-HV; Thu, 10 Sep 2020 06:31:21 -0400 Received: by mail-pl1-x642.google.com with SMTP id y6so703166plt.9; Thu, 10 Sep 2020 03:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xNA58CMYg3J4BDUUZZNyKBJkTAFEv3p0kfY/snZM+Qs=; b=E5/EbFaR1dccCm6cc964KQO+y1nwMyx1EyY4PmhN7PEjQOdX7ScO3w63MbNKCsu//6 AGC2EZI8wMOgmhY1MT67I+L4qWYJDUPvrgmBXTTXmCJjZNecaUoDmW64Xm0bW0NtLv0Q 2sgk8G6ePBAu/uBo1mkel+KqSfsK1NWojUN8oMCkpV0u21tOZ0F8T9eto+KMOynQjaRd TdkMOpdBet+F13HjLfKAdDyPxmzM7BtNpTBbqPdZ/BNiWS97G/xV2sR2wjZwe6cbidhi GFnBqR8rKwEtTd1Qp+Rm8FKKrc3LBqO9ZmALottKFU+xzrRT59S9PEjnbglXHpl1KIay 1sHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xNA58CMYg3J4BDUUZZNyKBJkTAFEv3p0kfY/snZM+Qs=; b=aof85ISRP8skEk2biTBHhl/z+7uPespoDtGrS50/e+yrYH0D01BHtt8lcYcN994wjM 4PINX0W6qUXpGDhTjtU95aYF+Ec7VIVuH7uEyHRsFZytVa4Fwz5fpV9jOJopo5vlFZhk /yP1vY+sBbrOXrYDhvPl7430bnA4sFdocxFEvGCvI0tWhwMQaz6TlKHhA98/BA4oY6OJ xT9PqfF/nZiGwhtL0jafAcLsg5YG4kyZZZ2qQByXM/z4cR2CMyN8SmR9BrPw9VnB6IK8 PO2mSqm7p18RFvcD5Fx6+9ibA92AvCqRZ3I/oyrch1tOIxVTJ6CCi/K0kRqKP6sWaB88 4GDA== X-Gm-Message-State: AOAM532HrLSaSDKxnUbb87IAgOV4AG+i7CtLd9FCiriI+N7zpaIh15UW 72HsIjM9ykUj+nvjHY++jzqkJb7vL5m/HY1KN4w= X-Google-Smtp-Source: ABdhPJxNoT6H+qFQU/ttLBonV4Wr8XuQXu+fb2NpriVwuRHZo+jEKLunfkEPY4srQ05WPA33P5uxRw== X-Received: by 2002:a17:90a:a60e:: with SMTP id c14mr4832203pjq.31.1599733878216; Thu, 10 Sep 2020 03:31:18 -0700 (PDT) Received: from localhost.localdomain ([222.95.248.6]) by smtp.googlemail.com with ESMTPSA id g21sm2000203pfh.30.2020.09.10.03.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 03:31:17 -0700 (PDT) From: Yonggang Luo To: qemu-devel@nongnu.org Subject: [PATCH v7 00/25] W32, W64 msys2/mingw patches Date: Thu, 10 Sep 2020 18:30:34 +0800 Message-Id: <20200910103059.987-1-luoyonggang@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::642; envelope-from=luoyonggang@gmail.com; helo=mail-pl1-x642.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Ed Maste , Michael Roth , qemu-block@nongnu.org, Stefan Weil , Xie Changlong , Peter Lieven , Markus Armbruster , Max Reitz , Yonggang Luo , Gerd Hoffmann , Wen Congyang , Paolo Bonzini , Richard Henderson , Li-Wen Hsu Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" 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 Kevin Wolf (1): file-win32: Fix "locking" option Maxim Levitsky (1): rcu: Implement drain_call_rcu Yonggang Luo (23): block: Fixes nfs compiling error on msys2/mingw 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 ci: Enable msys2 ci in cirrus .cirrus.yml | 95 ++++++++++++----- block/file-win32.c | 22 +++- block/nfs.c | 32 ++++-- capstone | 2 +- configure | 61 +++-------- include/qemu/osdep.h | 2 +- include/qemu/rcu.h | 1 + include/sysemu/os-win32.h | 4 +- meson.build | 6 -- tests/crypto-tls-psk-helpers.c | 6 +- tests/crypto-tls-x509-helpers.c | 169 ++++++++++++++++++++++++++++++- tests/crypto-tls-x509-helpers.h | 9 +- tests/qapi-schema/meson.build | 2 +- tests/test-char.c | 26 +++-- tests/test-crypto-tlscredsx509.c | 47 +++++---- tests/test-crypto-tlssession.c | 68 +++++++------ tests/test-io-channel-file.c | 10 +- tests/test-io-channel-socket.c | 2 + tests/test-io-channel-tls.c | 51 ++++++---- tests/test-logging.c | 5 +- tests/test-qdev-global-props.c | 6 +- tests/test-replication.c | 22 +++- tests/test-util-sockets.c | 6 +- tests/test-vmstate.c | 3 +- ui/curses.c | 14 +-- util/aio-win32.c | 11 +- util/oslib-win32.c | 2 +- util/rcu.c | 55 ++++++++++ 28 files changed, 536 insertions(+), 203 deletions(-)