From nobody Wed May 8 02:11:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1631896073387611.3860093489827; Fri, 17 Sep 2021 09:27:53 -0700 (PDT) Received: from localhost ([::1]:60726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRGiO-0000e6-Dt for importer@patchew.org; Fri, 17 Sep 2021 12:27:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGeM-0003Tv-2V for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:42 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:39536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRGeJ-0005RF-Aj for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:41 -0400 Received: by mail-wr1-x42c.google.com with SMTP id u15so16075338wru.6 for ; Fri, 17 Sep 2021 09:23:37 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id l2sm11364746wmi.1.2021.09.17.09.23.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 09:23:33 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 47F131FF98; Fri, 17 Sep 2021 17:23:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lYHDsT18jOZsWv8rLeQ/NbBXoG8vS4UbmHbsvR70ru0=; b=clOTxKZBGkpPoWeFfrz6SQNWY67RjGdntFLTxGkMQtx0jAJV6dus/22wHO8lbwKY1K csRr0DwvLJ6emnvuc0j8A5iVr4ogPXgoHFqx0m3dZQ8xVZkTqguvQjEE9vSaq00hEeBH qZ9ehDxBJXv+UYL8XNkY3d6+PIMd8+WcZW9pHh/YZgLH0vl5g2waVP3QKWf5JPfWP28f k/tp44A/snnFtt+/ENnRarhPc45pn73PMJu+VGFDO9/ge+YgM795tMOaIJppaf0hTfMs Sz8AqJprza/cm5XyZTciUViYMmUOOOvlD/TLZj2gBYX0RSEznFwASPko/+idER+fou1d uA8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lYHDsT18jOZsWv8rLeQ/NbBXoG8vS4UbmHbsvR70ru0=; b=c9f0ASCZjYvpbzPNfhtrfxHVhZurTQ8gr8ROCX65BkB0UiO6HTvMnZMx7kUNRUnIAs uhrNVpMn0pFQ0kpWb+4iT12FTLGzrA1HaBzajyz3OymD65y1QPIk79zOBmou73WB2mug 9ClDyj3oNHmoaEZvvBDWiOuo4gyTIXRsfJNWovVle20tux6iD+zcIZnDw2y0XEWT7mAC IfbD6joVorO5I1HZ4C1PK7CVXIv2xJBBfUXg7j29Umnjl+iTirqQtBlKm1qii2NQWD+I UYJb3ZwOkY1TTWoEQmsVfX227OkOXjdZalkRBi3iZr9oJ/hYpkbqXpXT9lwXPnxEoQPm w0Xw== X-Gm-Message-State: AOAM533r3X5+UlSZwlgOp4LVVquH7H5VpaVxy5/LaRUqZYJ/bk5iDfVB BWJjTxGKy04In6eqVK8VQx2sog== X-Google-Smtp-Source: ABdhPJzi4x0zmpH7tZmug7HAPgibM82pfdgz6nG46UF36eBZ7GsCmY3rVZkjMuezai3LUHRv+EO/Bg== X-Received: by 2002:a05:6000:1379:: with SMTP id q25mr13047849wrz.280.1631895817014; Fri, 17 Sep 2021 09:23:37 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 01/11] configure: don't override the selected host test compiler if defined Date: Fri, 17 Sep 2021 17:23:22 +0100 Message-Id: <20210917162332.3511179-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210917162332.3511179-1-alex.bennee@linaro.org> References: <20210917162332.3511179-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.google.com 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 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: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, Warner Losh , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1631896075245100001 There are not many cases you would want to do this but one is if you want to use a test friendly compiler like gcc instead of a system compiler like clang. Either way we should honour the users choice if they have made it. Signed-off-by: Alex Benn=C3=A9e Cc: Warner Losh Reviewed-by: Warner Losh --- configure | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 1043ccce4f..049c50a933 100755 --- a/configure +++ b/configure @@ -1686,8 +1686,11 @@ case "$cpu" in # No special flags required for other host CPUs esac =20 -eval "cross_cc_${cpu}=3D\$cc" -cross_cc_vars=3D"$cross_cc_vars cross_cc_${cpu}" +if eval test -z "\${cross_cc_$cpu}"; then + eval "cross_cc_${cpu}=3D\$cc" + cross_cc_vars=3D"$cross_cc_vars cross_cc_${cpu}" +fi + QEMU_CFLAGS=3D"$CPU_CFLAGS $QEMU_CFLAGS" =20 # For user-mode emulation the host arch has to be one we explicitly --=20 2.30.2 From nobody Wed May 8 02:11:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1631896470170324.1700602113601; Fri, 17 Sep 2021 09:34:30 -0700 (PDT) Received: from localhost ([::1]:47978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRGom-0002fa-W7 for importer@patchew.org; Fri, 17 Sep 2021 12:34:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGeK-0003T6-BG for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:40 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:33616) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRGeG-0005PK-MO for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:40 -0400 Received: by mail-wr1-x433.google.com with SMTP id t18so16145302wrb.0 for ; Fri, 17 Sep 2021 09:23:35 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g1sm12758034wmk.2.2021.09.17.09.23.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 09:23:33 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 5E76A1FF99; Fri, 17 Sep 2021 17:23:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ctCyxck4EL5Ky38T3SMMObhR0rKiRHYqaGdfnEA1vgQ=; b=Wj8QUPdIh0XAfjh5lrXE+fCygtR0mzfy7j4WmJpkhAQnru/v5aqvs5AGX76iKNTYGa nYq2nd6F3FdZZDnSCS9aZ3Io7jUAnX172XECQGtWLpvEgB0fib07hQOd0Wr1zFpdT372 6n1vHI7dFptV1POk0icVuZRwtQYDqaaP2bMwBwOIqva9o1dOfE02yXDr6V2pkyACIyxn cmdThjN6MECfr7UeaMIxeFxy9qNbCE0eUptGjtnmBijNAzZB/zKSX0zzVZIyAip1218x hZYcDU4Dh/p8rdJva2LpNQ+9oTLgIttog8q88m8M3ioGjLMpwxpUl/wYQJathoJttQJX XzHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ctCyxck4EL5Ky38T3SMMObhR0rKiRHYqaGdfnEA1vgQ=; b=Yyg8l1xDreEriRMde6ZT3Qhuw+SWGLcfyM8mx9Nh0K7xrCQ+eVmkqkj0e9cfmlr9CI mj5MbrT31slLTJUmq8KYQBRc/W+wYmiSL+DTkqNPesc678ZS+mD+dZwykSE3Bl21Updn +wny0ZZkAfv/7ShMmZDfydLF4/ddnC8v3DBbrEC/L5Gm4/YbFXKSwmtBnREaRfu2XFpb pu2rYEPdRHDMT4Z3aPcNuUjV22m/pdSRmKQLsY8otE/R3zpqTtzTOH9edhmeUW1opNiW ZkJNs+iIm21kNzkdDruId9CoZANONpZswszeQcIy6j30O0YkYc9HqtILYcl1qkfKr1XZ ym5A== X-Gm-Message-State: AOAM5331RxVoiKKbYCJOZ1NGMEh9JYTn4oyPwHO5GNKjJHybbUXoLZNO syTiyeKsAiFansAmoMAvu2b/zQ== X-Google-Smtp-Source: ABdhPJziXvyAEg4pm0D8BO01C0TIOv9R9dLHHMLd1h7/rAS7MFl9fjh0PQMNd0FBLgORa1H27WZXtA== X-Received: by 2002:a05:6000:1ac5:: with SMTP id i5mr2290225wry.292.1631895814741; Fri, 17 Sep 2021 09:23:34 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 02/11] tests/tcg/sha1: remove endian include Date: Fri, 17 Sep 2021 17:23:23 +0100 Message-Id: <20210917162332.3511179-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210917162332.3511179-1-alex.bennee@linaro.org> References: <20210917162332.3511179-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x433.google.com 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 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: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, Warner Losh , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1631896471502100001 This doesn't exist in BSD world and doesn't seem to be needed by either. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Warner Losh --- tests/tcg/multiarch/sha1.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/tcg/multiarch/sha1.c b/tests/tcg/multiarch/sha1.c index 87bfbcdf52..0081bd7657 100644 --- a/tests/tcg/multiarch/sha1.c +++ b/tests/tcg/multiarch/sha1.c @@ -43,7 +43,6 @@ void SHA1Init(SHA1_CTX* context); void SHA1Update(SHA1_CTX* context, const unsigned char* data, uint32_t len= ); void SHA1Final(unsigned char digest[20], SHA1_CTX* context); /* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D end of sha1.h =3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D */ -#include =20 #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) =20 --=20 2.30.2 From nobody Wed May 8 02:11:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 163189618224227.747010774522664; Fri, 17 Sep 2021 09:29:42 -0700 (PDT) Received: from localhost ([::1]:38894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRGk9-0004vi-7y for importer@patchew.org; Fri, 17 Sep 2021 12:29:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGeM-0003Ua-Q7 for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:42 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:38686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRGeK-0005Ru-0X for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:42 -0400 Received: by mail-wr1-x42b.google.com with SMTP id u18so14342325wrg.5 for ; Fri, 17 Sep 2021 09:23:38 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id 4sm6434433wmv.42.2021.09.17.09.23.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 09:23:33 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 791AC1FF9A; Fri, 17 Sep 2021 17:23:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QLy3JwK0ppKXnHHIzD0bw9+kzczMVllLeYg1SGrrrRE=; b=GsgiXVwNNcrb9njFsGN/7AelnxVTWrg7GaalHcM9Cmq3feoyrr5oPFha0hcG/Aineg nQ7QCU1Mk0oe+iFOXrzXFrmCqLxVG6l2uGJfNJ9RM/XHqIR9l+AB0NY88+un32LcsShf j77ovHhuR0i72lvGtnSZk0oPA2QbuaOK3uFBkYP1seGdbOrFpeZnZjciyKKPhtWC0Gdv FxcWrWxq74vkDhs/YGGaIcmWgnAJP4uQbsShYN1qdzUv1LocWwjWftmnDBkdJ/qfn4JV wBB9yaaAYOyTPQ9nemQxIZP4QtjGIZl4BxVdtnmKsfHMUOOue//NHwT9OlKZQ3+SyLRk IEMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QLy3JwK0ppKXnHHIzD0bw9+kzczMVllLeYg1SGrrrRE=; b=6LFX9aUGKCP7jQu5EOh6mOLd1MNRpgmYIf9AJ3IByS+G5rWZyvns6obLhSF0tL+/xH YOkPLs3p5IAB4ByP1e7/m0tMHE1suk1ladZ54ShMzicZBkXlU4KKh0BrNZ0NQm0T0g71 3rl99d4IXoaLp4Vnu5b0bCHeZtmwYLmJCDQthzp2WkbN3jgrzwh3uS9+RhNefuXZTgK6 52twP8weKelG2qb8fo8ZviaXnO2DSReXnOYwyOEtg5k4YI7QbrDXt9d5N6znysPVPZ3W oEukM7jLK5gEj64v0H2h+sIp4LfjaVbOI3LJfmLcPdzBfRDC5dGKrh2pHLG1I9L0pRzw Y/9g== X-Gm-Message-State: AOAM533OQJnYAEf6I89CL8geyZljPeqn2Pr9gjLT4zEvH+uW8PVT3fxm 4WkdExDC+nb9rvCNFOiYEJ6IaQ== X-Google-Smtp-Source: ABdhPJxrPD1rM9uQqi0bP0g6h8szZ5eXa33I4C5VJ/U00WGcdsiUe5+l+UkID/gbHr7XhLpBZNFloQ== X-Received: by 2002:a5d:6307:: with SMTP id i7mr13244611wru.395.1631895817767; Fri, 17 Sep 2021 09:23:37 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 03/11] tests/tcg: move some multiarch files and make conditional Date: Fri, 17 Sep 2021 17:23:24 +0100 Message-Id: <20210917162332.3511179-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210917162332.3511179-1-alex.bennee@linaro.org> References: <20210917162332.3511179-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42b.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) 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 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: fam@euphon.net, berrange@redhat.com, Eduardo Habkost , Richard Henderson , f4bug@amsat.org, Warner Losh , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1631896183261100001 We had some messy code to filter out stuff we can't build. Lets junk that and simplify the logic by pushing some stuff into subdirs. In particular we move: float_helpers into libs - not a standalone test linux-test into linux - so we only build on Linux hosts This allows for at least some of the tests to be nominally usable by *BSD user builds. Signed-off-by: Alex Benn=C3=A9e Cc: Warner Losh Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Warner Losh --- tests/tcg/multiarch/{ =3D> libs}/float_helpers.c | 2 +- tests/tcg/multiarch/{ =3D> linux}/linux-test.c | 0 tests/tcg/multiarch/Makefile.target | 15 ++++++++++----- tests/tcg/x86_64/Makefile.target | 4 ++++ 4 files changed, 15 insertions(+), 6 deletions(-) rename tests/tcg/multiarch/{ =3D> libs}/float_helpers.c (99%) rename tests/tcg/multiarch/{ =3D> linux}/linux-test.c (100%) diff --git a/tests/tcg/multiarch/float_helpers.c b/tests/tcg/multiarch/libs= /float_helpers.c similarity index 99% rename from tests/tcg/multiarch/float_helpers.c rename to tests/tcg/multiarch/libs/float_helpers.c index bc530e5732..4e68d2b659 100644 --- a/tests/tcg/multiarch/float_helpers.c +++ b/tests/tcg/multiarch/libs/float_helpers.c @@ -22,7 +22,7 @@ #include #include =20 -#include "float_helpers.h" +#include "../float_helpers.h" =20 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) =20 diff --git a/tests/tcg/multiarch/linux-test.c b/tests/tcg/multiarch/linux/l= inux-test.c similarity index 100% rename from tests/tcg/multiarch/linux-test.c rename to tests/tcg/multiarch/linux/linux-test.c diff --git a/tests/tcg/multiarch/Makefile.target b/tests/tcg/multiarch/Make= file.target index 85a6fb7a2e..3763df2019 100644 --- a/tests/tcg/multiarch/Makefile.target +++ b/tests/tcg/multiarch/Makefile.target @@ -8,18 +8,23 @@ MULTIARCH_SRC=3D$(SRC_PATH)/tests/tcg/multiarch =20 # Set search path for all sources -VPATH +=3D $(MULTIARCH_SRC) -MULTIARCH_SRCS =3D$(notdir $(wildcard $(MULTIARCH_SRC)/*.c)) -MULTIARCH_TESTS =3D$(filter-out float_helpers, $(MULTIARCH_SRCS:.c=3D)) +VPATH +=3D $(MULTIARCH_SRC) +MULTIARCH_SRCS =3D $(notdir $(wildcard $(MULTIARCH_SRC)/*.c)) +ifneq ($(CONFIG_LINUX),) +VPATH +=3D $(MULTIARCH_SRC)/linux +MULTIARCH_SRCS +=3D $(notdir $(wildcard $(MULTIARCH_SRC)/linux/*.c)) +endif +MULTIARCH_TESTS =3D $(MULTIARCH_SRCS:.c=3D) =20 +$(info SRCS=3D${MULTIARCH_SRCS} and ${MULTIARCH_TESTS}) # # The following are any additional rules needed to build things # =20 =20 float_%: LDFLAGS+=3D-lm -float_%: float_%.c float_helpers.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< $(MULTIARCH_SRC)/float_helpers.c -o $@= $(LDFLAGS) +float_%: float_%.c libs/float_helpers.c + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< $(MULTIARCH_SRC)/libs/float_helpers.c = -o $@ $(LDFLAGS) =20 run-float_%: float_% $(call run-test,$<, $(QEMU) $(QEMU_OPTS) $<,"$< on $(TARGET_NAME)") diff --git a/tests/tcg/x86_64/Makefile.target b/tests/tcg/x86_64/Makefile.t= arget index 2151ea6302..d7a7385583 100644 --- a/tests/tcg/x86_64/Makefile.target +++ b/tests/tcg/x86_64/Makefile.target @@ -8,8 +8,12 @@ =20 include $(SRC_PATH)/tests/tcg/i386/Makefile.target =20 +ifneq ($(CONFIG_LINUX),) X86_64_TESTS +=3D vsyscall TESTS=3D$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64 +else +TESTS=3D$(MULTIARCH_TESTS) +endif QEMU_OPTS +=3D -cpu max =20 test-x86_64: LDFLAGS+=3D-lm -lc --=20 2.30.2 From nobody Wed May 8 02:11:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1631896559512904.5514200558209; Fri, 17 Sep 2021 09:35:59 -0700 (PDT) Received: from localhost ([::1]:54240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRGqE-0006sb-DV for importer@patchew.org; Fri, 17 Sep 2021 12:35:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGeN-0003Vi-OJ for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:46 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:33608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRGeL-0005Tz-Qh for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:43 -0400 Received: by mail-wr1-x429.google.com with SMTP id t18so16145810wrb.0 for ; Fri, 17 Sep 2021 09:23:41 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id i1sm6843941wrb.93.2021.09.17.09.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 09:23:36 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 954921FF9B; Fri, 17 Sep 2021 17:23:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jr+p0pukkZcez10LfB9z0Jh9oZrpZIn9A0EB/trEXmg=; b=xGbwMFVEx2KhUxYh8v6cDRnPmNV4u/ouYx4llkX5l8G+Q4tuNJE2l+Gk9JXqMvQwKK ZNG6hWdrmZj8hQ2H8cJ30NA30aevhed/VVjlO1KKy8djUglzvWi8nKkSg+8aO3LSu7na vpX6khvn5mduo8zCMF1K3fsmmnicrHLPpPiFPDWnWxQddkpCVo8+WEojSpFAq+wJoj1K e9E+eLBQjl2+iQ/3/z3lzj3lgw8BCeDSWYY3Hc9wqX4NKbiavv1LKIInJr4CuoPqsXpU iB3GnI0KVlT058NUKOjfMMwnoGdru8S9GxCy0lywBMQrvQKlqjG3g9lhPJcm6EeoEiBH 4r5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jr+p0pukkZcez10LfB9z0Jh9oZrpZIn9A0EB/trEXmg=; b=dLgxy3RL8hFf/dGjLjjYLE6dYTyqaKWkx93NlBEYQabn17Q6j9uErDiWEycCyB+mi9 wBcOaEnak6BSUwM/cbL0b3UxuieUVuGBaW8X48epcYzavUjxvFYqWAkdrugNtv8coBpl m0hs5r6xtftBoPBjGypwADWE/X/bWNFJ7fMB1Ms2y7EVo04jWozgZRUyyfDsc157fqvm ZR9Zm8z+VmHqMSMwq1SHLeC+L0DkbUA+CFrtwthQeoE0eomigTIqHpLWu/c7VE4V7MwH T1YwND6UA3JQHe8tu+18rvb3tBbPtPC3z1YbMaaLOzFMMRe7moToEW2w+Huv5StBRgow v4Fw== X-Gm-Message-State: AOAM532/3d8zspFeV628tTcYP4Bc/dYSGNY+LuYiethU/9K4hDDki6Kj fqke1xhDIZFYUuseaak0PIu3Zw== X-Google-Smtp-Source: ABdhPJxZzzwPuggjprHpCxKrVoT8Vdbq04+4TZQ89vlbJR93UQLbnKPlSjCgQ7HdpHTEGwPyiyyhgQ== X-Received: by 2002:a5d:608e:: with SMTP id w14mr13259245wrt.18.1631895820072; Fri, 17 Sep 2021 09:23:40 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 04/11] tests/docker: promote debian-riscv64-cross to a full image Date: Fri, 17 Sep 2021 17:23:25 +0100 Message-Id: <20210917162332.3511179-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210917162332.3511179-1-alex.bennee@linaro.org> References: <20210917162332.3511179-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) 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 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: fam@euphon.net, Thomas Huth , berrange@redhat.com, Richard Henderson , f4bug@amsat.org, Wainer dos Santos Moschetta , Willian Rampazzo , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1631896561457100001 To be able to cross build QEMU itself we need to include a few more libraries. These are only available in Debian's unstable ports repo for now so we need to base the riscv64 image on sid with the the minimal libs needed to build QEMU (glib/pixman). The result works but is not as clean as using build-dep to bring in more dependencies. However sid is by definition a shifting pile of sand and by keeping the list of libs minimal we reduce the chance of having an image we can't build. It's good enough for a basic cross build testing of TCG. Cc: "Daniel P. Berrang=C3=A9" Signed-off-by: Richard Henderson Message-Id: <20210914185830.1378771-2-richard.henderson@linaro.org> [AJB: tweak allow_failure] Signed-off-by: Alex Benn=C3=A9e --- v2 - allow_failure: true --- .gitlab-ci.d/container-cross.yml | 3 +- tests/docker/Makefile.include | 2 - .../dockerfiles/debian-riscv64-cross.docker | 46 +++++++++++++++++-- 3 files changed, 43 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.d/container-cross.yml b/.gitlab-ci.d/container-cros= s.yml index 0fcebe363a..a3b5b90552 100644 --- a/.gitlab-ci.d/container-cross.yml +++ b/.gitlab-ci.d/container-cross.yml @@ -134,7 +134,8 @@ ppc64el-debian-cross-container: riscv64-debian-cross-container: extends: .container_job_template stage: containers-layer2 - needs: ['amd64-debian10-container'] + # as we are currently based on 'sid/unstable' we may break so... + allow_failure: true variables: NAME: debian-riscv64-cross =20 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index ff5d732889..3b03763186 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -141,7 +141,6 @@ docker-image-debian-mips64-cross: docker-image-debian10 docker-image-debian-mips64el-cross: docker-image-debian10 docker-image-debian-mipsel-cross: docker-image-debian10 docker-image-debian-ppc64el-cross: docker-image-debian10 -docker-image-debian-riscv64-cross: docker-image-debian10 docker-image-debian-s390x-cross: docker-image-debian10 docker-image-debian-sh4-cross: docker-image-debian10 docker-image-debian-sparc64-cross: docker-image-debian10 @@ -180,7 +179,6 @@ DOCKER_PARTIAL_IMAGES +=3D debian-arm64-test-cross DOCKER_PARTIAL_IMAGES +=3D debian-powerpc-test-cross DOCKER_PARTIAL_IMAGES +=3D debian-hppa-cross DOCKER_PARTIAL_IMAGES +=3D debian-m68k-cross debian-mips64-cross -DOCKER_PARTIAL_IMAGES +=3D debian-riscv64-cross DOCKER_PARTIAL_IMAGES +=3D debian-sh4-cross debian-sparc64-cross DOCKER_PARTIAL_IMAGES +=3D debian-tricore-cross DOCKER_PARTIAL_IMAGES +=3D debian-xtensa-cross diff --git a/tests/docker/dockerfiles/debian-riscv64-cross.docker b/tests/d= ocker/dockerfiles/debian-riscv64-cross.docker index 2bbff19772..594d97982c 100644 --- a/tests/docker/dockerfiles/debian-riscv64-cross.docker +++ b/tests/docker/dockerfiles/debian-riscv64-cross.docker @@ -1,12 +1,48 @@ # -# Docker cross-compiler target +# Docker cross-compiler target for riscv64 # -# This docker target builds on the debian Buster base image. +# Currently the only distro that gets close to cross compiling riscv64 +# images is Debian Sid (with unofficial ports). As this is a moving +# target we keep the library list minimal and are aiming to migrate +# from this hack as soon as we are able. # -FROM qemu/debian10 +FROM docker.io/library/debian:sid-slim + +# Add ports +RUN apt update && \ + DEBIAN_FRONTEND=3Dnoninteractive apt install -yy eatmydata && \ + DEBIAN_FRONTEND=3Dnoninteractive eatmydata apt update -yy && \ + DEBIAN_FRONTEND=3Dnoninteractive eatmydata apt upgrade -yy + +# Install common build utilities +RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata apt install -yy \ + bc \ + build-essential \ + ca-certificates \ + debian-ports-archive-keyring \ + dpkg-dev \ + gettext \ + git \ + ninja-build \ + pkg-config \ + python3 + +# Add ports and riscv64 architecture +RUN echo "deb http://ftp.ports.debian.org/debian-ports/ sid main" >> /etc/= apt/sources.list +RUN dpkg --add-architecture riscv64 + +# Duplicate deb line as deb-src +RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sourc= es.list =20 RUN apt update && \ DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ apt install -y --no-install-recommends \ - gcc-riscv64-linux-gnu \ - libc6-dev-riscv64-cross + gcc-riscv64-linux-gnu \ + libc6-dev-riscv64-cross \ + libffi-dev:riscv64 \ + libglib2.0-dev:riscv64 \ + libpixman-1-dev:riscv64 + +# Specify the cross prefix for this image (see tests/docker/common.rc) +ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Driscv64-linux-gnu- +ENV DEF_TARGET_LIST riscv64-softmmu,riscv64-linux-user --=20 2.30.2 From nobody Wed May 8 02:11:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1631896789590135.1278546495123; Fri, 17 Sep 2021 09:39:49 -0700 (PDT) Received: from localhost ([::1]:36722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRGtw-0005jr-KH for importer@patchew.org; Fri, 17 Sep 2021 12:39:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGeP-0003Vl-28 for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:46 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:40883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRGeN-0005Ut-ID for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:44 -0400 Received: by mail-wm1-x335.google.com with SMTP id b21-20020a1c8015000000b003049690d882so10395985wmd.5 for ; Fri, 17 Sep 2021 09:23:43 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id q11sm11246390wmc.41.2021.09.17.09.23.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 09:23:39 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id A20011FF9C; Fri, 17 Sep 2021 17:23:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=554gJAf51sCeJWu+v3QBNYrShBWM+FpQpxvcowr/wK0=; b=HeZX23b4MfsPjAESFRt2N5WQrnxZMmB0QFVbppTuOkqEEqAkpqSTSzDBqqT3qbCCLS l9XSir7tJHI+0Ed/9m9gkaXNE4HCAXysjOVux8uOYz2lLhz2e2Z8o+P4UJYXzTWyrzuU Wn9ciDSE6D6zibPpDlJTm++DZO0b/ZN32tjSF9YfM6tUbnwrQkvreFXYLGdhQdHamO5h ypsxzB0nQ/YHX8xqLBY6pPLTvAB/QbRLJ+XjIBeQFo2JAcA3iHQE/IXrDk0kArvDPU0I wDZ3pPfAOPW9BnuSz6q87b523kJwuHfbmeDHwc3K3XHCOwD8B3YAbwR0+ko7vyArY+gn SmIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=554gJAf51sCeJWu+v3QBNYrShBWM+FpQpxvcowr/wK0=; b=wDz56kbzrMi8aguJAUcTMfAhKOCV02qODekPDihiD1u/fmWhTd6hKJvAVtjsyw63ci OWbvoq38KHcWndSlbbINpa3URBHwwDsEo3BZeVKLmnIP/ZM0PdHiR85fRShu0hTWpWzU Zh68t16jqefU5jblQtt/jwEzQ0DvKmBYayANc1f2ksPyV4GCLITJtP/y4qZovIJoYiBU 3M+zLi19z0q36RNpTVRcMhtGuPcM8uPYkqV12+bd/oPF04ZyDbQAntrjB0tExUqPcaZP 9QTS87sirfK1p8O68v9nVN2wONHAmXI9QZkdMRguBehyXUZwSpEacUVOMcdOgzn0Numy yOlQ== X-Gm-Message-State: AOAM532fQ/NEhI+Z1EtecVQ398M46GazDAYAgfIv1RSyknVQ67teVXMy bVYrIcjSEyHB8dRFmSXyYIQYww== X-Google-Smtp-Source: ABdhPJxrKwHlLQomOVUwbeBGJ0JjrNKNU6USSZHut/fwog6LzriBzwUX/wKR5Z1gbX93T1oncskh9g== X-Received: by 2002:a1c:cc16:: with SMTP id h22mr11387291wmb.117.1631895822099; Fri, 17 Sep 2021 09:23:42 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 05/11] gitlab: Add cross-riscv64-system, cross-riscv64-user Date: Fri, 17 Sep 2021 17:23:26 +0100 Message-Id: <20210917162332.3511179-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210917162332.3511179-1-alex.bennee@linaro.org> References: <20210917162332.3511179-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x335.google.com 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 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: fam@euphon.net, Thomas Huth , berrange@redhat.com, Richard Henderson , f4bug@amsat.org, Wainer dos Santos Moschetta , Willian Rampazzo , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1631896791128100001 From: Richard Henderson Signed-off-by: Richard Henderson Message-Id: <20210914185830.1378771-3-richard.henderson@linaro.org> [AJB: add allow_failure] Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Willian Rampazzo --- v2 - allow_failure: true --- .gitlab-ci.d/crossbuilds.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml index f10168db2e..17d6cb3e45 100644 --- a/.gitlab-ci.d/crossbuilds.yml +++ b/.gitlab-ci.d/crossbuilds.yml @@ -124,6 +124,25 @@ cross-ppc64el-user: variables: IMAGE: debian-ppc64el-cross =20 +# The riscv64 cross-builds currently use a 'sid' container to get +# compilers and libraries. Until something more stable is found we +# allow_failure so as not to block CI. +cross-riscv64-system: + extends: .cross_system_build_job + allow_failure: true + needs: + job: riscv64-debian-cross-container + variables: + IMAGE: debian-riscv64-cross + +cross-riscv64-user: + extends: .cross_user_build_job + allow_failure: true + needs: + job: riscv64-debian-cross-container + variables: + IMAGE: debian-riscv64-cross + cross-s390x-system: extends: .cross_system_build_job needs: --=20 2.30.2 From nobody Wed May 8 02:11:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 163189643661094.1933360526051; Fri, 17 Sep 2021 09:33:56 -0700 (PDT) Received: from localhost ([::1]:46832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRGoF-0001py-Hg for importer@patchew.org; Fri, 17 Sep 2021 12:33:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGeS-0003Xk-M1 for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:50 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:33617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRGeQ-0005Xo-7V for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:48 -0400 Received: by mail-wm1-x331.google.com with SMTP id 192-20020a1c04c9000000b002f7a4ab0a49so7881148wme.0 for ; Fri, 17 Sep 2021 09:23:45 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id s24sm6522268wmh.34.2021.09.17.09.23.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 09:23:39 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id BA0C91FF9D; Fri, 17 Sep 2021 17:23:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6650I+sSBOEI7t+EMaHgrH7WtFrcTMt2scZY/FxCdUo=; b=DBFcLQWEEe/rbjcBv9MGtHw7F6smFCW+8N1DpFY8NFhHLiv10JLZ3bjg7/RxuaCMW4 9g6j+G+FQkju3M/QjE1vKwbJftLaRob1eZMfxjhDS2UkNFswAl3LS25H9wjfYQ0xQe8Y E6cFK49on4CBo+cMIzRJYU7YtRJFr2XC9E09u37xmnZ8KZPOsfZccgjeDluNYc4o2ByV n8ZC8uxfT6ndI/G3KxCS1XtTi+SxVut5YXZ0WgUqTWi6a4Tz8O0qGt3zBbaS1v3rRsH/ 6Bx0ammYrgVTpmSgrHYjtA5hCVHPVyISKKoRcEnnnUyJRU/3QQ1N7SRxCd5pA2nUXMk2 t/HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6650I+sSBOEI7t+EMaHgrH7WtFrcTMt2scZY/FxCdUo=; b=q62e6iHELbDJ4ssSyhBCrImgom7qQOZiBRmtD/hndi17wLQ4T3TQPk2gGu3/ljb3oI giF1C1DE0o9TGZsTirYnwOHDAD1ZoeGs/qM74SvCnFqkgkPli63J1b40ofpAEIQM4/gZ vTyP55OtrOmCgKF3p0cdn/1bO7Vlybhx15m0qt6j/rg7g6PFIwe/pHqjeYwoY8qabLUW zTXxZBdifVte6fUQB8CdDM544iZPjwohRbE6GHhBn+A+JSHM6pzNCwBZkvU9IfP02taG 5V8gbfA/FujFzEFh6ur9nh8OAwes6kBGdM907EGICQt4pFK+OiA0Vupem9vrbu3EV+Ow s9dg== X-Gm-Message-State: AOAM533Ic4Tg+C4snEAho2R1y8sjA+HSP2iwjgbTlzydahas0E+kUHXa GAnvc2+jCzm08mR+HvrhohQleg== X-Google-Smtp-Source: ABdhPJx8oTlQ+P5jYyKcMEtHRBeT9ph6DY29S4FLn0UnQk4wFrwKx67w3oA0RIKclFxafud2mo9gBg== X-Received: by 2002:a1c:ed0a:: with SMTP id l10mr11535695wmh.140.1631895824891; Fri, 17 Sep 2021 09:23:44 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 06/11] python: Update for pylint 2.10 Date: Fri, 17 Sep 2021 17:23:27 +0100 Message-Id: <20210917162332.3511179-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210917162332.3511179-1-alex.bennee@linaro.org> References: <20210917162332.3511179-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.google.com 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 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: fam@euphon.net, berrange@redhat.com, Eduardo Habkost , =?UTF-8?q?Alex=20Benn=C3=A9e?= , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, John Snow , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1631896437391100001 From: John Snow A few new annoyances. Of note is the new warning for an unspecified encoding when opening a text file, which actually does indicate a potentially real problem; see https://www.python.org/dev/peps/pep-0597/#motivation Use LC_CTYPE to determine an encoding to use for interpreting QEMU's terminal output. Note that Python states: "language code and encoding may be None if their values cannot be determined" -- use a platform default as a backup. Signed-off-by: John Snow Message-Id: <20210916040955.628560-2-jsnow@redhat.com> Reviewed-by: Alex Benn=C3=A9e Tested-by: Alex Benn=C3=A9e Signed-off-by: Alex Benn=C3=A9e --- python/qemu/machine/machine.py | 9 ++++++++- python/setup.cfg | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python/qemu/machine/machine.py b/python/qemu/machine/machine.py index a7081b1845..51b6e79a13 100644 --- a/python/qemu/machine/machine.py +++ b/python/qemu/machine/machine.py @@ -19,6 +19,7 @@ =20 import errno from itertools import chain +import locale import logging import os import shutil @@ -290,8 +291,14 @@ def get_pid(self) -> Optional[int]: return self._subp.pid =20 def _load_io_log(self) -> None: + # Assume that the output encoding of QEMU's terminal output + # is defined by our locale. If indeterminate, use a platform defau= lt. + _, encoding =3D locale.getlocale() + if encoding is None: + encoding =3D locale.getpreferredencoding(do_setlocale=3DFalse) if self._qemu_log_path is not None: - with open(self._qemu_log_path, "r") as iolog: + with open(self._qemu_log_path, "r", + encoding=3Dencoding) as iolog: self._iolog =3D iolog.read() =20 @property diff --git a/python/setup.cfg b/python/setup.cfg index 83909c1c97..0f0cab098f 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -104,6 +104,7 @@ good-names=3Di, [pylint.similarities] # Ignore imports when computing similarities. ignore-imports=3Dyes +ignore-signatures=3Dyes =20 # Minimum lines number of a similarity. # TODO: Remove after we opt in to Pylint 2.8.3. See commit msg. --=20 2.30.2 From nobody Wed May 8 02:11:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1631896562403680.1880763238073; Fri, 17 Sep 2021 09:36:02 -0700 (PDT) Received: from localhost ([::1]:54406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRGqH-0006yy-En for importer@patchew.org; Fri, 17 Sep 2021 12:36:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGeU-0003ZW-GZ for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:52 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:34402) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRGeR-0005Y1-3r for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:49 -0400 Received: by mail-wr1-x431.google.com with SMTP id t8so9079748wri.1 for ; Fri, 17 Sep 2021 09:23:46 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id l7sm10455746wmp.48.2021.09.17.09.23.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 09:23:39 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C81FC1FF9E; Fri, 17 Sep 2021 17:23:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1NbYVxtWF/zYfxwuek6jd8ckhiFWufAXDeqjCWqUsbg=; b=SIbv10lVcAuqGYxPeMygWxQTm/+I8LQ6OeHmnqLtneZZTm/V6+RkMs/6GMtTTWeJ83 UWZi5K9VkEWp//miIBrwi1zIhdSErQ4iP05Lp4Ne7x3tihqeCJnuqr+I9AaBDxWG/sib KVCMNYN/WSbF/B+tFm2CfksggdCRzTj3bdOO3oXKb6s/abnJzN26nfugOOalt8BxI+y0 jMYjeCLeHqdifUn3vQsTZT1uN+X0mPeMMYicBEb5an/ieIxsU6m3KN4upKd0bwLa163b GYAOnsV9BN30PlgioipXyH/e4ZbXBF8TPrJN7+WKoUSUMXHUKVJc/ZqtpwcEKDtSR1yw gx9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1NbYVxtWF/zYfxwuek6jd8ckhiFWufAXDeqjCWqUsbg=; b=nux4rsjU07w1v+15GJ2RH9cFRfvj4h4pVvCcBkPghNLJDsLVmw2wB0svjymEZpIQcm VHnD6USVoGSkKyg5LHElJtFor7NVkXYcKOake9By8o3JE3AeSTO6a5TfvM6xaQHG0I0O AGx7BxtPbjdtuiWm8imFvTn4YNL+J+hJO2zdPXmwznoGFldAq39vl9iTaRDm8r7cCJFg 9Yy92/KXHT02B0jjbbV8y923NA7ExuROeaCzU5IvX/R9yxesA+c+NOz9OH/RFWkX1bri fbcSyQcafoa8vcV4JZ6DCMI78fm3cmlZ5pUBH7Yj2mM6wxVivdfvC9ZGC8FMHgdthiYC pVjg== X-Gm-Message-State: AOAM532GjrUMKkIshjerEA6v2c4hxa29VyhPm5ICZMeo6DKb2lDRuDqC 6NiIEKM0NxVAAPV2+GUEhX9/vBqpu2bsMQ== X-Google-Smtp-Source: ABdhPJxVCzsKwalRvR5SRqMGQze/V7kfMpfF1+lgJLPwQiUWqXJZZ+XOnbonnH1QRJjjl8svUgnTCg== X-Received: by 2002:adf:f48b:: with SMTP id l11mr13136697wro.254.1631895825755; Fri, 17 Sep 2021 09:23:45 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 07/11] travis.yml: Remove the "Release tarball" job Date: Fri, 17 Sep 2021 17:23:28 +0100 Message-Id: <20210917162332.3511179-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210917162332.3511179-1-alex.bennee@linaro.org> References: <20210917162332.3511179-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x431.google.com 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 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: fam@euphon.net, Thomas Huth , berrange@redhat.com, f4bug@amsat.org, Wainer dos Santos Moschetta , Willian Rampazzo , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1631896563610100003 From: Thomas Huth This is a leftover from the days when we were using Travis excessively, but since x86 jobs are not really usable there anymore, this job has likely never been used since many months. Let's simply remove it now. Signed-off-by: Thomas Huth Reviewed-by: Daniel P. Berrang=C3=A9 Message-Id: <20210917094826.466047-1-thuth@redhat.com> Signed-off-by: Alex Benn=C3=A9e --- .travis.yml | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0faddf7b4e..41010ebe6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -305,26 +305,3 @@ jobs: - CONFIG=3D"--disable-containers --disable-tcg --enable-kvm --disable-tools --host-cc=3Dclang --cxx=3Dclang++" - UNRELIABLE=3Dtrue - - # Release builds - # The make-release script expect a QEMU version, so our tag must start= with a 'v'. - # This is the case when release candidate tags are created. - - name: "Release tarball" - if: tag IS present AND tag =3D~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ - env: - # We want to build from the release tarball - - BUILD_DIR=3D"release/build/dir" SRC_DIR=3D"../../.." - - BASE_CONFIG=3D"--prefix=3D$PWD/dist" - - CONFIG=3D"--target-list=3Dx86_64-softmmu,aarch64-softmmu,armeb-l= inux-user,ppc-linux-user" - - TEST_CMD=3D"make install -j${JOBS}" - - QEMU_VERSION=3D"${TRAVIS_TAG:1}" - - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-gcc-default" - script: - - make -C ${SRC_DIR} qemu-${QEMU_VERSION}.tar.bz2 - - ls -l ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 - - tar -xf ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 && cd qemu-${QEM= U_VERSION} - - mkdir -p release-build && cd release-build - - ../configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-= logs/meson-log.txt && exit 1; } - - make install - allow_failures: - - env: UNRELIABLE=3Dtrue --=20 2.30.2 From nobody Wed May 8 02:11:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1631896661085335.77592270401476; Fri, 17 Sep 2021 09:37:41 -0700 (PDT) Received: from localhost ([::1]:60282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRGrr-0002Ym-Vw for importer@patchew.org; Fri, 17 Sep 2021 12:37:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGeP-0003Vr-PU for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:46 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:51757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRGeO-0005VG-B5 for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:45 -0400 Received: by mail-wm1-x331.google.com with SMTP id y132so7791726wmc.1 for ; Fri, 17 Sep 2021 09:23:43 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id c30sm7170571wrb.74.2021.09.17.09.23.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 09:23:39 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id DF9141FF9F; Fri, 17 Sep 2021 17:23:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4j01yZVL1S/7C/x7Jm6reKhaa846Ap6IiDn68rRko7k=; b=jlN0/t9Ee94zIFJdroTcD6O8htohy82BM/DA8MulihfLTVUNBeln5C2DT8kTPYWNfD nIFYOU3pmaJi64rMPdaUwLUBbHtUsrFCs6p2/0EjIkcpHX74LVzBJ9yCsYKUr9ygU2ce kVQ5ezy6AQtYKL9iQwUoddE7Qqxt3uyfnuZwMzdiiDlOMupD0E2H+xYBSRd5i8LjaI0K yNnwBeX+VlldNFfUGVH3iMUoSvQHrXbMl8O+WHWACzxkBcuhZ2fGc4jdVqrPxz33JIkP z1C2AjeGNJvxLCs9Nefw4fr8s+i4N4VYog3h3CZi11n0a67BIGADFBfvpirAZuw21tDK YKrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4j01yZVL1S/7C/x7Jm6reKhaa846Ap6IiDn68rRko7k=; b=T8raZtVrE2DAhvG6hfdcu69V/hSXI1ezreOAxJzupe4t1sk/wnTIVpIboHH7O+kvWW 9WLlq8yWjL/Yxegivi6gG6fuPJTfaPGUJfPZpAfpsng6aBKRNhnnlThavOukfgXf5koi 3mXScOfQZ0EdPvQz9A9hdDsvL5mfO4rVeZDl//6HB7IjwPc2vmUNtrrnwfCP30iu0B4I 17VQgCblWou+4Fa43U1zXCiRm8bqadJBVJsRUI6o5aA3k2tZCpt50dx/MrfVk5B9S8JM VrrWSaZThFoGi4fAhVXBQko+x4dt2KSLDYq9nIpalffOvP2XaMrm4zYTWaMYlaI0F7BY XZyQ== X-Gm-Message-State: AOAM531qDgppiKkOHAyFhOKbYxj7my1TdmnAP6KxhTUA1tu4xwpsr8PW OKO2G+MtApF0booVQJkNHNgKnQ== X-Google-Smtp-Source: ABdhPJwDnjtxPg9xmjk+WH9E1fSiW8wmGA26zAesRPHJB/NZCdMNpORBwzzN6vrJizfqPuxC0lO2mw== X-Received: by 2002:a1c:8b:: with SMTP id 133mr10430601wma.29.1631895822907; Fri, 17 Sep 2021 09:23:42 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 08/11] gitlab: skip the check-patch job on the upstream repo Date: Fri, 17 Sep 2021 17:23:29 +0100 Message-Id: <20210917162332.3511179-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210917162332.3511179-1-alex.bennee@linaro.org> References: <20210917162332.3511179-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.google.com 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 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: fam@euphon.net, Thomas Huth , berrange@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson , f4bug@amsat.org, Wainer dos Santos Moschetta , Willian Rampazzo , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1631896662065100001 From: Daniel P. Berrang=C3=A9 The check-patch job is intended to be used by contributors or subsystem maintainers to see if there are style mistakes. The false positive rate is too high to be used in a gating scenario so should not run it on the upstream repo ever. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Thomas Huth Reviewed-by: Richard Henderson Message-Id: <20210915125452.1704899-2-berrange@redhat.com> Signed-off-by: Alex Benn=C3=A9e --- .gitlab-ci.d/static_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.d/static_checks.yml b/.gitlab-ci.d/static_checks.yml index 96dbd9e310..902843f8b3 100644 --- a/.gitlab-ci.d/static_checks.yml +++ b/.gitlab-ci.d/static_checks.yml @@ -8,7 +8,7 @@ check-patch: variables: GIT_DEPTH: 1000 rules: - - if: '$CI_PROJECT_NAMESPACE =3D=3D "qemu-project" && $CI_COMMIT_BRANC= H =3D=3D $CI_DEFAULT_BRANCH' + - if: '$CI_PROJECT_NAMESPACE =3D=3D "qemu-project"' when: never - when: on_success allow_failure: true --=20 2.30.2 From nobody Wed May 8 02:11:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1631896810741645.4629038049221; Fri, 17 Sep 2021 09:40:10 -0700 (PDT) Received: from localhost ([::1]:37152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRGuH-00061S-En for importer@patchew.org; Fri, 17 Sep 2021 12:40:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGeW-0003aG-Jw for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:54 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:40842) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRGeT-0005Zp-CG for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:52 -0400 Received: by mail-wr1-x431.google.com with SMTP id q26so16069458wrc.7 for ; Fri, 17 Sep 2021 09:23:48 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id k4sm7033074wrv.24.2021.09.17.09.23.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 09:23:40 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id EEB7D1FFA5; Fri, 17 Sep 2021 17:23:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3Az4pZ3XvTnpuRBtAzS02EJrfreh1NdaE7t3x5B1fQ0=; b=ASCJRR3VwMKORKBhVkpyJO3+oRDRiGm3IF78c3cAVswPd+y/McoUXUMw3i81j0EPUU RBx1QqXXem06fczLibDJdFSYq/+YO9YVmX9PLQ7rckeMmPHsjdrLWm7afbhIoYvbkI0L ghWK7DySdRe+J8P0RIGVgizGyuomEGnPN2eCOsbCf5GW6Z/Qyu2HO9NjhY6sX1A2rNQt Jtrq6dKSZsVIPqjwQGndZymzs43HGsScVsuBMNtXmCK+YDbVMVl9D3aqSec5C6XTX4c0 a4aGY6hmnN5LdrClqn8oWzUdFkx5y6UFUXnf8y4qcjni4zFfNIuJgyKDSwVrMQCUwtp/ 1KXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3Az4pZ3XvTnpuRBtAzS02EJrfreh1NdaE7t3x5B1fQ0=; b=f+NwCq4GMeB3oAsVjV4GxpKy1yBNdZkf577Yfgi0rGt7NOaLkuceAK9nSMAbf/nZoL lG63Z7+44ecMmpu3WqevAvM2+bAc5nV3DS11FAUikpZlZkUe99TkUKCquizp2ElKjFks 6PY95GNvqcmLqHIvLnlXM73bc6Sb3mj5owvCy7Jtj3biYxS/UCwE/ensqccw6u1tPnbq dFq7e7p1a+LBaRFQcrRRMJGsjwhg0P8lg7/zWKUJnlGzPIOcOhJhMg0qcjIdL7m/jvxa ScoOtb06JTwkhKCI02h9wRxvLYXHVK7LM2w9YL/oFLazu2F0sCVW2EWHT2QjQLgsaIxo hWbA== X-Gm-Message-State: AOAM533+TETVoGTfAkWeXSeRbbrFMNtgJp6Sm/AjBZdFPvfR0jEdeN9Q XnAzgc2HXlDEyehiO6sAZqlEGA== X-Google-Smtp-Source: ABdhPJy+1mHTrROChaYmLBUS+6cXkXPIo+MfogcvkDrIDpocMbtlpu85Fojz2WXC1HPGmy81N/Rb1Q== X-Received: by 2002:adf:ed82:: with SMTP id c2mr13208571wro.203.1631895827893; Fri, 17 Sep 2021 09:23:47 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 09/11] gitlab: fix passing of TEST_TARGETS env to cirrus Date: Fri, 17 Sep 2021 17:23:30 +0100 Message-Id: <20210917162332.3511179-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210917162332.3511179-1-alex.bennee@linaro.org> References: <20210917162332.3511179-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x431.google.com 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 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: fam@euphon.net, Thomas Huth , berrange@redhat.com, Richard Henderson , f4bug@amsat.org, Wainer dos Santos Moschetta , Willian Rampazzo , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1631896812159100001 From: Daniel P. Berrang=C3=A9 A typo meant the substitution would not work, and the placeholder in the target file didn't even exist. The result was that tests were never run on the FreeBSD and macOS jobs, only a basic build. Signed-off-by: Daniel P. Berrang=C3=A9 Acked-by: Thomas Huth Reviewed-by: Willian Rampazzo Reviewed-by: Richard Henderson Message-Id: <20210915125452.1704899-3-berrange@redhat.com> Signed-off-by: Alex Benn=C3=A9e --- .gitlab-ci.d/cirrus.yml | 2 +- .gitlab-ci.d/cirrus/build.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.d/cirrus.yml b/.gitlab-ci.d/cirrus.yml index 675db69622..e7b25e7427 100644 --- a/.gitlab-ci.d/cirrus.yml +++ b/.gitlab-ci.d/cirrus.yml @@ -35,7 +35,7 @@ -e "s|[@]PIP3@|$PIP3|g" -e "s|[@]PYPI_PKGS@|$PYPI_PKGS|g" -e "s|[@]CONFIGURE_ARGS@|$CONFIGURE_ARGS|g" - -e "s|[@]TEST_TARGETSS@|$TEST_TARGETSS|g" + -e "s|[@]TEST_TARGETS@|$TEST_TARGETS|g" <.gitlab-ci.d/cirrus/build.yml >.gitlab-ci.d/cirrus/$NAME.yml - cat .gitlab-ci.d/cirrus/$NAME.yml - cirrus-run -v --show-build-log always .gitlab-ci.d/cirrus/$NAME.yml diff --git a/.gitlab-ci.d/cirrus/build.yml b/.gitlab-ci.d/cirrus/build.yml index 857bdc5536..c555f5d36e 100644 --- a/.gitlab-ci.d/cirrus/build.yml +++ b/.gitlab-ci.d/cirrus/build.yml @@ -13,6 +13,7 @@ env: PYTHON: "@PYTHON@" MAKE: "@MAKE@" CONFIGURE_ARGS: "@CONFIGURE_ARGS@" + TEST_TARGETS: "@TEST_TARGETS@" =20 build_task: install_script: --=20 2.30.2 From nobody Wed May 8 02:11:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1631896948423743.6615913161451; Fri, 17 Sep 2021 09:42:28 -0700 (PDT) Received: from localhost ([::1]:41956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRGwV-00011k-6g for importer@patchew.org; Fri, 17 Sep 2021 12:42:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGeY-0003aZ-G6 for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:54 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:37499) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRGeU-0005ab-8w for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:54 -0400 Received: by mail-wr1-x42a.google.com with SMTP id t8so16085849wrq.4 for ; Fri, 17 Sep 2021 09:23:49 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id y1sm7318128wmq.43.2021.09.17.09.23.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 09:23:40 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 114811FFA6; Fri, 17 Sep 2021 17:23:33 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=h2a/fqMAvfvd62I27PQxa6vTnXLDXdirz0neaQPZpwY=; b=H13w2seVe30qGiqpDyrDiy4MnZQ2JjvG3CJ5p5v77tygYXqSF7HQ9yfnsoMAmX1lK1 JBr389uuWq7ecLuQ03qVzUMKwm65HdyQqqvQR5rQ7Bq7z+U57t0z9wkvYCjltG2mggbj lChRIU4/fTJE94795l8i0EFP19uimjLyhPc2SLb/Gng6GkqyDMRBGUEHt2/uilFLErnc +DIQzOiQdy1wV9CXyCAACXUzLT5WEDYZbl7cVVNXSWttDh6Zsfcnq6g8Clj+1ZLYq9+2 Z41VVN515iLREDZGJ6vncBprR10IDHxVYQeyBRwPE5jWnNEFydhjkoonjqtrCb/eO2c5 1YpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=h2a/fqMAvfvd62I27PQxa6vTnXLDXdirz0neaQPZpwY=; b=kIYDXF99gj7/4iF6ZJbJgozGZn+0eFSpTBTCaRLKV6Ku+oq2k1u7L3Jbl/ktAHxPB9 OwVKbP2kxxcDJ64cV2uhS9p4zuA+MSzL41Qc6xBXtTmuXFXOs3BV4EzgBt1qmRi6dwxl R0u+Eiiz34QbuKdxt3RQPPK+TubvUp2OBfFxsmue84dcv+zF4+SkGQjB9Ajpf2YFl5HR ZNP3NOFPz7yuNimDgaxAv0OJEdQyp6vSevEKHPjO5G+dKyTEa6Low/2+8UCgDbi/ig7p uzRu+JlguhJrh2vXxcLk/OLMjvtWHQIeS+eRO7taHJCxJYnLXSdbhFLI/lsa4r6L6ZCb DT6Q== X-Gm-Message-State: AOAM531/AF5ItCbnk/mPkWesoRv3mmU93wBACW46cc4S1hrPbfm1hxD1 E5R9kjt7dUyLGoWd+sI1sd7rBw== X-Google-Smtp-Source: ABdhPJyMUKRfer1bzF9RaYqLy5SawJVql6L9O7hi1vVx009oxsj4D6G/D8Ohd43Jr8fbJhqD/SnTAw== X-Received: by 2002:a5d:5408:: with SMTP id g8mr13391466wrv.34.1631895828577; Fri, 17 Sep 2021 09:23:48 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 10/11] plugins/: Add missing functions to symbol list Date: Fri, 17 Sep 2021 17:23:31 +0100 Message-Id: <20210917162332.3511179-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210917162332.3511179-1-alex.bennee@linaro.org> References: <20210917162332.3511179-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.google.com 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 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: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, =?UTF-8?q?Lukas=20J=C3=BCnger?= , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, Mahmoud Mandour , Alexandre Iooss , =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1631896949587100001 From: Lukas J=C3=BCnger Some functions of the plugin API were missing in the symbol list. However, they are all used by the contributed example plugins. QEMU fails to load the plugin if the function symbol is not exported. Signed-off-by: Lukas J=C3=BCnger Message-Id: <20210905140939.638928-2-lukas.junger@greensocs.com> Signed-off-by: Alex Benn=C3=A9e --- plugins/qemu-plugins.symbols | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/qemu-plugins.symbols b/plugins/qemu-plugins.symbols index 67b309ea2a..4834756ba3 100644 --- a/plugins/qemu-plugins.symbols +++ b/plugins/qemu-plugins.symbols @@ -1,11 +1,14 @@ { qemu_plugin_bool_parse; qemu_plugin_get_hwaddr; + qemu_plugin_hwaddr_device_name; qemu_plugin_hwaddr_is_io; + qemu_plugin_hwaddr_phys_addr; qemu_plugin_insn_data; qemu_plugin_insn_disas; qemu_plugin_insn_haddr; qemu_plugin_insn_size; + qemu_plugin_insn_symbol; qemu_plugin_insn_vaddr; qemu_plugin_mem_is_big_endian; qemu_plugin_mem_is_sign_extended; --=20 2.30.2 From nobody Wed May 8 02:11:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1631896664169259.64859154148724; Fri, 17 Sep 2021 09:37:44 -0700 (PDT) Received: from localhost ([::1]:60464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRGrv-0002g6-5n for importer@patchew.org; Fri, 17 Sep 2021 12:37:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGeY-0003aO-61 for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:54 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:36357) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRGeW-0005dE-C1 for qemu-devel@nongnu.org; Fri, 17 Sep 2021 12:23:53 -0400 Received: by mail-wr1-x431.google.com with SMTP id g16so16074068wrb.3 for ; Fri, 17 Sep 2021 09:23:51 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id r129sm7138432wmr.7.2021.09.17.09.23.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 09:23:40 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2115F1FFA9; Fri, 17 Sep 2021 17:23:33 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GCZPVLj0653u4cTSSRRcYrTh9dJINc809P2AzsfKj0E=; b=lLMV/QlCkIR610MvZSHRJ50xu6QlYWL9widoi/3/+oO9WPFNnnwtG6PHldVffkJ5FR GGbnkOXBLlC9VUnbFXdosWeWbAdmeVd5jo97Op5YBec3x5AJ4toa/W3APUcq/kbUGS// zTinekuR5as0gmpIazRdKs/V7I+mYCA+3RNMtb6UyJAZOxRenmCkcjo68PJXlIscYixc n86AC1DaguBAZrPz/yrT3Uux7Cxa6Lo83ZKNN5CkRqVGmEi/uiAgqHRVFSoRclf+IvkJ SAX5XFtEXrhL7NtvxlJb4Mw/zVZgmiqOiketCZCVhd1NDI+6O3p1PpqCXdQ/TTbjdTLh /0pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GCZPVLj0653u4cTSSRRcYrTh9dJINc809P2AzsfKj0E=; b=ulA0AS5BxIa9n6nUbHlo7weqvQRsH6aEyQegA77Ll3fsqpWraAEE33IAtugsV8kYDG UF1KrFXfMPidy6u4r7g0PNaG3mBc+GDiRvlHT/z+O3FxVAU9Sj9V+Ga72rUnmMd0cLpY 2kxcvkxfrz5ehh7w2QG9SKaATzvVdYRI13CmXP3ZotXENFgjcrEIm5SOGQyiltUpiBhO nRJqDvbjxnsp0jYq6JW1oE0kC12SOlJLzTntUkJ2BLqXLd1k2XylcPD2He9NpxX5alFY meG3EKA6HWTpfAiNs7Zi5D/AfwQ8ONojc/1j8nX2kXy9m+JAzM5sr0q4EoApP7q0WjeP qhVQ== X-Gm-Message-State: AOAM531ArHFOBXeIL/c+QwJthrrJxTFSHbefP5oxsQrxYr8TkwYMfJjG HXqP938lqSPoGtOKYL9Pq78Pdw== X-Google-Smtp-Source: ABdhPJwnWiLkzNmfyRsdYgXlflwOXv8tITuq3QrP8V5oeYAdcKK9/Rr37LN6hr7EB+v9Jli3KundKA== X-Received: by 2002:a5d:59a4:: with SMTP id p4mr12917545wrr.332.1631895830714; Fri, 17 Sep 2021 09:23:50 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 11/11] accel/tcg: re-factor plugin_inject_cb so we can assert insn_idx is valid Date: Fri, 17 Sep 2021 17:23:32 +0100 Message-Id: <20210917162332.3511179-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210917162332.3511179-1-alex.bennee@linaro.org> References: <20210917162332.3511179-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x431.google.com 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 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: fam@euphon.net, Peter Maydell , berrange@redhat.com, Richard Henderson , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1631896666413100001 Coverity doesn't know enough about how we have arranged our plugin TCG ops to know we will always have incremented insn_idx before injecting the callback. Let us assert it for the benefit of Coverity and protect ourselves from accidentally breaking the assumption and triggering harder to grok errors deeper in the code if we attempt a negative indexed array lookup. However to get to this point we re-factor the code and remove the second hand instruction boundary detection in favour of scanning the full set of ops and using the existing INDEX_op_insn_start to cleanly detect when the instruction has started. As we no longer need the plugin specific list of ops we delete that. My initial benchmarks shows no discernible impact of dropping the plugin specific ops list. Fixes: Coverity 1459509 Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson Cc: Peter Maydell --- v2/v3 - re-factor and drop the plugin_op/link approach --- include/tcg/tcg.h | 6 -- accel/tcg/plugin-gen.c | 157 ++++++++++++++++++++++------------------- 2 files changed, 85 insertions(+), 78 deletions(-) diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index 44ccd86f3e..a7f6475348 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -492,9 +492,6 @@ typedef struct TCGOp { =20 /* Next and previous opcodes. */ QTAILQ_ENTRY(TCGOp) link; -#ifdef CONFIG_PLUGIN - QSIMPLEQ_ENTRY(TCGOp) plugin_link; -#endif =20 /* Arguments for the opcode. */ TCGArg args[MAX_OPC_PARAM]; @@ -604,9 +601,6 @@ struct TCGContext { =20 /* descriptor of the instruction being translated */ struct qemu_plugin_insn *plugin_insn; - - /* list to quickly access the injected ops */ - QSIMPLEQ_HEAD(, TCGOp) plugin_ops; #endif =20 GHashTable *const_table[TCG_TYPE_COUNT]; diff --git a/accel/tcg/plugin-gen.c b/accel/tcg/plugin-gen.c index 88e25c6df9..f145b815c0 100644 --- a/accel/tcg/plugin-gen.c +++ b/accel/tcg/plugin-gen.c @@ -163,11 +163,7 @@ static void gen_empty_mem_helper(void) static void gen_plugin_cb_start(enum plugin_gen_from from, enum plugin_gen_cb type, unsigned wr) { - TCGOp *op; - tcg_gen_plugin_cb_start(from, type, wr); - op =3D tcg_last_op(); - QSIMPLEQ_INSERT_TAIL(&tcg_ctx->plugin_ops, op, plugin_link); } =20 static void gen_wrapped(enum plugin_gen_from from, @@ -707,62 +703,6 @@ static void plugin_gen_disable_mem_helper(const struct= qemu_plugin_tb *ptb, inject_mem_disable_helper(insn, begin_op); } =20 -static void plugin_inject_cb(const struct qemu_plugin_tb *ptb, TCGOp *begi= n_op, - int insn_idx) -{ - enum plugin_gen_from from =3D begin_op->args[0]; - enum plugin_gen_cb type =3D begin_op->args[1]; - - switch (from) { - case PLUGIN_GEN_FROM_TB: - switch (type) { - case PLUGIN_GEN_CB_UDATA: - plugin_gen_tb_udata(ptb, begin_op); - return; - case PLUGIN_GEN_CB_INLINE: - plugin_gen_tb_inline(ptb, begin_op); - return; - default: - g_assert_not_reached(); - } - case PLUGIN_GEN_FROM_INSN: - switch (type) { - case PLUGIN_GEN_CB_UDATA: - plugin_gen_insn_udata(ptb, begin_op, insn_idx); - return; - case PLUGIN_GEN_CB_INLINE: - plugin_gen_insn_inline(ptb, begin_op, insn_idx); - return; - case PLUGIN_GEN_ENABLE_MEM_HELPER: - plugin_gen_enable_mem_helper(ptb, begin_op, insn_idx); - return; - default: - g_assert_not_reached(); - } - case PLUGIN_GEN_FROM_MEM: - switch (type) { - case PLUGIN_GEN_CB_MEM: - plugin_gen_mem_regular(ptb, begin_op, insn_idx); - return; - case PLUGIN_GEN_CB_INLINE: - plugin_gen_mem_inline(ptb, begin_op, insn_idx); - return; - default: - g_assert_not_reached(); - } - case PLUGIN_GEN_AFTER_INSN: - switch (type) { - case PLUGIN_GEN_DISABLE_MEM_HELPER: - plugin_gen_disable_mem_helper(ptb, begin_op, insn_idx); - return; - default: - g_assert_not_reached(); - } - default: - g_assert_not_reached(); - } -} - /* #define DEBUG_PLUGIN_GEN_OPS */ static void pr_ops(void) { @@ -820,21 +760,95 @@ static void pr_ops(void) static void plugin_gen_inject(const struct qemu_plugin_tb *plugin_tb) { TCGOp *op; - int insn_idx; + int insn_idx =3D -1; =20 pr_ops(); - insn_idx =3D -1; - QSIMPLEQ_FOREACH(op, &tcg_ctx->plugin_ops, plugin_link) { - enum plugin_gen_from from =3D op->args[0]; - enum plugin_gen_cb type =3D op->args[1]; - - tcg_debug_assert(op->opc =3D=3D INDEX_op_plugin_cb_start); - /* ENABLE_MEM_HELPER is the first callback of an instruction */ - if (from =3D=3D PLUGIN_GEN_FROM_INSN && - type =3D=3D PLUGIN_GEN_ENABLE_MEM_HELPER) { + + QTAILQ_FOREACH(op, &tcg_ctx->ops, link) { + switch (op->opc) { + case INDEX_op_insn_start: insn_idx++; + break; + case INDEX_op_plugin_cb_start: + { + enum plugin_gen_from from =3D op->args[0]; + enum plugin_gen_cb type =3D op->args[1]; + + switch (from) { + case PLUGIN_GEN_FROM_TB: + { + g_assert(insn_idx =3D=3D -1); + + switch (type) { + case PLUGIN_GEN_CB_UDATA: + plugin_gen_tb_udata(plugin_tb, op); + break; + case PLUGIN_GEN_CB_INLINE: + plugin_gen_tb_inline(plugin_tb, op); + break; + default: + g_assert_not_reached(); + } + break; + } + case PLUGIN_GEN_FROM_INSN: + { + g_assert(insn_idx >=3D 0); + + switch (type) { + case PLUGIN_GEN_CB_UDATA: + plugin_gen_insn_udata(plugin_tb, op, insn_idx); + break; + case PLUGIN_GEN_CB_INLINE: + plugin_gen_insn_inline(plugin_tb, op, insn_idx); + break; + case PLUGIN_GEN_ENABLE_MEM_HELPER: + plugin_gen_enable_mem_helper(plugin_tb, op, insn_idx); + break; + default: + g_assert_not_reached(); + } + break; + } + case PLUGIN_GEN_FROM_MEM: + { + g_assert(insn_idx >=3D 0); + + switch (type) { + case PLUGIN_GEN_CB_MEM: + plugin_gen_mem_regular(plugin_tb, op, insn_idx); + break; + case PLUGIN_GEN_CB_INLINE: + plugin_gen_mem_inline(plugin_tb, op, insn_idx); + break; + default: + g_assert_not_reached(); + } + + break; + } + case PLUGIN_GEN_AFTER_INSN: + { + g_assert(insn_idx >=3D 0); + + switch (type) { + case PLUGIN_GEN_DISABLE_MEM_HELPER: + plugin_gen_disable_mem_helper(plugin_tb, op, insn_idx); + break; + default: + g_assert_not_reached(); + } + break; + } + default: + g_assert_not_reached(); + } + break; + } + default: + /* plugins don't care about any other ops */ + break; } - plugin_inject_cb(plugin_tb, op, insn_idx); } pr_ops(); } @@ -847,7 +861,6 @@ bool plugin_gen_tb_start(CPUState *cpu, const Translati= onBlock *tb, bool mem_onl if (test_bit(QEMU_PLUGIN_EV_VCPU_TB_TRANS, cpu->plugin_mask)) { ret =3D true; =20 - QSIMPLEQ_INIT(&tcg_ctx->plugin_ops); ptb->vaddr =3D tb->pc; ptb->vaddr2 =3D -1; get_page_addr_code_hostp(cpu->env_ptr, tb->pc, &ptb->haddr1); --=20 2.30.2