From patchwork Sat Sep 12 22:44:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?572X5YuH5YiaKFlvbmdnYW5nIEx1byk=?= X-Patchwork-Id: 305580 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8203CC43461 for ; Sat, 12 Sep 2020 22:46:44 +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 C62B0214F1 for ; Sat, 12 Sep 2020 22:46:43 +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="HlSEv2Me" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C62B0214F1 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+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:57886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHEI6-0004HT-RP for qemu-devel@archiver.kernel.org; Sat, 12 Sep 2020 18:46:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHEGM-0002Yr-Ha; Sat, 12 Sep 2020 18:44:54 -0400 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:41576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHEGK-0004Cr-Jq; Sat, 12 Sep 2020 18:44:54 -0400 Received: by mail-pf1-x441.google.com with SMTP id z19so9672837pfn.8; Sat, 12 Sep 2020 15:44: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=IQ7d812VSIoUec+Q2B+SlwB+Yg/vmmgFEu9GLvZG3Xk=; b=HlSEv2MeyFA3uv0X03GCZfKDuRgILt5tpZrry7sWWrAANF5+/PzQ1uJjKzADJ1DM0U efcisDAlGiVh8j3f6eVqSAmrNjpDR1AaApxfbhYz0BafICBhbYZkSP7dg7BDylldc0ee hvzybyV+ZwygzyQGq3t3wVtqv+AV+DTyEG7BTCSclaYX5IXY+TZEOYFRk6SmBGwTD8vs g3K6luIs80oZbVxegXvNP1a2iV5sslI1i0chse4bpun2diZIe2OCBp4dwCVR2+mHf038 0EbX8HlMYAGnIQe2/GZRpsHJp6LqSZQC/etZbbMewMpTxJmuiVMU8cLOPh93W9ttX/An qdxQ== 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=IQ7d812VSIoUec+Q2B+SlwB+Yg/vmmgFEu9GLvZG3Xk=; b=fAEpOzjYQ4T/gRdLqT/GmJxqZ+iaw0/3/q30rjKByRACCy6R87lzdmQM04OcuLjA/s 6D/5BK2U5lN5ZZkNDOElY+AtRjleoRi1vS4PSgul0DSYWILp25As45DVAVK52OmNAT/X owDSzMIVBYX0SwciMHz/GInBc2hvjMT08CXq9IOJ2f/OczJpgXBBGaN/CWjN9AKY+mkx t0NwfZtHWhUWGJhSKQrucGe90iXTgMJOMz1CcFDetYb0ljCMtqi8IfIQAIgtxo1UyQyk yUzyAI9oygV6AJ2MWAL3IqWg20Zz/zn2gIABtIfx1EKtOJhfQlSYguW3cITdx1J299KY LoVw== X-Gm-Message-State: AOAM530Eco5S2eU0A52qv4B73pTtOydNvjlKOdQBxQO2aLmnk0VA/uCB LxHtXnWTNlkYnJ3EnZk8gCnqiGuJviu+srM+5K4= X-Google-Smtp-Source: ABdhPJwQgEGO3iTdc4tShQ9P8SOpCX9L8Fq/p58DQSFYxQvSUIIoycDC1fmQ0TATfohzDED47QoGOw== X-Received: by 2002:a63:f546:: with SMTP id e6mr5927084pgk.7.1599950689320; Sat, 12 Sep 2020 15:44:49 -0700 (PDT) Received: from localhost.localdomain ([103.94.185.75]) by smtp.googlemail.com with ESMTPSA id t10sm4639266pgp.15.2020.09.12.15.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Sep 2020 15:44:48 -0700 (PDT) From: Yonggang Luo To: qemu-devel@nongnu.org Subject: [PATCH v8 00/27] W32, W64 msys2/mingw patches Date: Sun, 13 Sep 2020 06:44:04 +0800 Message-Id: <20200912224431.1428-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::441; envelope-from=luoyonggang@gmail.com; helo=mail-pf1-x441.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+qemu-devel=archiver.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 All cirrus CI are passed Maxim Levitsky (1): rcu: Implement drain_call_rcu Yonggang Luo (26): 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 meson: upgrade meson for execute custom ninjatool under msys2 properly meson: remove --ninja option in configure. Revert "configure: add --ninja option" .cirrus.yml | 95 ++++++++++++----- block/nfs.c | 26 ++++- capstone | 2 +- configure | 77 ++++---------- include/qemu/osdep.h | 2 +- include/qemu/rcu.h | 1 + include/sysemu/os-win32.h | 4 +- meson | 2 +- 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, 514 insertions(+), 215 deletions(-) -- 2.28.0.windows.1