From patchwork Wed Sep 9 16:14:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yonggang Luo X-Patchwork-Id: 1360732 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=TvrcN46P; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4BmnDj0g6dz9sVb for ; Thu, 10 Sep 2020 02:15:33 +1000 (AEST) Received: from localhost ([::1]:35370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kG2ks-0008UL-Ue for incoming@patchwork.ozlabs.org; Wed, 09 Sep 2020 12:15:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kG2kH-0008Sa-5D; Wed, 09 Sep 2020 12:14:53 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:44982) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kG2kF-0006UL-Bl; Wed, 09 Sep 2020 12:14:52 -0400 Received: by mail-pf1-x443.google.com with SMTP id o20so2559534pfp.11; Wed, 09 Sep 2020 09:14:50 -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=jIeh5gdHrmnm38f+PHD1N37cQvuMdOE05JKNMhSgvhM=; b=TvrcN46PeufqU9/M0DemedDPb7Zf8L3Gj2wNo7TeZNsOtIxiESwqZEPQCtligPYcdJ OxaIobFSP0yPVVPVhOPmw4RhgrMKANKk9K2y0O2ORqeFF83UY9eGyaszIaQZtb5EmNdo EceazDUF1j2lPcN3LTEkb9uqMVQ3YMwiEwRydUNNziHta/0eJQs9131OHYVw3Mnau7cH rhWCuxjnw442eiVJzlmyVx5z4RY/661R7o/uS9jO/rGyQvYBBng18bAq+u9TRDGyi3RO 4mryGZwp4C+x3mQ23Q8WD5Yschg3OYNuW2BghkTqTTio5gGpUQenjVwjvArUIZ8GTfHF Ffqw== 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=jIeh5gdHrmnm38f+PHD1N37cQvuMdOE05JKNMhSgvhM=; b=YpGKyhzNaGL760RqcvwRYBB4iXH2zgBDCqNcwqMUmAsrY4c31yFQAwUzTSgKciogfV Kqm5Dd2qwH+lPNg8q/FDmWA3hkP9AGReCKXCRewWk7xSTwGUpdjZ0YKbmN5r/Cp9jYUJ Ktgd6uUx4pL4Nyd2J0iXHNMgG7ifpEnU9P75mi2ccjSvw9UMbXkRL981GMJYsXnGCt2g vx2jOsTdn9eDrTp9YYtolG2fWevbaf3oTJJ6H+lCi5/y+1ygz26YzLUp37gbj6IIlPwb Ut1WdoZn7OxpXVUrjNNbzglRZShVfviys2+GFFE+ZmeJbfVM1d8xtuBil+CGdIHk7Yge e1AQ== X-Gm-Message-State: AOAM530QUH1FW7/BTcAL1RSfQNzHGz74+UsGoC0bmVt41F/5W5rTBtfh NE4vmhXRMnuMCy7m9jNDp/wkFbJtcKFU6jOF X-Google-Smtp-Source: ABdhPJy6SHfPzNvUrbjh7qsnuTGor3M7/P4RijH0FqDGxUWD2BeVXsiQdu2MH9QqO4x739a2MOH1lA== X-Received: by 2002:a65:6714:: with SMTP id u20mr1189467pgf.252.1599668087648; Wed, 09 Sep 2020 09:14:47 -0700 (PDT) Received: from localhost.localdomain ([222.95.248.6]) by smtp.googlemail.com with ESMTPSA id l123sm2506987pgl.24.2020.09.09.09.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 09:14:46 -0700 (PDT) From: Yonggang Luo To: qemu-devel@nongnu.org Subject: [PATCH v4 00/24] W32, W64 msys2/mingw patches Date: Thu, 10 Sep 2020 00:14:20 +0800 Message-Id: <20200909161430.1789-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::443; envelope-from=luoyonggang@gmail.com; helo=mail-pf1-x443.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 , Richard Henderson , Markus Armbruster , Max Reitz , Yonggang Luo , Gerd Hoffmann , Wen Congyang , Li-Wen Hsu , Peter Lieven Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.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 (22): 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: Trying fixes test-replication.c on msys2/mingw. tests: test-replication disable /replication/secondary/* on msys2/mingw. osdep: osdep: file locking functions are not available on Win32 meson: Use -b to ignore CR vs. CR-LF issues on Windows meson: disable crypto tests are empty under win32 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 | 96 ++++++++++++++++++++++++---------- block/file-win32.c | 22 +++++++- block/nfs.c | 26 +++++---- capstone | 2 +- configure | 61 ++++++--------------- include/qemu/osdep.h | 2 +- include/qemu/rcu.h | 1 + include/sysemu/os-win32.h | 4 +- meson.build | 6 --- tests/meson.build | 3 +- tests/qapi-schema/meson.build | 2 +- tests/test-char.c | 8 +-- tests/test-io-channel-file.c | 10 +++- tests/test-io-channel-socket.c | 2 + 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 +++++++++++++++++++ 23 files changed, 248 insertions(+), 121 deletions(-)