From patchwork Tue Jun 16 12:53:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 188019 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp3621935ilo; Tue, 16 Jun 2020 05:53:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHHoHXZNFOvW6rxszT2B2Oe5wKFC37gY5OUALeJDKttCiDsm/U3qgQD4QJR7ql1NMhS13A X-Received: by 2002:a25:9d0f:: with SMTP id i15mr3840235ybp.508.1592312030316; Tue, 16 Jun 2020 05:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592312030; cv=none; d=google.com; s=arc-20160816; b=ZUJOIWn58tmkxrpzkszWWOJbkpxu2tN/XWd5qWxdFoRqNJSGEk4SwVCci4k3S6oqGQ lK5QTNlaSIQQe1WS9Zrkv7crCc5OCQCS/6bqndmsnzs/jxFcyOcQ+spiL2YqEW0VRGyR d9WGViMnKkh2E98NE9nO6pVkbCNbZPHoY37x4YXNL7yZkHNVXVnQN89wgtsMXSdmhrnS KWWhtoOILi2qmYnkV3CnGBHfqai3WhrXsxxQhivn9AQhPvQtJxZpoIUvMsqIkJ0Uv8pJ x85imKydlUcRG/s91oCYsLxGThfWKiSENq4JabbSkFjHeACsMxGXQYBR6MmMV3Hs1JaF iAhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=sZyRuWat06D3xG0H55RrQhbE1KyrtVpUifQMuvnHSdo=; b=yWNoJWeM9dZdPHXAzr3dwODVMzDf5rhRQsJprMA0uc9bE17hJAK4HR6+8o7C1TFsbl a9a3iPtgnScc2AAr9TeDvT5kScGQIZikO4LHzZ8L+eS4Tuay2zzjkrnBsOMDYcY/9LLN B7xtzeGy0o+sJzsUyQL3Q7LtFDzjK7ykZwJ+Q30Zau3aQlKfRxCB0yDvwjN5pFPNT2E6 o27nj9+n1thC28oF8HScHEWx+uLjLJ/rxKJhIUegeZhRhWlDWMe9k5isYQv+3a0188oC hMFpdUEpNeAq6ILBTpCTw1uj94DM1klSo7keVKYi6sP408rotQEf+BIq+G+BTKkgvbkT M/zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=PNro4S+G; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v69si716293ybe.351.2020.06.16.05.53.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Jun 2020 05:53:50 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=PNro4S+G; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlB65-0003hc-J7 for patch@linaro.org; Tue, 16 Jun 2020 08:53:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlB5p-0003hM-Fm for qemu-devel@nongnu.org; Tue, 16 Jun 2020 08:53:33 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:46654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlB5n-00005G-GA for qemu-devel@nongnu.org; Tue, 16 Jun 2020 08:53:33 -0400 Received: by mail-wr1-x42a.google.com with SMTP id x6so20612613wrm.13 for ; Tue, 16 Jun 2020 05:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sZyRuWat06D3xG0H55RrQhbE1KyrtVpUifQMuvnHSdo=; b=PNro4S+Gp2Ru/HE+Vyrf6iTagLMANWwrro71adF1P/r4Q5/l4X3aX1m0pkmhY+Oult bnMm4/aaB1AP0zanNFVSxd5xV8IZ9FfaKRQuPLfgpB1jSJfDUbYS14u9dCfdalWLH0i0 VhbK4nrjBG9FleZPBnp+RoYKrm1LatRdzFAiIt2VWaoc11mSqL3Azu6OUEkcWE2D1jnI 6JiMtFIKS7S56WmD8VoCCYhMccrBxxhFpxT7apTq3heOoBYPHz5LrdiVVhO5S9Bii+9J dS5GfIDjx7AO3EFjdjfaAI7N3jfNsrgK7/UTHo1Vw6LX1u7Lnxp+NLMrXln5cAgCd60Y rC9w== 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=sZyRuWat06D3xG0H55RrQhbE1KyrtVpUifQMuvnHSdo=; b=rW6t6XmgAmq2PFV31pBqYa2/yUWn69JsZSuuzZYcU2TY/OLp7+fPpbW4rvUHgzyvzg u/XvYr2kpDeKPJIhDqq2YWajHymoJPc7kiE9v31DKk9/aSjqnobZHZHLcjico+zWkEIZ DHfr0E9HqIz8MCrFdOy++GzXP455yyyfOYvgSVqiLgLHJlxjiQVOasQey87mR0epHdWL 4oPje0Tu6kyrmkVbqzoCbQzrQt4gTqszvpxn+EaE/d2Fy8GVA9NnZnJJv/J50MozzkYW vsVYyCbkZ6L4oGoylso9+mIo6s6AbLsZbQjupoLAq549Ryw+FuEiXQvz8dPGZYN7w0xp NO2g== X-Gm-Message-State: AOAM530t/L0MMD6pRwKm9KIC/FJYPZ9diKYT0ZdR9bYluZ5EQLa32gFU Dy1v5hk3z2ftAne/BaV6zzF8EA== X-Received: by 2002:adf:ed4f:: with SMTP id u15mr2891034wro.126.1592312005861; Tue, 16 Jun 2020 05:53:25 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id c70sm3778631wme.32.2020.06.16.05.53.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 05:53:24 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4673E1FF7E; Tue, 16 Jun 2020 13:53:24 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 00/21] testing and plugin updates (tsan, plugins, cross-builds) Date: Tue, 16 Jun 2020 13:53:03 +0100 Message-Id: <20200616125324.19045-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The following changes since commit f5e34624f28f37ec3c8a93bdee348effee966a78: Merge remote-tracking branch 'remotes/amarkovic/tags/mips-queue-jun-15-2020' into staging (2020-06-16 11:00:28 +0100) are available in the Git repository at: https://github.com/stsquad/qemu.git tags/pull-testing-and-plugin-160620-1 for you to fetch changes up to 99c5f1ccb9ad9fe42466df292a9e4c9b863eafe6: plugins: new lockstep plugin for debugging TCG changes (2020-06-16 13:25:00 +0100) ---------------------------------------------------------------- Testing and plugin updates - clear up dtc warnings - add support for --enable-tsan builds - re-enable shippable cross builds - serialise cirrus check steps - fix check-tcg plugin issues - add lockstep plugin ---------------------------------------------------------------- Alex Bennée (6): tests/docker: bump fedora to 32 Revert ".shippable: temporaily disable some cross builds" cirrus.yml: serialise make check tests/tcg: build plugin list from contents of src directory tests/tcg: ensure -cpu max also used for plugin run plugins: new lockstep plugin for debugging TCG changes Claudio Fontana (2): Makefile: dtc: update, build the libfdt target Makefile: remove old compatibility gunks Emilio G. Cota (7): cpu: convert queued work to a QSIMPLEQ thread: add qemu_spin_destroy cputlb: destroy CPUTLB with tlb_destroy qht: call qemu_spin_destroy for head buckets tcg: call qemu_spin_destroy for tb->jmp_lock translate-all: call qemu_spin_destroy for PageDesc thread: add tsan annotations to QemuSpin Lingfeng Yang (1): configure: add --enable-tsan flag + fiber annotations for coroutine-ucontext Robert Foley (5): tests/docker: Added docker build support for TSan. include/qemu: Added tsan.h for annotations. util: Added tsan annotate for thread name. docs: Added details on TSan to testing.rst tests: Disable select tests under TSan, which hit TSan issue. docs/devel/testing.rst | 107 +++++++++ configure | 48 +++- Makefile | 16 +- include/exec/exec-all.h | 8 + include/hw/core/cpu.h | 6 +- include/qemu/thread.h | 38 +++- include/qemu/tsan.h | 71 ++++++ include/tcg/tcg.h | 1 + accel/tcg/cputlb.c | 15 ++ accel/tcg/translate-all.c | 17 ++ cpus-common.c | 25 +-- cpus.c | 14 +- exec.c | 1 + hw/core/cpu.c | 1 + tcg/tcg.c | 9 + tests/plugin/lockstep.c | 340 +++++++++++++++++++++++++++++ util/coroutine-ucontext.c | 66 +++++- util/qemu-thread-posix.c | 2 + util/qht.c | 1 + .cirrus.yml | 6 +- .shippable.yml | 12 +- dtc | 2 +- tests/Makefile.include | 9 +- tests/docker/dockerfiles/fedora.docker | 2 +- tests/docker/dockerfiles/ubuntu2004.docker | 65 ++++++ tests/docker/test-tsan | 44 ++++ tests/plugin/Makefile | 1 + tests/qtest/Makefile.include | 7 +- tests/tcg/Makefile.target | 12 +- tests/tcg/aarch64/Makefile.target | 5 +- tests/tcg/arm/Makefile.target | 2 +- tests/tcg/i386/Makefile.target | 1 + tests/tsan/blacklist.tsan | 10 + tests/tsan/suppressions.tsan | 14 ++ 34 files changed, 910 insertions(+), 68 deletions(-) create mode 100644 include/qemu/tsan.h create mode 100644 tests/plugin/lockstep.c create mode 100644 tests/docker/dockerfiles/ubuntu2004.docker create mode 100755 tests/docker/test-tsan create mode 100644 tests/tsan/blacklist.tsan create mode 100644 tests/tsan/suppressions.tsan -- 2.20.1