From patchwork Wed Sep 25 17:11:32 2024 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: 830478 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1374:b0:367:895a:4699 with SMTP id q20csp856305wrz; Wed, 25 Sep 2024 10:12:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU3ICN+hezQK0AdHty5CratTwPLNMXNvRla6DEbVolUAhv67FTU8AjZwiZmZVWtE9yPJdSqJQ==@linaro.org X-Google-Smtp-Source: AGHT+IGngwPstrsNX2a9AFqsC8H80Vk4RZUJ1BGqRyOgECdkX7V53HFi1bvA2ln0Rfb1cL4j6xEQ X-Received: by 2002:a05:622a:152:b0:457:f8b1:a042 with SMTP id d75a77b69052e-45b5def4947mr51096391cf.33.1727284374844; Wed, 25 Sep 2024 10:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727284374; cv=none; d=google.com; s=arc-20240605; b=DX9c75jYaAErmLAP5MR5xOLWUz6D23H26r/z7ssw3/0Xlz/Gk0bn/lYVipvaEGSHIS EpRpbMEjz+KJYvTgKy3D97VurHnBJS4jJV8epwKdva7SWIWNe3+WY/Ftg3bfmlXIsYdE rYjQf7yTtYQffCyGtRBFMhv0nsCpfCpMZU+kw4qEHfn9BE43pj0/T4HvDzGWn2+wbXlN 17MErEe4Y+c91F0VJNzPVVZoR8Wp8iT4gEDEdVEBanhgx7dbejFfJVoCPxOu+YcwQ/Ky aPb5RkVQ+GjrWBq5CxxA7W6XGJKn0ouAWRmGb9HrkNHoxAR9+vmWePsUMYBp5lGzaWbW AIMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FXjwiUjPDmRUKmjejukivCx1FVXlutJ/frWtXF30WgI=; fh=bhMV5gdVbu13jqnF/jARfHEflCpVPSLbnzD7kGOjemw=; b=OudBHx8qmZb3ZoQjs/LyRgFvUv9qzaBx0YeWj2pFfYRAiz6OU6NtmyE85Qy79QmNby 0NMFwKD0526hyRVt5Lf/8UbYkUlVgtv9jiLDC6wrJ0tbZLKEuE4DkpaBRnaKSHHkFjmr /880XKyUhbRsvOv+o6fCjvrXpoXEv4ln74At1IxZ3rCayj8LNmlVblmbY7Flt4AQFyx/ CUS2+eXlKLgTYGKUfqz6WBGcS36YYZ550kJDrK/8toHRKAiiId6SFOSxkOSzXdxM4TgX O/ynYsCyi3nYTFYWJjrnrtAr3A8iclhG0+z5OPBSCx/T07RLrVbvf0I6paFLn0DYdZAJ CIvw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DmvUCoMW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b526f3c72si41657281cf.529.2024.09.25.10.12.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Sep 2024 10:12:54 -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=pass header.i=@linaro.org header.s=google header.b=DmvUCoMW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stVYd-0000rg-An; Wed, 25 Sep 2024 13:12:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stVYR-0000Kk-Ej for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:55 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stVYM-0000bi-12 for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:53 -0400 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3770320574aso10932f8f.2 for ; Wed, 25 Sep 2024 10:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727284307; x=1727889107; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FXjwiUjPDmRUKmjejukivCx1FVXlutJ/frWtXF30WgI=; b=DmvUCoMWt6YjzQP5P9iNrwQIT794xzg1V+2HKnXggV2KY56PniGD3AHAQXp43laCqG I96q95z4osqcz05t+VfffePQgkvlKUuKpd36LJARnVjiyNC6buf3LeCboPoUyiDnMbIm k9gzTGec18NfMoBLbsyqyoRv/rIhEn1ieUdqUxInd6WxPdxH+uS8ht4yDsX/4A8sTnep WFLm6LxUAg38ltdBr7UMUsHAwAJfY6udakoNB97gkQdIevaON8HYeNaf+QbF6dg3JVTh w5vMPcyShbGyMjhFOmbBoK+5ooU6qyinH0TfE4viO1eH4mVu+LnsQd3Lu3biYgXc8oU8 Ey5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727284307; x=1727889107; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FXjwiUjPDmRUKmjejukivCx1FVXlutJ/frWtXF30WgI=; b=PeOOQoyRHbdnqhVQ3kKpGS1xukwkGOBdd2Bh9h88c3vBWYbtS6bNah3TMMYFcwZY+e 6ghC/0lWJWKZP1o6+ATbKG1jwcjIz7nFS6HiEUfo8Pbd1geBwjnF5i/93RVgJi2LS4WT hRUfF8caAzx9hG9LIQysN7x8zhywaP6Xzkj51H44fEbimR2+k5ujp1veq5cwmf5O4r2Q OFL/vFcCc2OIRsF5f1UOLQIZgikjVtlPUsU3qfQbABERkIYRlfhXWlMHhQOJngD17b5P Onwk4TIf2D8Qamj9UaEXBQRyoZ9piQSoFTqHcy5b8vsQd66zrYJ9dKxR7PNIcZivpCaw T+iw== X-Gm-Message-State: AOJu0YydLh+g+P475EgISW9e+sIqCcr5H7nxnoAyob3ZpfvYvpj8aCS/ SI+Mfp8xMaRFnY8VSEw5OhjC8H3jUSYRqJYIykytRFZ0+lVX5FD17PdGS5Acwiw= X-Received: by 2002:a5d:6685:0:b0:374:c977:7453 with SMTP id ffacd0b85a97d-37cc24762e0mr2263987f8f.25.1727284307287; Wed, 25 Sep 2024 10:11:47 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e90274aa0sm35547145e9.0.2024.09.25.10.11.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 10:11:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 8619C5F92F; Wed, 25 Sep 2024 18:11:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Zhao Liu , "Edgar E. Iglesias" , Marcel Apfelbaum , Alexandre Iooss , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Mahmoud Mandour , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , Richard Henderson , Paolo Bonzini , Eduardo Habkost , Pierrick Bouvier , Wainer dos Santos Moschetta , kvm@vger.kernel.org, Jiaxun Yang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , qemu-arm@nongnu.org, Peter Maydell , devel@lists.libvirt.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Marcelo Tosatti , Laurent Vivier , Yanan Wang , Thomas Huth , Beraldo Leal , Ilya Leoshkevich Subject: [PATCH 02/10] tests/docker: Fix microblaze atomics Date: Wed, 25 Sep 2024 18:11:32 +0100 Message-Id: <20240925171140.1307033-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240925171140.1307033-1-alex.bennee@linaro.org> References: <20240925171140.1307033-1-alex.bennee@linaro.org> MIME-Version: 1.0 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: -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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Ilya Leoshkevich GCC produces invalid code for microblaze atomics. The fix is unfortunately not upstream, so fetch it from an external location and apply it locally. Suggested-by: Peter Maydell Signed-off-by: Ilya Leoshkevich Message-Id: <20240919152308.10440-1-iii@linux.ibm.com> Signed-off-by: Alex Bennée --- .../debian-microblaze-cross.d/build-toolchain.sh | 8 ++++++++ tests/docker/dockerfiles/debian-toolchain.docker | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/tests/docker/dockerfiles/debian-microblaze-cross.d/build-toolchain.sh b/tests/docker/dockerfiles/debian-microblaze-cross.d/build-toolchain.sh index 23ec0aa9a7..c5cd0aa931 100755 --- a/tests/docker/dockerfiles/debian-microblaze-cross.d/build-toolchain.sh +++ b/tests/docker/dockerfiles/debian-microblaze-cross.d/build-toolchain.sh @@ -10,6 +10,8 @@ TOOLCHAIN_INSTALL=/usr/local TOOLCHAIN_BIN=${TOOLCHAIN_INSTALL}/bin CROSS_SYSROOT=${TOOLCHAIN_INSTALL}/$TARGET/sys-root +GCC_PATCH0_URL=https://raw.githubusercontent.com/Xilinx/meta-xilinx/refs/tags/xlnx-rel-v2024.1/meta-microblaze/recipes-devtools/gcc/gcc-12/0009-Patch-microblaze-Fix-atomic-boolean-return-value.patch + export PATH=${TOOLCHAIN_BIN}:$PATH # @@ -31,6 +33,12 @@ mv gcc-11.2.0 src-gcc mv musl-1.2.2 src-musl mv linux-5.10.70 src-linux +# +# Patch gcc +# + +wget -O - ${GCC_PATCH0_URL} | patch -d src-gcc -p1 + mkdir -p bld-hdr bld-binu bld-gcc bld-musl mkdir -p ${CROSS_SYSROOT}/usr/include diff --git a/tests/docker/dockerfiles/debian-toolchain.docker b/tests/docker/dockerfiles/debian-toolchain.docker index 687a97fec4..ab4ce29533 100644 --- a/tests/docker/dockerfiles/debian-toolchain.docker +++ b/tests/docker/dockerfiles/debian-toolchain.docker @@ -10,6 +10,8 @@ FROM docker.io/library/debian:11-slim # ??? The build-dep isn't working, missing a number of # minimal build dependiencies, e.g. libmpc. +RUN sed 's/^deb /deb-src /' /etc/apt/sources.list.d/deb-src.list + RUN apt update && \ DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \ DEBIAN_FRONTEND=noninteractive eatmydata \ @@ -33,6 +35,11 @@ RUN cd /root && ./build-toolchain.sh # and the build trees by restoring the original image, # then copying the built toolchain from stage 0. FROM docker.io/library/debian:11-slim +RUN apt update && \ + DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \ + DEBIAN_FRONTEND=noninteractive eatmydata \ + apt install -y --no-install-recommends \ + libmpc3 COPY --from=0 /usr/local /usr/local # As a final step configure the user (if env is defined) ARG USER From patchwork Wed Sep 25 17:11:34 2024 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: 830474 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1374:b0:367:895a:4699 with SMTP id q20csp856167wrz; Wed, 25 Sep 2024 10:12:38 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUduW0uiiUzBsasJ642hTkmBye6gL9jIootxceiZtw7Yg6MDCduoVejdZIPIi6yHn0Bvv0UkA==@linaro.org X-Google-Smtp-Source: AGHT+IHlvnPoco5f7zgotQP6RuDTGBw1K47qRWFBqmDBCoJZAzJ/EICmE4P0jfw7bO3HOhrH5SQE X-Received: by 2002:a05:6214:469c:b0:6c3:5e7c:8613 with SMTP id 6a1803df08f44-6cb1dd400e7mr46637786d6.16.1727284358418; Wed, 25 Sep 2024 10:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727284358; cv=none; d=google.com; s=arc-20240605; b=GQ4psradvq7ShrxeipehB8025+taC++zIgV5hCVKEK3fxeenVUA1N5RjJ0Ws8OOFKg BXVOKx9JcByvMxsoz3zggJnTLY043oIsCnYNaPp+qJNbfA7vGm011h+lGxcyGdX22sIY Ynj9mm9nq5q23t4kTndtcKHWHZeXl9DxbaSG0n5020yunYMFRKHjbT6LbzNZDEWxxZQF zD/Cc8oA7EP8Y926g7pKtH/CFvCtFzu29OmmM4r/NI9P5eP1CgtBG3tWCd0/ctLNwpFM dxW2yBzFLvyPib7zONOE/X80jX3mfeWFnFJNZE0jUySYU49hN28egHzIiB6A1UrT0QQW ZpaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nULHsaLuBuujYUxGLl/yUjxpzYZCDveoFrPVw941m7Y=; fh=jOpm9kmPAspKh5iBNE/fo3cA2AnxrIpta9f9jvC2IBE=; b=eqqd0UJsYEDZmATH6tc5NBnmfLnJWUlSRFoAIrzI7A9eYrMQg6xWufB1LVCIrqmReJ lZ/+JOPqIRox5gb6lWljrKOBhwmk/216r9jzJvIdwf/Usk/id2TZqymkwZA0G2NdCh3Z NF83tPpgCY2gA1kAX+aejGpLYdZG2w7zESCGcQPeoJvTRlXD4cPjndMoG5iQV7dWhMIe GUEWk79lEE1rwyGOf1YLCeikoeE7yY3u5TaOZJguoRM38E446z+mXMzKh3PN1vLZkOkX ciXkrytwRZLSKVTvyJkR+Zgs8YXhW6KuSqmVKmxLpFZRHgoxEMxIkBu+gix8DDiqqIQz IF9Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dzRGTvWc; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6cb0f774bf6si44188416d6.260.2024.09.25.10.12.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Sep 2024 10:12:38 -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=pass header.i=@linaro.org header.s=google header.b=dzRGTvWc; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stVYT-0000MP-Tr; Wed, 25 Sep 2024 13:11:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stVYL-0000Ix-7W for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:50 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stVYJ-0000bG-9W for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:48 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-42e7b7bef42so146135e9.3 for ; Wed, 25 Sep 2024 10:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727284303; x=1727889103; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nULHsaLuBuujYUxGLl/yUjxpzYZCDveoFrPVw941m7Y=; b=dzRGTvWcNv9RjcdRDMFMPAsy48smb0H9FKAPk9C1Y28uFsjSdbMFUOdZC1k9Z+HKx5 0efMBKjBjjrlxp9w5qSWAs/wH3GNS7BXvv1NH6t8jlLIDuYv+ENeJtoS1ivnrbJ9lcwf 2BuwzEEw+wI9Ma+vCXbJMvxwspSfxfkSQqaXJuyYqQFepR/TL3IlF3ApMi55tuPB8jIV i9SeQymripEtxv9C09Lw5Uma7gQSYHrFWGgsD1gZuZyM9ZJJbERoSvtmdQg8XEVoK/6h 1Z9Rf+Aqp0Ni3VlEKJyqmwtDkmX7GT2hTKtEgh55FGQ/PyhlNX387wNgyX3WsGLmYFCN btIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727284303; x=1727889103; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nULHsaLuBuujYUxGLl/yUjxpzYZCDveoFrPVw941m7Y=; b=hPpbCnZRu7WQHkbO1i7EyCFFPMKO+hx+uJPBba8eaATF4tBIdB8iXw/nYr5m8I7sKv 0V0STVA/LZpTdMwYmOfUykjxqzYK+rCGRQPqNJwUtpaj/hbpCfdpZ5Cr4q8pRGFozH/h TUUsTqBj1Ygw9Vc5ZKdF/jo36eZtw1BVGrI/ZlXwAv69S8pNtP0Ssj4IELSqggrxdK/N 3O0tz4Pm46rtm3YPU4u20omx/EX9m92aZjoM9cTU3AFlFDvgZfF/Y/zPbPaiwsl9cf36 zJNgn09EpTtZ9tmDLl4P5gVKtgsAOlAGsQjMNWhyGbqM/0IyTb/FQTSkATFgtFpszQAn 56Hg== X-Gm-Message-State: AOJu0YzcUN/m17fOZJILEY/B/WmTREb/YGn8MdwdBwNiqUr2uNbS3e4I iXbLS2nqBqs5dlnK6MUAGvkViSepUt48rsJsawz+X6wypYTQkJpFaKNwcCSJB9g= X-Received: by 2002:adf:fa41:0:b0:368:4910:8f49 with SMTP id ffacd0b85a97d-37cc246b405mr2347263f8f.12.1727284303257; Wed, 25 Sep 2024 10:11:43 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cbc3187a4sm4466876f8f.90.2024.09.25.10.11.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 10:11:41 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id B47BE5FA12; Wed, 25 Sep 2024 18:11:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Zhao Liu , "Edgar E. Iglesias" , Marcel Apfelbaum , Alexandre Iooss , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Mahmoud Mandour , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , Richard Henderson , Paolo Bonzini , Eduardo Habkost , Pierrick Bouvier , Wainer dos Santos Moschetta , kvm@vger.kernel.org, Jiaxun Yang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , qemu-arm@nongnu.org, Peter Maydell , devel@lists.libvirt.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Marcelo Tosatti , Laurent Vivier , Yanan Wang , Thomas Huth , Beraldo Leal Subject: [PATCH 04/10] MAINTAINERS: mention my testing/next tree Date: Wed, 25 Sep 2024 18:11:34 +0100 Message-Id: <20240925171140.1307033-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240925171140.1307033-1-alex.bennee@linaro.org> References: <20240925171140.1307033-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.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, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org I put it under my name as there may be other maintainer testing trees as well. Signed-off-by: Alex Bennée --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ffacd60f40..7ac2252303 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4114,6 +4114,7 @@ Build and test automation ------------------------- Build and test automation, general continuous integration M: Alex Bennée +T: git https://gitlab.com/stsquad/qemu testing/next M: Philippe Mathieu-Daudé M: Thomas Huth R: Wainer dos Santos Moschetta From patchwork Wed Sep 25 17:11:35 2024 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: 830482 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1374:b0:367:895a:4699 with SMTP id q20csp856955wrz; Wed, 25 Sep 2024 10:14:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWvq41gKzKWZZm/dhpERQpYvTh2bcbAg2AEedaq/dt1PQkqnhTyFbDLk3EesQPlxpW6cdZ+iw==@linaro.org X-Google-Smtp-Source: AGHT+IGOZkKpZmgJFcEn4TSO6xnI2hQ7w3sWgzq7nVMTsYAzOuyKtjdlJmls44ilt/ubby4sYLlY X-Received: by 2002:a05:620a:1707:b0:7ac:c348:6a55 with SMTP id af79cd13be357-7ace7413518mr569090785a.38.1727284452236; Wed, 25 Sep 2024 10:14:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727284452; cv=none; d=google.com; s=arc-20240605; b=QU5KtFIKmEQK9K6byXHPLCXUz6H71f7TORhwZrEb3a0D8sruh/qTlzKI4/we3Ee1+F md+dTOx8/a0540szk4ZddlDmOaFhQdJVlxbm9b94DsVGwpyEgaR0/Uq3QayptacffKxh NfTbgAlON8lKD+xoslwzP6wGahjOFjktnkn1IXmS1AhTUYzBhjJ3n9NEdkiAFNR84ocF uVi8gVpZyuKhnAXTDZNyN2pFOh29VCuqonneSSu4qgm13AIBg15Kk9lN6LVxWnnXats7 q2oZfAPAZHyiWe2NW/LtcOr6F87T9Wc0g7z9DGQgkI17MrSxc7pu/TCJkRirLihhgSz1 Y61Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ycFC3pmsoWssj1+GB+z++1OZtt6It3e2DUWkH7pV350=; fh=jOpm9kmPAspKh5iBNE/fo3cA2AnxrIpta9f9jvC2IBE=; b=kG1ByJFoQqJ4QhMsFhyaboqo3dSIq/WTTFFLsGVJqbiAMLsM85ZPUKo7L/IRwOK8mk n9mMA7e4CI3OOkiKBVOv9DGGLgyHee2/1Ibxwxc9Z2GbR+b9DIZsDjD+Ns77PGZeY49J f8PCNTHyMTZTqAKgJ03rJtBxzeSnbVtyW0Nr/U7bMkdjiwgQFLhruWpb74jeaLbVgIkR GQMbLHv7i9ptZXb97ofR/ORhLTLNTh3yudnwKG0y4ZM5p9AApj657bXICP6WuX0OXSdq MKoEixs/tkBnqTCVHSV07Ph8AhUrxDHOymXkWczFPjlFojON38czMxN1+Ml5QBBMmouL bq+g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DKWRlWdy; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7acde5cd898si490799985a.254.2024.09.25.10.14.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Sep 2024 10:14:12 -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=pass header.i=@linaro.org header.s=google header.b=DKWRlWdy; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stVYq-0001rC-Ao; Wed, 25 Sep 2024 13:12:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stVYR-0000Kw-HG for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:55 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stVYN-0000cz-2x for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:54 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-42cb1758e41so213495e9.1 for ; Wed, 25 Sep 2024 10:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727284309; x=1727889109; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ycFC3pmsoWssj1+GB+z++1OZtt6It3e2DUWkH7pV350=; b=DKWRlWdyfZAGyamN+6xxwTv4k99DBGWkdCA6jof+LeDkD0M4KtzF1WRL0rcf9ny6dJ vbaRqz6rZgFxJ2TcnQwTUq3XqfFhghvFo59NCfzzD6/OYzlKA8ADzcu6Zsep507VQAaT AIbT1qqF9iJNQ3dOhEuGzMRGatamjWL9rXiGULKUcd4N6LzUq8fe3c5bSruwsC5di42O QvlFEN3zrH2xU/hl51QSpSnwtpUgB3S7m5SdpfNYC62av/o6kf1VHGxwfymCXu0ZksRr 8xSD8eKk4JhVeWb0ujohKpsNjBCPBBgknEkd0D9FTdUqqboxNFabPkLc6Lo3+l+yN37O UggA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727284309; x=1727889109; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ycFC3pmsoWssj1+GB+z++1OZtt6It3e2DUWkH7pV350=; b=vUYL9QMSAW8yFQQ9y5Lfjta0ctrcz2dw/Jd94bU04untW5U9wi258vY8vo8EXEk2sX HKHQp8fTCN63JbBUblsEg0bYcBVZmB3VbLtplH7E1JoHr3UdoGHqAkiqORWZjyxQlm3Z iR32HmvHiQ65PbcPUW3RfEx3BNND1ZLouoE5Pk0LKC+iZPhxyfzTz4vpHRZF9hfzytBe itNxkVE2zyHA2RmsWnBtm2FP+AoAt42LQr7ejvGwuB6ZdhltgyafYlWxQijpfYFbbnse nsLwdynBf02A9Us5Ky/XIvXhT+Kcyx/SslZfIie7p5QTn5yApsE/8iqW5XDiA6HndNDq useA== X-Gm-Message-State: AOJu0YypqRCLiZXB/wZrI/TfKH6+2+HRjRbUuu1TvaQXf++7W7+sqPUn aVCGNLKpkyeW+cdPkvwCwl7xZKUIPi3Xj8qxtOwdV34SAtojb7SgtH8EhKKhiHc= X-Received: by 2002:a05:600c:1c05:b0:426:6158:962d with SMTP id 5b1f17b1804b1-42e961445d3mr23154945e9.23.1727284309232; Wed, 25 Sep 2024 10:11:49 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e902560cfsm56646345e9.0.2024.09.25.10.11.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 10:11:45 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id CA71C5FA36; Wed, 25 Sep 2024 18:11:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Zhao Liu , "Edgar E. Iglesias" , Marcel Apfelbaum , Alexandre Iooss , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Mahmoud Mandour , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , Richard Henderson , Paolo Bonzini , Eduardo Habkost , Pierrick Bouvier , Wainer dos Santos Moschetta , kvm@vger.kernel.org, Jiaxun Yang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , qemu-arm@nongnu.org, Peter Maydell , devel@lists.libvirt.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Marcelo Tosatti , Laurent Vivier , Yanan Wang , Thomas Huth , Beraldo Leal Subject: [PATCH 05/10] meson: hide tsan related warnings Date: Wed, 25 Sep 2024 18:11:35 +0100 Message-Id: <20240925171140.1307033-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240925171140.1307033-1-alex.bennee@linaro.org> References: <20240925171140.1307033-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.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, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Pierrick Bouvier When building with gcc-12 -fsanitize=thread, gcc reports some constructions not supported with tsan. Found on debian stable. qemu/include/qemu/atomic.h:36:52: error: ‘atomic_thread_fence’ is not supported with ‘-fsanitize=thread’ [-Werror=tsan] 36 | #define smp_mb() ({ barrier(); __atomic_thread_fence(__ATOMIC_SEQ_CST); }) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Pierrick Bouvier Reviewed-by: Thomas Huth Message-Id: <20240910174013.1433331-2-pierrick.bouvier@linaro.org> Signed-off-by: Alex Bennée --- meson.build | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 10464466ff..ceee6b22c8 100644 --- a/meson.build +++ b/meson.build @@ -518,7 +518,15 @@ if get_option('tsan') prefix: '#include ') error('Cannot enable TSAN due to missing fiber annotation interface') endif - qemu_cflags = ['-fsanitize=thread'] + qemu_cflags + tsan_warn_suppress = [] + # gcc (>=11) will report constructions not supported by tsan: + # "error: ‘atomic_thread_fence’ is not supported with ‘-fsanitize=thread’" + # https://gcc.gnu.org/gcc-11/changes.html + # However, clang does not support this warning and this triggers an error. + if cc.has_argument('-Wno-tsan') + tsan_warn_suppress = ['-Wno-tsan'] + endif + qemu_cflags = ['-fsanitize=thread'] + tsan_warn_suppress + qemu_cflags qemu_ldflags = ['-fsanitize=thread'] + qemu_ldflags endif From patchwork Wed Sep 25 17:11:36 2024 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: 830475 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1374:b0:367:895a:4699 with SMTP id q20csp856166wrz; Wed, 25 Sep 2024 10:12:38 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWdPhLShnNGmyxCpy3XJA/W8SfIdhKECm+/ZS6sllZ1L97fdGybfXXIt+GQZk6/Buw8HvUomQ==@linaro.org X-Google-Smtp-Source: AGHT+IEgDEaYO79b6cIuISqcfixUDx0IfoyucEXVR7PORZn9TJi1ZF897ksHz6P3Xp+JXxQgbjoI X-Received: by 2002:a05:6214:5b09:b0:6c5:b857:7837 with SMTP id 6a1803df08f44-6cb1dd3fdccmr65646166d6.13.1727284358327; Wed, 25 Sep 2024 10:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727284358; cv=none; d=google.com; s=arc-20240605; b=S5GChkLVqtANBic142h1VmYHh0OMyCigvHKRnHgettPOP0R3Pm7wugxLyTcaet5VB6 uzhJmDG9px5dFAglQX0sZlb57UaAOnZNYiU/19Z8Po5cit+h6bz76m8IxG4ByBhWIuzj 80qeY0+Ef1K6ZlwoisusTiDDp2tXJcVhqrlFaQ3X7xlkqpz0QyRc/HQ52RzxSyAUoYKm dSQT6KOEw+/VvSBjHUWruxMgbybW72N28vNum0xU0TY7Z5sz8i5pctVqGO0bua0K7Id/ V/pmzuItxhvYLYpVVJQ3D7cBJRf1HA93kIp0Zvrjn+e4djnyGJ+T5reiBGtF8FBAhDsH Y8tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EDuKUu/6yQVewIifCo34+Vf5uNGO51ibdAtzIBiO5J8=; fh=jOpm9kmPAspKh5iBNE/fo3cA2AnxrIpta9f9jvC2IBE=; b=Ce6MXOZJLFJJ/MTVfXhPsJadjMDLZnE9ra1y/yJEgk7bbvWJkX0Pbv/G5sXbo8vqYL rPIV6OYwxMQooNbRz5vjFOEC38/y+hoCPitGRIDk6p29f0+RMTVl/qcxfRyLYcAM326p TKjbufQyo3HuHTfJUUQptnJRpDXcFMmxzZmKVgP3cYxmUBOXS6nOKn57jrQqGcytz68W PgMAcax7PPgnOHNXJztGkgUiFJBjUTsPa87qPDCVRZRxYsUuafWfgUZQQMgQuWExRvRS 8kVlEoPX7MOuHOBwIOqrSvIQHTaU6R2A4nLGlv2t02pFJxApjcvV1DFdExnnX7VANBVt iw4Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="AA/Nv/cD"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6cb0f774f9csi43597576d6.268.2024.09.25.10.12.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Sep 2024 10:12:38 -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=pass header.i=@linaro.org header.s=google header.b="AA/Nv/cD"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stVYf-0000yZ-IZ; Wed, 25 Sep 2024 13:12:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stVYO-0000K5-CI for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:55 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stVYJ-0000bW-By for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:51 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-42cb2191107so229325e9.1 for ; Wed, 25 Sep 2024 10:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727284306; x=1727889106; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EDuKUu/6yQVewIifCo34+Vf5uNGO51ibdAtzIBiO5J8=; b=AA/Nv/cD5A5XNGyTS9Byh0ZEgbCYPbTcrz8vRn3LDi+wP+jvx0Hcp2lT5MAzMeGROU DWEoOFPhe1Z2cnYO+6SRvfeBIKtUn4OkcMd16mrfLrIyVR+elBsUElfoPhcJeCvj869H D8CNrQxZo8VFjfk2xQyqEQfQQBvLAjyynspWG0GMO+biKiPIxqjO3ffbFNhD5vRi2Q5l vfC2451j6u/Lug0+Cqf0NYHbesRDiT5TOvVRvcUXBqeZ6JRNAoJj53jC7DwhgHPrZvzU 4JXcYBF61WsO1BGqdD3xTef0q5cnCxcNyZ2b9rHps6HL7a4NW/dbJTEms0e1HYfQwnz9 rTVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727284306; x=1727889106; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EDuKUu/6yQVewIifCo34+Vf5uNGO51ibdAtzIBiO5J8=; b=YDu8hDIgfZ4SFBnRvhS7Y86NxWr3QRa5+bwmNzGqoto56p5CGo6tO4pL4nKp0gvUOT NGQOGO4vaz68ty1AAa0UZlrA1G0SOGiX6FU8Jf1DzK8QoFgJ7lPyw1PG1CTBEssTEvvX c2Qc/F1wtEKP5SqZt1E20WWX7xnCmTpC9CWRRmgUFkX5D6VUK4RwQX8bQCbpASchh8+t VSel95tpjJHCAxuNpbtYvsCGH8VWFV6o1UoxflObPioZxxeGCN9/N2Ohc9BbGxSyePa6 G3i1GUMlSrrN2+urgLlWfoz/M489sxTCUxquaAiep2Rdlrsp44wwGZiE98phBWsjzqcu +OSw== X-Gm-Message-State: AOJu0YwCjImnrvYIcXHW6YTgdlfi/OdVFoeUPYCTZUgj096UrXNAnv4F 98pXU5LeCpmr5jO3Voqjn3PuXISlV1K7uOFxX166CLSvP1v4bp32/kjvOxUxgkI= X-Received: by 2002:a05:600c:a085:b0:42f:310f:de9 with SMTP id 5b1f17b1804b1-42f310f1005mr13936295e9.15.1727284305716; Wed, 25 Sep 2024 10:11:45 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e969e18f7sm24065735e9.5.2024.09.25.10.11.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 10:11:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E015C5FA3D; Wed, 25 Sep 2024 18:11:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Zhao Liu , "Edgar E. Iglesias" , Marcel Apfelbaum , Alexandre Iooss , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Mahmoud Mandour , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , Richard Henderson , Paolo Bonzini , Eduardo Habkost , Pierrick Bouvier , Wainer dos Santos Moschetta , kvm@vger.kernel.org, Jiaxun Yang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , qemu-arm@nongnu.org, Peter Maydell , devel@lists.libvirt.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Marcelo Tosatti , Laurent Vivier , Yanan Wang , Thomas Huth , Beraldo Leal Subject: [PATCH 06/10] target/i386: fix build warning (gcc-12 -fsanitize=thread) Date: Wed, 25 Sep 2024 18:11:36 +0100 Message-Id: <20240925171140.1307033-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240925171140.1307033-1-alex.bennee@linaro.org> References: <20240925171140.1307033-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.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, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Pierrick Bouvier Found on debian stable. ../target/i386/kvm/kvm.c: In function ‘kvm_handle_rdmsr’: ../target/i386/kvm/kvm.c:5345:1: error: control reaches end of non-void function [-Werror=return-type] 5345 | } | ^ ../target/i386/kvm/kvm.c: In function ‘kvm_handle_wrmsr’: ../target/i386/kvm/kvm.c:5364:1: error: control reaches end of non-void function [-Werror=return-type] 5364 | } Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Reviewed-by: Thomas Huth Message-Id: <20240910174013.1433331-3-pierrick.bouvier@linaro.org> Signed-off-by: Alex Bennée --- target/i386/kvm/kvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c index ada581c5d6..c8056ef83d 100644 --- a/target/i386/kvm/kvm.c +++ b/target/i386/kvm/kvm.c @@ -5771,7 +5771,7 @@ static int kvm_handle_rdmsr(X86CPU *cpu, struct kvm_run *run) } } - assert(false); + g_assert_not_reached(); } static int kvm_handle_wrmsr(X86CPU *cpu, struct kvm_run *run) @@ -5790,7 +5790,7 @@ static int kvm_handle_wrmsr(X86CPU *cpu, struct kvm_run *run) } } - assert(false); + g_assert_not_reached(); } static bool has_sgx_provisioning; From patchwork Wed Sep 25 17:11:37 2024 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: 830476 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1374:b0:367:895a:4699 with SMTP id q20csp856186wrz; Wed, 25 Sep 2024 10:12:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV3ti8RSHb5Ww59Zb6ZpFR9dcGJRXYc8gJzrAJT2GfCqKgSmoEk9cDfsPsKF36PB1W7lmXy1g==@linaro.org X-Google-Smtp-Source: AGHT+IGMzTXQfBrJmgubZm0MmwbxOibszoKDNWqcifqtb86xscBOFFa/PDLEfkw/9ceZIktkqcJp X-Received: by 2002:a05:6358:9485:b0:1b8:2cf8:cf5 with SMTP id e5c5f4694b2df-1bea8564983mr284179455d.3.1727284360669; Wed, 25 Sep 2024 10:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727284360; cv=none; d=google.com; s=arc-20240605; b=BwEIDhCQDvaHpxilHsjOfMPt5HCRPDrXUhKUYg+9OjB+ww7Cbnz8p93+VqjnKfWMwn bOjNDnbWQPbrRXgQR2U3jAasA9Af/MusaAe9U/xm3Qf6ynkLMPo1Hy9ttWqR4SS6yMGd jH40Ux1X8xsE6PBlJ5k8SsxoVRLFOKGDqwB68VzxI/gm2W3A2c3K7PpJBjPXYg4e7B4T mEX0GCsztYsFjDEx+2sZ5CEL8BHKA6QZzo2Djif5pDOKrjYUKr6pLv9J+VZWwQL44o1v typHm5YjtHyP2gAi0zkiKb/6hRunfI7Zk6ZB9h0Ivwel/041Ckhp8qzNDDykjfDhKLKp NtQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iZZo1oPZPqzjBeoixQ7wpptFRyTvJhgIff9wczeHXgQ=; fh=jOpm9kmPAspKh5iBNE/fo3cA2AnxrIpta9f9jvC2IBE=; b=fMpkzSPKhnEc7SutyWh50DWADTpRRvmAWW73dbTbarNIOcHdw72A5+kwxQpbveWSBH 5sG5Z1218VXjhKQ2s7ZmzMn5bloH9SqWOnXhLcv4d6vc+AXofEncCdqbU1N3ZyXQCR4s AXSqV0cANTkJaYuDsqGtLzpCSz0TSZirSYPuVWtiSDWINa7QWIFaESPQxzVD4aH/dpX6 SotqESE0LcL2mgzRfSodCgDFuYP/4SSg6YnO4gRrDu9HQ6muOAzrmJSMf4S+0b02YpkW E0U2SCueU/pvmuW2vWTmgSRtHR+lYym8cvz7euvaE0uOeoRf89PdkiwtwR5NCjqRKg00 pajw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F+wDMAys; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b5267f79bsi42239491cf.244.2024.09.25.10.12.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Sep 2024 10:12:40 -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=pass header.i=@linaro.org header.s=google header.b=F+wDMAys; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stVYg-0001EF-UZ; Wed, 25 Sep 2024 13:12:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stVYS-0000L5-Sy for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:57 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stVYR-0000e6-4I for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:56 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-42e82f7f36aso332005e9.0 for ; Wed, 25 Sep 2024 10:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727284311; x=1727889111; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iZZo1oPZPqzjBeoixQ7wpptFRyTvJhgIff9wczeHXgQ=; b=F+wDMAyseyCEbYjh1BMicl7R5jsvD7kwkuVevrslrVCeZFS7PtA6E+HpK+9nokbaFw TQBXEvJY1Z/gsEuQEbWzbHOQpyP7EDSgRukDcMYGhAG4cfKshV0D/IGVEQ9KNRPij8zK 2ZYtEWQv29/uAvL/qjLkjFhJwRXhWSKGW2Bt39SDsbkzG2xFOMbw/KistAjRnEJXF/5M eD7vO747clSLrcKujff+lcNpmbDv88FiOZNEG5eCzGdT+Il0fqjvrLmaqZW2Dq6oJSEf lYQdZCpQXMhRSXxQAAvVftuR5p+7Gz6LEfBJ6+5yFp5xIKeYQVz2I7+dGw7CKajQ8Moq M/xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727284311; x=1727889111; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iZZo1oPZPqzjBeoixQ7wpptFRyTvJhgIff9wczeHXgQ=; b=l7bv29nrH7hogwJ7aVkjxjDjDqJLshVFsMeRONJC0YNPRd0ghdETQ/xlosX78663+2 2ij2NNTNueM/B1q0Iy2tCoMq5A5LWI2YW+q08rH+2w5fBZV2vaAMHuQ8zTHR1BY0AoIE UaiO/LKHuDmKmU5OY7yj6qiwrfAn64x8Jcjo1oaBRqnCEh7Xt8BWuPPjl5qU9NO0NDtU HUxxaoa0sKJkkpwX2ISnzqTTDn77EDoobnm3xpUFXy+Q+R6GfybjyA1h8fDudlNkd/HV CjsDWMhHarKFy34Wu5wL5Q1rqapIynIWMOpz647UPCoUJL3ZDm/e4NzS5HHsgjfUowM8 I6wA== X-Gm-Message-State: AOJu0YwJv9mMjjISgeb5/P+VUwvymU8uTO17StwrUXxJrchdY29PzmzF TLR+WgdIFlIgEokw5TPj4aQRQljejH8m+DLTINaOWjXO0V+EGCmYavsrig8frUc= X-Received: by 2002:a05:600c:468b:b0:42c:c401:6d8b with SMTP id 5b1f17b1804b1-42e96103b5emr22700045e9.7.1727284311162; Wed, 25 Sep 2024 10:11:51 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e96a36287sm24053595e9.29.2024.09.25.10.11.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 10:11:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 05F675FA4B; Wed, 25 Sep 2024 18:11:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Zhao Liu , "Edgar E. Iglesias" , Marcel Apfelbaum , Alexandre Iooss , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Mahmoud Mandour , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , Richard Henderson , Paolo Bonzini , Eduardo Habkost , Pierrick Bouvier , Wainer dos Santos Moschetta , kvm@vger.kernel.org, Jiaxun Yang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , qemu-arm@nongnu.org, Peter Maydell , devel@lists.libvirt.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Marcelo Tosatti , Laurent Vivier , Yanan Wang , Thomas Huth , Beraldo Leal Subject: [PATCH 07/10] docs/devel: update tsan build documentation Date: Wed, 25 Sep 2024 18:11:37 +0100 Message-Id: <20240925171140.1307033-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240925171140.1307033-1-alex.bennee@linaro.org> References: <20240925171140.1307033-1-alex.bennee@linaro.org> MIME-Version: 1.0 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, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Pierrick Bouvier Mention it's now possible to build with gcc, instead of clang, and explain how to build a sanitized glib version. Signed-off-by: Pierrick Bouvier Reviewed-by: Thomas Huth Message-Id: <20240910174013.1433331-4-pierrick.bouvier@linaro.org> Signed-off-by: Alex Bennée --- docs/devel/testing/main.rst | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/docs/devel/testing/main.rst b/docs/devel/testing/main.rst index 09725e8ea9..91f4dc61fb 100644 --- a/docs/devel/testing/main.rst +++ b/docs/devel/testing/main.rst @@ -628,20 +628,38 @@ Building and Testing with TSan It is possible to build and test with TSan, with a few additional steps. These steps are normally done automatically in the docker. -There is a one time patch needed in clang-9 or clang-10 at this time: +TSan is supported for clang and gcc. +One particularity of sanitizers is that all the code, including shared objects +dependencies, should be built with it. +In the case of TSan, any synchronization primitive from glib (GMutex for +instance) will not be recognized, and will lead to false positives. + +To build a tsan version of glib: .. code:: - sed -i 's/^const/static const/g' \ - /usr/lib/llvm-10/lib/clang/10.0.0/include/sanitizer/tsan_interface.h + $ git clone --depth=1 --branch=2.81.0 https://github.com/GNOME/glib.git + $ cd glib + $ CFLAGS="-O2 -g -fsanitize=thread" meson build + $ ninja -C build To configure the build for TSan: .. code:: - ../configure --enable-tsan --cc=clang-10 --cxx=clang++-10 \ + ../configure --enable-tsan \ --disable-werror --extra-cflags="-O0" +When executing qemu, don't forget to point to tsan glib: + +.. code:: + + $ glib_dir=/path/to/glib + $ export LD_LIBRARY_PATH=$glib_dir/build/gio:$glib_dir/build/glib:$glib_dir/build/gmodule:$glib_dir/build/gobject:$glib_dir/build/gthread + # check correct version is used + $ ldd build/qemu-x86_64 | grep glib + $ qemu-system-x86_64 ... + The runtime behavior of TSAN is controlled by the TSAN_OPTIONS environment variable. From patchwork Wed Sep 25 17:11:38 2024 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: 830480 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1374:b0:367:895a:4699 with SMTP id q20csp856427wrz; Wed, 25 Sep 2024 10:13:09 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW20YO7CPGf+rNXk4fmUC/cpQsw3WhQNCZ9rYS5IoZYy5bsm29TchBp2S0Bbgj+hZYusJQ2Fw==@linaro.org X-Google-Smtp-Source: AGHT+IHw9/F0lzuwdCkkkPRC8CN64zOcGnz0KqnQHKGqWktJJaxrWeFVX0mMF/20b88UsPUPxPwH X-Received: by 2002:a05:6358:7210:b0:1ba:580e:dea2 with SMTP id e5c5f4694b2df-1bea86212e9mr213262255d.17.1727284389071; Wed, 25 Sep 2024 10:13:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727284389; cv=none; d=google.com; s=arc-20240605; b=YVGF3NFSRMYZ4BLgX3KiGeMSwWQkrjZxUZqMXoW4fzm6nVie97MwfK/Oz01L5l2Meq xphuByjrgDXqhDCE974qzXOQv62p8l7555S1upQC7YMn5aeH9UKkX0QhNbpxGDLoh72K 2gJweHjdR9NSUqnZiT7iht+16l+AEwCW2HST4p2ivCl6WZn1wwGvXLKLSe/0KEosmTeK I41senbWTEaFGg8MtbuRULLpTkAB8yj2/YU6P9P1Dmjk/PPlLupoB7d/PMreKFF7nSWf ZkSHDpfKcjx/0ycbFvXa0E1xhAfwF55Tcu7/s0rBmjxRox/BfJf7UFlLdXxp00Nx6Dve HcLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oPetPS+iPOZ9YsbRPGkth2UTt050VfI/4VOs20g6hTI=; fh=jOpm9kmPAspKh5iBNE/fo3cA2AnxrIpta9f9jvC2IBE=; b=BX6KnYVvdkjlfkHEP4c9QE9YwNFrRJLhC732WWciJZjZNgaYuON95m6MBsBPEGeaZg J9fDvjAQtoQmaztxdZdL8USMOwoYqID+QovudcySDitK0WKgjFipbBUC2Jbdd6y2WPVQ hiyNiIg1KglVGlHEyb2uJLx6RyucmDL5m+VQA+cJZuXpSSWDenB12Ds8a+E3c3IHpPgi 1nBkS3ESrKejESQ9Qj8BKM6RmZTXGn3w2d8XZfMA2ux2r+9ehAKT02HJ+bRaUvNjesnJ B9OoZPjIf96T4wmpzO/M6km4+mIloT20oyBwaQD21h2qdn4KbW9OWdv3tnMseUYREDmN zeBQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XcxIY7M1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7acde5cdd5esi440300585a.251.2024.09.25.10.13.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Sep 2024 10:13:09 -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=pass header.i=@linaro.org header.s=google header.b=XcxIY7M1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stVYX-0000Xb-Bp; Wed, 25 Sep 2024 13:12:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stVYR-0000Kl-F6 for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:55 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stVYM-0000bo-Pq for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:52 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-42cbb08a1a5so149495e9.3 for ; Wed, 25 Sep 2024 10:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727284308; x=1727889108; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oPetPS+iPOZ9YsbRPGkth2UTt050VfI/4VOs20g6hTI=; b=XcxIY7M1EYFAY3vrRYScs0HQkfxAOqKXgCWtsuNtWDp1XZd/OUGc9vSuLWOttclUuO WgqvZLikah66c/FTWjYZG01L9w4GxBfZikhwCtTcfUp5DAyIPCgZnHADvVS/0c+skh8w tZAvSOyJfrtaymtsZk3R0znA4UunVMtpF2l8bdrBvyyB8RTYcT1i5IVY6SNxgCCK/xNH wleqXY9ohUigiQuPXUmCwXskUmcETLMxL02KH5le9AmEOHbcQDDog6xjLDPYHwIKEtk1 C8sBSXyl++w0yXMdXbHCteXNbvL0PDyBv5b8kKP1lQC8x1riThE4xEEUK0UWVcuvTVVj OsKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727284308; x=1727889108; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oPetPS+iPOZ9YsbRPGkth2UTt050VfI/4VOs20g6hTI=; b=vqBY0Q3814aT2Y7iLCFWFhsHDRgS9K2GYR4Gre42TDiEj25iXb9qTSEas72mBP39ho b41sez9qsZdY2d8S4PxivdXSK6nNoNQ3uq3yu6I3A1RJKXn+50rPaSVPBnK+KcjKb7k5 x05yFDZmd7RfGzpEzfaLcZxEKw6KNJUCeTKN5rScdCJLtTD8SB4hrRhbt4kR41qKXNyy Isyo8VTQRqRrv0ovOELdl5vq5E5KXdTzlvNnsiQ9my1I6tRaXy63H7AxVcWKN5y2jL5h eRnB9oIl7265eJL5J1q+0OGxqTUqRoaTeTlwhRg220L0bIiPSwaU6LNhXdrBsLULOLqY 7mYQ== X-Gm-Message-State: AOJu0YypZ6RZB5SnyThpuJbueayzFK8rpJxTFE5dMpNS2oHFvB8aEJmB mmAUNAVgYUeSK/6yDeFDyTWMuYdXLTqaNT8MCYC+eR92yDYu5IKoT4NO+baNyCI= X-Received: by 2002:a05:600c:1c05:b0:42c:b63e:fea6 with SMTP id 5b1f17b1804b1-42e961362e8mr25316905e9.22.1727284307691; Wed, 25 Sep 2024 10:11:47 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e90cd2d3dsm44179475e9.1.2024.09.25.10.11.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 10:11:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 1C5475FA77; Wed, 25 Sep 2024 18:11:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Zhao Liu , "Edgar E. Iglesias" , Marcel Apfelbaum , Alexandre Iooss , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Mahmoud Mandour , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , Richard Henderson , Paolo Bonzini , Eduardo Habkost , Pierrick Bouvier , Wainer dos Santos Moschetta , kvm@vger.kernel.org, Jiaxun Yang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , qemu-arm@nongnu.org, Peter Maydell , devel@lists.libvirt.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Marcelo Tosatti , Laurent Vivier , Yanan Wang , Thomas Huth , Beraldo Leal Subject: [PATCH 08/10] MAINTAINERS: mention my gdbstub/next tree Date: Wed, 25 Sep 2024 18:11:38 +0100 Message-Id: <20240925171140.1307033-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240925171140.1307033-1-alex.bennee@linaro.org> References: <20240925171140.1307033-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.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, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Make it easy for people to see what is already queued. Signed-off-by: Alex Bennée --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7ac2252303..f34b8843e4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3028,6 +3028,7 @@ F: gdb-xml/ F: tests/tcg/multiarch/gdbstub/* F: scripts/feature_to_c.py F: scripts/probe-gdb-support.py +T: git https://gitlab.com/stsquad/qemu gdbstub/next Memory API M: Paolo Bonzini From patchwork Wed Sep 25 17:11:39 2024 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: 830477 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1374:b0:367:895a:4699 with SMTP id q20csp856245wrz; Wed, 25 Sep 2024 10:12:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX2B2tPa+30sQzbGanlC6R1fPJcGZ+3RNVFTf7b3+T/VSpRW9slRkHDoBguvxYweQxSBG3BTw==@linaro.org X-Google-Smtp-Source: AGHT+IE0CkUDmlrMGRs0Yi5kzVpMlM+QujBp2m+CYp3T/1/eMSJS77qbfresSx5tyLEBmd2N96At X-Received: by 2002:a0c:edab:0:b0:6cb:2ad2:3fa2 with SMTP id 6a1803df08f44-6cb2ad24635mr12581416d6.15.1727284367432; Wed, 25 Sep 2024 10:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727284367; cv=none; d=google.com; s=arc-20240605; b=KbXrOHsNaRApQJXyI+rybRmWIYgc+PpMZ7DInrxR7/tghuSUEnIXwrAVJoQQ7NRN4A wfQxdlk227Sb1hsdZMosMjmorM5ugqw0Zt0JGVJ8U7+B77vJUZG71xE6YfO/rECsCsR9 yeyQE9PqXQ58oIRjhrD9fjVbViWyToEvPsxogRI3WwH9CtFQJXuAGWNuVIWKXI3iWbzj Vy5/dqmGWP8bwdCLSO+X1hmCn2WVSM07J7gYkxoSPWu0+8kYrMu+Gma9FF7StiHuukM+ vVHrYaD89Y8w59vOwZglaNxvtqO7TuBYduUeuF73p0cEz9j/vBeL0ovc44KsYbrzMCHw u09Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nfK3IifqQwqKch4WY/r8cAsLiv59o8B10mtnbYAB2U8=; fh=jOpm9kmPAspKh5iBNE/fo3cA2AnxrIpta9f9jvC2IBE=; b=E41d2/Bg2KayknNTwAPyyk95s1bJrluU25ONJ6ZdmHLRqfKY7K/2w7tfLAZijUISUe Srd/hU/cX5ar3FksLfoiFljBKTsjva75d0GBKyHdjF/Z2YR0V0k8Ge/ZiUeaLGaadlLK fMJ5e6CmzPYnyP0EIVj16HXYerEp+m41Cw1IqOVwm2rM2r4J1p17Za3ATBjc9GtvW8ir AvyEIXa87GZVNWkd8X98A5PnS5DgZZKtwz5xgxb3ZQA6/3A0EXzHAeJBCgFUI2gBzBap iPJmdteA2EXeBvZjcoiCUAfb9bH77bn6YgHsG90Lo89mUyevJhmfvb3eTjJWD83VSvgu 0K3Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KVVNeOwT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6cb0f793895si44309146d6.408.2024.09.25.10.12.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Sep 2024 10:12:47 -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=pass header.i=@linaro.org header.s=google header.b=KVVNeOwT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stVYp-0001pM-RJ; Wed, 25 Sep 2024 13:12:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stVYR-0000L0-Vi for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:57 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stVYO-0000dZ-3n for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:55 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-42e748f78d6so333865e9.0 for ; Wed, 25 Sep 2024 10:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727284310; x=1727889110; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nfK3IifqQwqKch4WY/r8cAsLiv59o8B10mtnbYAB2U8=; b=KVVNeOwTG5nJvIwPe+i4B/RCcHej5+x8ao0myo7jDLfe01eFTxXrC4HJxExiRC+fEe EuXY/09zvfMc2IIconhlcegMqUFJMMtNNGma8y0D3oMs6RmWZg//ooh7kfMrTSy0Z6le JXUu5eEiljh1g1tFIb8RU1Y2J3M11BrMcuf+Ix1J3hQYNy5/yRh1UJr3KyGC0DVSekaf pn9u65wrv2vJEmJ5/hekWhwJ4vOqzUrqgcs5LQX5Tm02BXdhNjKt6326dMYBZLkHyxgO WUfCUTO7SOi91DypG7jZnT+gEPWS38/JHnY2+Q8j4QKtKzhB9A/s3NUpCqz2vrTtfmEs fE3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727284310; x=1727889110; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nfK3IifqQwqKch4WY/r8cAsLiv59o8B10mtnbYAB2U8=; b=OydAXuWDTwO6LD8t9XzB7WicYsRz2CF9EU8YGz4GYTXZr7D5nTONRuTLyTmzWWvp+6 3gsU0Qe889EMg5TldMKSCzE5n9WpSeNqsuvfNW+pttXwjzOOKeJSvT8HEc5AscFs2+/4 lWMrwbtK1S4C/gtpb0YMPndz5/Nd2KsxFwtqZUao6WZFrz3cenPZj80gjiJiZe/uEqao UCOIj8DooPTp0ODCLdMesbOSTxPTELd4MAgrR1tcnMyXMnXk9f/QhEO2JcBU4L7UwtRD 6VY+N770Wnd98wTJbjI2OChF7E8axfFz9H3W/HHD6hMcS1dmcJK4f1MeDkfU219wmL1r +hmQ== X-Gm-Message-State: AOJu0YwyW36NNvinWpofEKHjrgVvhncpQz2QuK3LIwqxMR4AyLnpkUkw sAuZWlmQIlWKYj+/t3qIE2H8QsaPGvjgFmeknEufkHJmfSpQR6VheAc81Mm8HUs= X-Received: by 2002:a05:600c:45ce:b0:42b:af1c:66e with SMTP id 5b1f17b1804b1-42e9610c1c6mr23225565e9.9.1727284310137; Wed, 25 Sep 2024 10:11:50 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e969feb45sm23955035e9.20.2024.09.25.10.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 10:11:45 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 345F15FA8E; Wed, 25 Sep 2024 18:11:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Zhao Liu , "Edgar E. Iglesias" , Marcel Apfelbaum , Alexandre Iooss , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Mahmoud Mandour , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , Richard Henderson , Paolo Bonzini , Eduardo Habkost , Pierrick Bouvier , Wainer dos Santos Moschetta , kvm@vger.kernel.org, Jiaxun Yang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , qemu-arm@nongnu.org, Peter Maydell , devel@lists.libvirt.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Marcelo Tosatti , Laurent Vivier , Yanan Wang , Thomas Huth , Beraldo Leal Subject: [PATCH 09/10] config/targets: update aarch64_be-linux-user gdb XML list Date: Wed, 25 Sep 2024 18:11:39 +0100 Message-Id: <20240925171140.1307033-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240925171140.1307033-1-alex.bennee@linaro.org> References: <20240925171140.1307033-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.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, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Attempting to run the binary asserts when it can't find the XML entry. We can fix it so we don't although I suspect other stuff is broken. Fixes: https://gitlab.com/qemu-project/qemu/-/issues/2580 Signed-off-by: Alex Bennée --- configs/targets/aarch64_be-linux-user.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/targets/aarch64_be-linux-user.mak b/configs/targets/aarch64_be-linux-user.mak index acb5620cdb..14623ac076 100644 --- a/configs/targets/aarch64_be-linux-user.mak +++ b/configs/targets/aarch64_be-linux-user.mak @@ -1,7 +1,7 @@ TARGET_ARCH=aarch64 TARGET_BASE_ARCH=arm TARGET_BIG_ENDIAN=y -TARGET_XML_FILES= gdb-xml/aarch64-core.xml gdb-xml/aarch64-fpu.xml gdb-xml/aarch64-pauth.xml +TARGET_XML_FILES= gdb-xml/aarch64-core.xml gdb-xml/aarch64-fpu.xml gdb-xml/aarch64-pauth.xml gdb-xml/aarch64-mte.xml TARGET_HAS_BFLT=y CONFIG_SEMIHOSTING=y CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y From patchwork Wed Sep 25 17:11:40 2024 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: 830481 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1374:b0:367:895a:4699 with SMTP id q20csp856918wrz; Wed, 25 Sep 2024 10:14:09 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV4ee853by5uheKGhtEZ8RuAs+XswXKjnkZuETQW7/BaN4LuVDerHPh5mM/iB048nowQJy2Og==@linaro.org X-Google-Smtp-Source: AGHT+IGRa2rpQPuQZez9Xx8O+NeJq1/iGMSE2e31EQL37DmyQwmvhR6v3k5a6duBeGhzVoWubYHY X-Received: by 2002:a05:620a:4009:b0:7ac:e30e:f6f with SMTP id af79cd13be357-7ace744a45amr495496385a.43.1727284449268; Wed, 25 Sep 2024 10:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727284449; cv=none; d=google.com; s=arc-20240605; b=Z14grD/IUm5HIRwqwhRtusgyRuAQfcQwfOi3b5NgMUoGO4kIfm4cg+LXHxs7X26Oee W7jPiOwz0Cz6oyIn+8pKOwYCpeMBHeTUu4OyFh3DNTyoiBd0AON4xtrPJf5NZlMRfuJm whMnlFaPlkpxzjHQn+GHg/oVFBs+s6H6I57SK2YaxuPV0Vagz3+d7IXz034UFTOFSUqA CKRr3mBkAuz1rHsQRv2wO/P9zAlQGxY+XHkJe4kMrQCbhVUQ7zpwnO5iX2cyWP6fmdWa 1vn2i9NYIQexpg59c92puouoSnwR6kSrIP1l5VKRsY8gu/ZskFzoFrdL1ieMPx5AlDeI N4Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KaJivYDlItR4YIDqMIuLxegmAwwZvWWIxpxaaVqdrBQ=; fh=jOpm9kmPAspKh5iBNE/fo3cA2AnxrIpta9f9jvC2IBE=; b=bYAPzxcAlJoLz3/9uPZbNbb5n3AQCNpBZmIhEzevPJ/qYBnTCtSLqt5pJ8yXcZ0Gcv 57ZqOZr7kFQ2Rc1eajNbhuswpsWUDU2tEzB22w/jeZdoPzoRvjrXlTDQ35ga1yQRG3wT UIcvB8jowWtMGa1ff/5NndCfEj8+7cHzuYLixN3WTKc/5WNHj0GrV43G90BIj5u7jaZw wHblCnG8xYC/tCwIIU9mHixs41Tt63cOPFc6wYQ3p08ppgKzuHX0dqZi+W5ZEzzDiU6+ 1wMHZnlsAuoz9dD7sormpbw/FtLhSPMKBjsOzFbWpPaDOr8aBf63pjqTt5Wc/CqR6w13 1COA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IR84kaqn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7acde62e97fsi448149285a.585.2024.09.25.10.14.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Sep 2024 10:14:09 -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=pass header.i=@linaro.org header.s=google header.b=IR84kaqn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stVYs-0001vP-9w; Wed, 25 Sep 2024 13:12:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stVYR-0000Kx-Hb for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:55 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stVYM-0000cF-QL for qemu-devel@nongnu.org; Wed, 25 Sep 2024 13:11:54 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-42cba8340beso7769395e9.1 for ; Wed, 25 Sep 2024 10:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727284308; x=1727889108; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KaJivYDlItR4YIDqMIuLxegmAwwZvWWIxpxaaVqdrBQ=; b=IR84kaqn5iCqReAzD2i03JC82nHAz+os3aeXOEOw13yGB0wbCh+dKtFIAdpi7mEZS5 pqP29+QdceDMkzpAgAG+KeIbd4jdKelW67iixrLZRc34r6MQ2AF+pcJbXhG06Qkozu1E uvLV1YTw3AkzpJsmJ+7JaMsG9nPK2ERpeRCASG2FWCENKTpAwNNvtDiBCzchHV0HL/F3 lLpwg/QnKwr7txSrjYmemRRmhPQoXDH1TaXDj37gDoPsBIYzwHcsH0D5gtu1SUo6XJi1 jGXQS0+JobGJr/53mX44xUyslDSsTfYUvA4XYksocuZ+mmigX2hggZYrVSppAW1ooGuh YwVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727284308; x=1727889108; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KaJivYDlItR4YIDqMIuLxegmAwwZvWWIxpxaaVqdrBQ=; b=K6a8Q6ZUq6EBgaSSXx1NscTcMgKcJ/I0lHmZ/0r807Z4pOkM9tqyMz609NjKzEGsc6 cW1MsNGu+rMXGb/EKRQ378BQo517fLiVl+PC0BmDFPRuiDIQo717uks/7zJ+G81g8mtc BWxZiI9LP5+lSSfUY/9HJeLfXcRyX2YhhoM4SRCjIAljZSwl5b5R9+NGK55b9kJZhuSN NAYz7nzT4IU+ksEpGSwmekN02qID1E+zKMmYaX3lvEeumQJ7lPwfuCqPDNoQzH745SBe po0iZlbJGeSk7gkY8FBmulp33kwRaaD9mc3tvFpnqXYnKHhCFqSL/Plxtm8OFnISt4HU tvkQ== X-Gm-Message-State: AOJu0YxBL8PX7R0SQeEes8RluF98mCOysBqmd1Hs0JRElQ/tmUQ0th6o W6jTKDBq5wGq8JJD1pXsDxaPF1O0aJ2bZdNEJSHt+kJDfqzP3Z9IdvqGYrMk6hU= X-Received: by 2002:a05:600c:3542:b0:424:895c:b84b with SMTP id 5b1f17b1804b1-42f521cb7b9mr2431035e9.4.1727284308140; Wed, 25 Sep 2024 10:11:48 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e969f1fe4sm24113855e9.14.2024.09.25.10.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 10:11:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 4FA755FAAF; Wed, 25 Sep 2024 18:11:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Zhao Liu , "Edgar E. Iglesias" , Marcel Apfelbaum , Alexandre Iooss , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Mahmoud Mandour , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , Richard Henderson , Paolo Bonzini , Eduardo Habkost , Pierrick Bouvier , Wainer dos Santos Moschetta , kvm@vger.kernel.org, Jiaxun Yang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , qemu-arm@nongnu.org, Peter Maydell , devel@lists.libvirt.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Marcelo Tosatti , Laurent Vivier , Yanan Wang , Thomas Huth , Beraldo Leal Subject: [PATCH 10/10] tests/tcg: enable basic testing for aarch64_be-linux-user Date: Wed, 25 Sep 2024 18:11:40 +0100 Message-Id: <20240925171140.1307033-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240925171140.1307033-1-alex.bennee@linaro.org> References: <20240925171140.1307033-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.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, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org We didn't notice breakage of aarch64_be because we don't have any TCG tests for it. However while the existing aarch64 compiler can target big-endian builds no one packages a BE libc. Instead we bang some rocks together to do the most basic of hello world with a nostdlib syscall test. Signed-off-by: Alex Bennée --- configure | 5 ++++ tests/tcg/aarch64_be/hello.c | 35 ++++++++++++++++++++++++++++ tests/tcg/Makefile.target | 7 +++++- tests/tcg/aarch64_be/Makefile.target | 17 ++++++++++++++ 4 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 tests/tcg/aarch64_be/hello.c create mode 100644 tests/tcg/aarch64_be/Makefile.target diff --git a/configure b/configure index aa7aae70fa..1aebf8ece0 100755 --- a/configure +++ b/configure @@ -1274,6 +1274,7 @@ probe_target_compiler() { target_arch=${1%%-*} case $target_arch in aarch64) container_hosts="x86_64 aarch64" ;; + aarch64_be) container_hosts="x86_64 aarch64" ;; alpha) container_hosts=x86_64 ;; arm) container_hosts="x86_64 aarch64" ;; hexagon) container_hosts=x86_64 ;; @@ -1303,6 +1304,10 @@ probe_target_compiler() { case $target_arch in # debian-all-test-cross architectures + aarch64_be) + container_image=debian-all-test-cross + container_cross_prefix=aarch64-linux-gnu- + ;; hppa|m68k|mips|riscv64|sparc64) container_image=debian-all-test-cross ;; diff --git a/tests/tcg/aarch64_be/hello.c b/tests/tcg/aarch64_be/hello.c new file mode 100644 index 0000000000..93c6074db1 --- /dev/null +++ b/tests/tcg/aarch64_be/hello.c @@ -0,0 +1,35 @@ +/* + * Non-libc syscall hello world for Aarch64 BE + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#define __NR_write 64 +#define __NR_exit 93 + +int write(int fd, char * buf, int len) +{ + register int x0 __asm__("x0") = fd; + register char * x1 __asm__("x1") = buf; + register int x2 __asm__("x2") = len; + register int x8 __asm__("x8") = __NR_write; + + asm volatile("svc #0" : : "r"(x0), "r"(x1), "r"(x2), "r"(x8)); + + return len; +} + +void exit(int ret) +{ + register int x0 __asm__("x0") = ret; + register int x8 __asm__("x8") = __NR_exit; + + asm volatile("svc #0" : : "r"(x0), "r"(x8)); + __builtin_unreachable(); +} + +void _start(void) +{ + write(1, "Hello World\n", 12); + exit(0); +} diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index 2da70b2fcf..9722145b97 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -103,9 +103,14 @@ ifeq ($(filter %-softmmu, $(TARGET)),) # then the target. If there are common tests shared between # sub-targets (e.g. ARM & AArch64) then it is up to # $(TARGET_NAME)/Makefile.target to include the common parent -# architecture in its VPATH. +# architecture in its VPATH. However some targets are so minimal we +# can't even build the multiarch tests. +ifneq ($(filter $(TARGET_NAME),aarch64_be),) +-include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.target +else -include $(SRC_PATH)/tests/tcg/multiarch/Makefile.target -include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.target +endif # Add the common build options CFLAGS+=-Wall -Werror -O0 -g -fno-strict-aliasing diff --git a/tests/tcg/aarch64_be/Makefile.target b/tests/tcg/aarch64_be/Makefile.target new file mode 100644 index 0000000000..297d2cf71c --- /dev/null +++ b/tests/tcg/aarch64_be/Makefile.target @@ -0,0 +1,17 @@ +# -*- Mode: makefile -*- +# +# A super basic AArch64 BE makefile. As we don't have any big-endian +#l ibc available the best we can do is a basic Hello World. + +AARCH64BE_SRC=$(SRC_PATH)/tests/tcg/aarch64_be +VPATH += $(AARCH64BE_SRC) + +AARCH64BE_TEST_SRCS=$(notdir $(wildcard $(AARCH64BE_SRC)/*.c)) +AARCH64BE_TESTS=$(AARCH64BE_TEST_SRCS:.c=) +#MULTIARCH_TESTS = $(MULTIARCH_SRCS:.c=) + +# We need to specify big-endian cflags +CFLAGS +=-mbig-endian -ffreestanding +LDFLAGS +=-nostdlib + +TESTS += $(AARCH64BE_TESTS)