From patchwork Wed Sep 25 17:11:31 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: 13812357 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F5243D0A9 for ; Wed, 25 Sep 2024 17:11:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284306; cv=none; b=IxO4gfKFLd3JPh/wFZiUruoH46ORLOkG/ZY82BsT1Lcn3vh032RSo9vQCnYDoJKvCf8LU19seaLs47K2D+/q6V9kCiodp5kfL0W3p7xiGCLlup1/WM1WG879QDQiomThy7UOBDLUPhBtgkqPX+lCTVaWV/Yhq2ggiqL8WfRevCA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284306; c=relaxed/simple; bh=sSm/9Vnpe0c5KVdK+sQHwIZ6tJywvbLZUfI5KYQ2tQM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=IVi3x9PkN8HBum+fR3z2+5TMKsdXfBNCZbGHLL4Wpue+8uBn7jPYnOOIDr5KgyeHB5R1fPxop0ZFay0mX1MbAeHQo+fvojZCR3ZKIJ/drOxzhjtm0X84JZYVXu4hqyLqbaD8MQga/tsBvD98C4laZuFk+M6fVeGLHPVJQyrcXEk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=K2yMx7dw; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="K2yMx7dw" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-374c326c638so4535f8f.2 for ; Wed, 25 Sep 2024 10:11:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727284302; x=1727889102; darn=vger.kernel.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=c3Onvi9UHbad6ukc7arbUZKYIPfwRyBIrmeNY5wtelU=; b=K2yMx7dwVDt2uVo8lqxzJgFMNRK6Czk/lRCAL3JV6gew92Lv1Qdbc8pzcK2zLQg9S+ 66mq9/tAU6s19EHSpl7Qup4fLngbIyhInuOXqA9xsJ+pIqtRjl6nu/vyB9bgYfBiSd6a ZaDD6o6MO9psO1AhdYjnB42QDiSo1LD5z8CAgLBjWiUjMJtsVbY2zIlMjnsEnNhgHq4/ 9mQmTruBSTZs4fzSMLGQIx/sYAufhwz9navx/1G1/0bRNE0caR/tokAE7v+RgD4Nh6oq EwWJp0q8zYDyeIg1Dp2P4lm2/t7zk1lwEIr0sY079GPsM+svP8NK+vJhFwk3Ir2VEJvY WWJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727284302; x=1727889102; 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=c3Onvi9UHbad6ukc7arbUZKYIPfwRyBIrmeNY5wtelU=; b=VG+M4jVytcm1R0YeZ2vCmb3CQcIAFwknq8sWyuKH8ZEe0qBEnanEL0MUPKbv7i98kr boJTDV96F2tNHZ32pSQCMxO84Bq1vWP6r5dNlC5u6vKt1VAeZyO5pHCa3/K45oxO0A4z mQWZ0JXE4rrITo7lDfgkyLIq7NhdjXM5JYKRhCEoxiWZKxVKK7HDB8vhezm/BoXpq2u1 5IW6Q5RxWdLXj935kIQgjkptCrl8wfVAb5z/C9FSBs0aK0vIrjywxB1tMPe7tzLuleOS LFyZuPg7+THLH87Hw875eaXVYYT8z2DVet/kDud7RfKT4icdhX7c7R3/J8OJJleYe9gi NCaQ== X-Forwarded-Encrypted: i=1; AJvYcCUjLPdyQpHi/crI7mBnRwB2YO3HZZrqlBoK57PZGjG3DFVlyi+/S3svsI/8G0ZZvopC//U=@vger.kernel.org X-Gm-Message-State: AOJu0YyW/4PXNt3k5rJvmRHKAlUUWAJZB+TreZKg6yUJPTN4tjE+W0EI MvSP8/ZBOGpQVURY9rs3DGTEZJ7gdvhzwAPZgi92jv6Vdtxtn7FIR15T4pKXpCo= X-Google-Smtp-Source: AGHT+IGU9YspaaYUHAocJNpuK/dESiOM4/xW0oakkSg3HjbqR0jo4IN7CZSLTTUEdfpSOxiESLD4oA== X-Received: by 2002:adf:e341:0:b0:371:9377:975f with SMTP id ffacd0b85a97d-37cc248404amr1850453f8f.25.1727284302309; Wed, 25 Sep 2024 10:11:42 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cbc2c13cesm4508393f8f.29.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 6E4A45F920; 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 , Michael Tokarev Subject: [PATCH 01/10] testing: bump mips64el cross to bookworm and allow to fail Date: Wed, 25 Sep 2024 18:11:31 +0100 Message-Id: <20240925171140.1307033-2-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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The mips64el cross setup is very broken for bullseye which has now entered LTS support so is unlikely to be fixed. While we still can't build the container for bookworm due to a single missing dependency that will hopefully get fixed in due course. For the sake of keeping the CI green we mark it as allow_fail for the time being. Signed-off-by: Alex Bennée Cc: Michael Tokarev --- .gitlab-ci.d/container-cross.yml | 3 +++ tests/docker/dockerfiles/debian-mips64el-cross.docker | 10 ++++------ tests/lcitool/refresh | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.d/container-cross.yml b/.gitlab-ci.d/container-cross.yml index 34c0e729ad..c567926182 100644 --- a/.gitlab-ci.d/container-cross.yml +++ b/.gitlab-ci.d/container-cross.yml @@ -49,6 +49,9 @@ i686-debian-cross-container: mips64el-debian-cross-container: extends: .container_job_template stage: containers + # Currently waiting for Debian to fix: + # libgl1-mesa-dri:mips64el : Depends: libllvm15:mips64el but it is not going to be installed + allow_failure: true variables: NAME: debian-mips64el-cross diff --git a/tests/docker/dockerfiles/debian-mips64el-cross.docker b/tests/docker/dockerfiles/debian-mips64el-cross.docker index 2862785692..69d6e8cd11 100644 --- a/tests/docker/dockerfiles/debian-mips64el-cross.docker +++ b/tests/docker/dockerfiles/debian-mips64el-cross.docker @@ -1,10 +1,10 @@ # THIS FILE WAS AUTO-GENERATED # -# $ lcitool dockerfile --layers all --cross-arch mips64el debian-11 qemu +# $ lcitool dockerfile --layers all --cross-arch mips64el debian-12 qemu # # https://gitlab.com/libvirt/libvirt-ci -FROM docker.io/library/debian:11-slim +FROM docker.io/library/debian:12-slim RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \ @@ -48,16 +48,15 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ python3-opencv \ python3-pillow \ python3-pip \ - python3-setuptools \ python3-sphinx \ python3-sphinx-rtd-theme \ python3-venv \ - python3-wheel \ python3-yaml \ rpm2cpio \ sed \ socat \ sparse \ + swtpm \ tar \ tesseract-ocr \ tesseract-ocr-eng \ @@ -69,8 +68,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ dpkg-reconfigure locales && \ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED -RUN /usr/bin/pip3 install tomli - ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" ENV LANG "en_US.UTF-8" ENV MAKE "/usr/bin/make" @@ -143,6 +140,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ libvdeplug-dev:mips64el \ libvirglrenderer-dev:mips64el \ libvte-2.91-dev:mips64el \ + libxdp-dev:mips64el \ libzstd-dev:mips64el \ nettle-dev:mips64el \ systemtap-sdt-dev:mips64el \ diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh index 92381f3c46..a78219f7bc 100755 --- a/tests/lcitool/refresh +++ b/tests/lcitool/refresh @@ -166,7 +166,7 @@ try: "x86_64-linux-user," "i386-softmmu,i386-linux-user")) - generate_dockerfile("debian-mips64el-cross", "debian-11", + generate_dockerfile("debian-mips64el-cross", "debian-12", cross="mips64el", trailer=cross_build("mips64el-linux-gnuabi64-", "mips64el-softmmu,mips64el-linux-user")) 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: 13812360 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2780884A2C for ; Wed, 25 Sep 2024 17:11:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284311; cv=none; b=tgATTVow+RyktMgZ+OqHiWVGwVei7vhNW6sOxT/EAJNyojWajRPksBn58JEhlbEO1Q/wX5fdeD49TosjcOIQlprx1L8L7Y9RWY+l4it5y65+ypUTdIYuwOner8Pk1rfbHUVorfEkqfVfl/z98vdAtUMUXThybd5//WCpmb/zNDc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284311; c=relaxed/simple; bh=3ocp18cipe28Y1G4M2yx66dkQYTqfF/PEb1KxGFg+rU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=iSyMAnorUrz+3gc8RDIKnpN4bFA4XpnlqPaabXFXdMw0kEeGy+zK4JhwqBj60/HaDXAT3CjHXqeigrnq4MTkBZ91dWxR2RRU+3fQNBQBy/ZwUrS5KV1YbJmbxKIrLWdZ6kF4gXrgI0H63Zdmxj44CT54SI5ADYEbYqVxgP0iPHw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tF40LMqk; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tF40LMqk" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-37cc4e718ecso27476f8f.0 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=vger.kernel.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=tF40LMqk2ISNDRwNasCuRpLI7/vY247CWXBRfajCHNuTRl1Pq46zeG+jJc2z1AE9hp P0YKxZaGucZ6/n2RMe7Wt8aFdjQXLIRbjP4GkXmqfaf19dktvGAKywu+KlmYwM859oaY c9w7rRmylpW7UxIg+zAK95PdrBz9uWCFFRT2y2tyhc7+9a+x6s3azoby0qy0TJ2/bCEI D9pbJdG2/voi5r6rI1ViJVizk//Ec8Kn5+JPZOjNQnIQrBowyI2WgFQN02yTrEuNEPVO xw/a6JhBIDw94qMjXhJFasptAXSjTIVWPANxqVqzVTLi3sqS9JOgido/yLna58AelI9f vuSw== 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=ZQkXKNXwjVWHn07okOUq+Nbs1RGe1gf9sUr6h1a390eY0XoRkB+2gDbfHNAao4z6Ey 6I2GSZeBBftxC9Jgg9aORxxIlZ65XE2oeP2rT3aoeF3GBhe8D/TBTTzuwjXVia2RbYCJ EafizR9DOK2beElXBqjGuDXU/ax0tQjcoNj7GaKZyVw8mp9FmObQWp4YXUftlCiVyCjI E413NB7L+Aq0FXT+z1TuwCm29i+Fee5A/h6qSC/CYuY3DecGtFfQ2p8gW0qwA5EaI0Ki USJSbrQJ0M7hCaLpqTr9czddn2PNKzcsu+CgS0N9C8rScBhp0rAOe5oYCTjJEkL6/l8d fJnQ== X-Forwarded-Encrypted: i=1; AJvYcCWGzuHhnupAo4ptE7JTi4jWseM6VtTPMCVrgLxeq8GLAJmxwyLLbXZNUraSpBnvMi5Zzus=@vger.kernel.org X-Gm-Message-State: AOJu0YzrhBBJ4IhykKn5SQec1T0aQ4cnETPc12NDUfvcsJ1sC60jo/2k lyTEGaN2YxBCa918e9e0ywFLjVMXsG0Joaq8gM6b6TuMgmL1WIs+8y6GvjLxk1s= X-Google-Smtp-Source: AGHT+IHV6HV/eWaJfeffMpjzbiz3n6OhSG/OKMDSorPfnryDAPUV5GyUbaXuXJP53F/aVYvFjacx1g== 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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:33 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: 13812355 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0A4217BB4 for ; Wed, 25 Sep 2024 17:11:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284305; cv=none; b=C2wgnQaLLLKSeen6Vej6TzfzvxvDSL1UewI4CiAz/NQ2pSfZA0yYKeh1VzRhSFmK8fGDgzTtvyCXZppxuGDKvbUcALY4MeYsCLwBcx4M5e9Z1uGR8JI50Zj4IYk5uWGeXUs0+FFj+ISdXnOYQvQnIKO0OCBR5wDphTVEDxVOtwI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284305; c=relaxed/simple; bh=aS2l+vmDfLF2uLItNIzgkZDSryR40qUXakZxJbkgV9Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=r3+PUoTpUvE/L3gazXzCd/xgfo1W1WQIcvThfRliS3I3z7vAOIukh1DbOz6K5Wk2ztAvwL2a2kLXWSGAMRa60LHQKM5VLGORWcp+qVViWHMSrZQVs9QjVBVYcHF/8Tt0yjC8CXjA2yxhaxB3fomaUMxSdBERQ6k/iPi+2n5uWzc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=VO17VUNc; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VO17VUNc" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42cb60aff1eso235685e9.0 for ; Wed, 25 Sep 2024 10:11:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727284302; x=1727889102; darn=vger.kernel.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=LfxPswSzpy5PJY7wIfJ4Znven71oBCSA3p2JUb9OqOg=; b=VO17VUNcgMzvb8c4i2t/HnDfOc7GKe9crW0ZjqHmX+uKDOpQyoSnYLckX/SXoIQg1m m8svMDM26+h5xpD7IlBQJDC8LHe0zU5DV8L+uqChDeN0Sp/aLLNw93FRsAYzWAY4Qg9Q esDtW2cYw9sh2+mmg5TFgDH+9rQIl51iZyxt6ScKGZChxusfLNAUkSNQ3sf3mOf/jLHt lNqWtY2b5xbEdNfk1tJdzuOTiMPAYaI4H4vRFSNTN762AhiB4lW6Lzhk0riMBKNT5nBV 5bONQiBlvXoKNdB1bGOT7nqCdgss/m53Dl/xrs8rELj12q7xrPTXW8o4vrmenMufz2oY VDrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727284302; x=1727889102; 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=LfxPswSzpy5PJY7wIfJ4Znven71oBCSA3p2JUb9OqOg=; b=ajI+U2hH62VX7GkJYg/VjXk4mEC5nv1JW0YbXXyrks3b+aD2f3Ha2PFKStFxaqdxVe LjJprqa9B5afgqjZuJt3vWJmgLSoHdsN86YqU+6I5C4L2rXoBieBqsRUGsnM1jIpGVeC Z6EK1uSX57nhSg7uyJsnXsBpJKunrCFCwuPe9Ct69VCB4HCU1iV3OFevXSlE+AbTV5m1 v3cnysj+9utGeFOOszi2UCd3RNsZMVr6B5F+VP32tYHF2p+hcSHmZV0kUsnc3fgmcDtt Pt/wJ3+rFiXqJ91aSV5hwMXEs4FB7d0elHP77hwxKtcuE9C0aQjlQWGRyQbSovMlvbvg Isaw== X-Forwarded-Encrypted: i=1; AJvYcCULjaxp9HJ9Bfn/CUFQZfcayP3IqF1/CvBw5BRomp2KsEFklx5vU2rTXPXqcuuFqTk1y1k=@vger.kernel.org X-Gm-Message-State: AOJu0Yxsz7HD7wuLuMTiQ9QUBtGbD1pDOYdtkRa0hp8/LfraQiYeEMTk tl8+sboITLIpHa5zYmZ90o6Cjl+hRXf9NrqXBcDvb3+0acRNNHR3UsR1+SlQOLE= X-Google-Smtp-Source: AGHT+IHV5SzRp2SHf6HbaLc2hBK/7UiOfq+WQLl5ES6CuTB3Awe3uqUh07rnjOOYTKUVx2htHojcQw== X-Received: by 2002:a05:600c:3b18:b0:426:5fe1:ec7a with SMTP id 5b1f17b1804b1-42e96242e81mr22084905e9.31.1727284301933; Wed, 25 Sep 2024 10:11:41 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cbc2a8a8fsm4443984f8f.15.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 9DF1C5F94F; 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 03/10] tests/docker: add NOFETCH env variable for testing Date: Wed, 25 Sep 2024 18:11:33 +0100 Message-Id: <20240925171140.1307033-4-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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Testing non-auto built docker containers (i.e. custom built compilers) is a bit fiddly as you couldn't continue a build with a previously locally built container. While you can play games with REGISTRY its simpler to allow a NOFETCH that will go through the cached build process when you run the tests. Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 681feae744..fead7d3abe 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -92,10 +92,10 @@ endif docker-image-alpine: NOUSER=1 debian-toolchain-run = \ - $(if $(NOCACHE), \ + $(if $(NOCACHE)$(NOFETCH), \ $(call quiet-command, \ $(DOCKER_SCRIPT) build -t qemu/$1 -f $< \ - $(if $V,,--quiet) --no-cache \ + $(if $V,,--quiet) $(if $(NOCACHE),--no-cache) \ --registry $(DOCKER_REGISTRY) --extra-files \ $(DOCKER_FILES_DIR)/$1.d/build-toolchain.sh, \ "BUILD", $1), \ @@ -177,6 +177,7 @@ docker: @echo ' NETWORK=$$BACKEND Enable virtual network interface with $$BACKEND.' @echo ' NOUSER=1 Define to disable adding current user to containers passwd.' @echo ' NOCACHE=1 Ignore cache when build images.' + @echo ' NOFETCH=1 Do not fetch from the registry.' @echo ' EXECUTABLE= Include executable in image.' @echo ' EXTRA_FILES=" [... ]"' @echo ' Include extra files in image.' 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: 13812356 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 176A9481CE for ; Wed, 25 Sep 2024 17:11:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284306; cv=none; b=s0cmUFOdaQgOaVhl1J52TvxDWHL8uSOebm7SY+t/yjAUKRylvVQ4GcXcIIAksTmrGhl/nycBgSi4kOxL1NEuzrYCCH0voEvyENdRRDaNj6PjY2fLXKpd68sScpAeKhW7kVJ/ZzVMeMr5Kujjn2yxCMOoCUlXmHeFXdTzEgcOHM4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284306; c=relaxed/simple; bh=2Yb7oTCka3wIE2DMAQMTcMy4sVLQbC/DU3rjrp80aIo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=oc5Cxg0Tm1PzbvM8pu/AYavonMSxROfS8MZ2kF/kQ9gUGmhUSaNFq4YQ+kNT3nhZBrSYkXLlctD7gQS916DW2Tuh640qeSQbMs4y4zYK/r3WygeRFJginSp9VOABp8zwOIn73I3f2PNBEX5Zb7TOfS5HjwJgV9KyrR93YkXBY3Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=nXp2f0xD; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nXp2f0xD" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-378f90ad32dso31580f8f.0 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=vger.kernel.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=nXp2f0xD944fyZcNiQDBnJia9hbSoKXVoO48xSZux5Zz4fZ5FWQhw6OoCJAfhlgc9o zkx8jb2YtbpxvI6Dlm0ISFtgf6cVkzxa/QxLGKT75btu3H+tgybylY28iIC2z5++gX4f T5ebxDZ50cwO2JLvyd7t+NnMIseGcETlEDNgbcxI0kN90gTsSSkAT4Gnzm7lAXR1JRNl k3tH+s91JvFCoImkBJIXVnV22T90CQELu5qcjiHOemFqv0PDDXj13lT2IlPCuIRSZbjf HlQcVLTzX7iIQu0KtAJixfw7n2WIFTktaBebgGcG3ew4FcVFyNSYlF4akkEnjybW0Yhw Wv6w== 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=O7dMnuAL5n6WBCwVSJ61ebkYO1lATz6RxSoHYx4WrL7W/wjAujXOA2R/YDmakzcqez JS7yO/sYpUt1jYo2lpCnBfx2LD3tTraY92TXAcYQpSIp8Ckc2eoLPr95hF1PDBOaLi4J YpOsrGCSMEh/MwUi3UOZiCoqCz7T+h0QnVIiOys0byW6TTPuqYt15flqRaxlufh5ino3 elqq12LuKrNzv4LA1Uul0a7EDL9vf5Afl4PMYH1N7O0hENaVTkN0jeJwhgYGDdkE5amy s0J6CmiLlf4guh7gItQKbP12ehom6IlYmSL6m3vG4gaF8tcsSQupO5e83oKYddfNDtTr JWYg== X-Forwarded-Encrypted: i=1; AJvYcCWW5/RDSdpH6W0RAq7tMA6+2fGAArXmciZvjxD7eTvucPLiopm72wjp/wVt4iHJKuTGpHo=@vger.kernel.org X-Gm-Message-State: AOJu0YwjyXL//18po+qwb0PnqPVeuHrgFq4DLaEH55Hjoi5tVvXt7sku eBvci88kbpznC8Qb9fV97jLvveOjkrYdcRVfss4WP3pBxFF/QnvizGtnlIVaJZo= X-Google-Smtp-Source: AGHT+IEORzqVBB16eZ00Qj5TJ8YpgmN6tE1vpCu+cktnO6IgKyCPHtWZVud/qUVLpXrUdIz4Dy+68Q== 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13812363 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 044884AEF2 for ; Wed, 25 Sep 2024 17:11:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284312; cv=none; b=V7n/XShk5pPWx0ReEzKMLrXJOMVsJo/DMgr1KlOInXyrObag2E4J7ygzRJ20dNt9mD65ZeI43utB24xcy8ESWemFIT491WvGoF2tsow0uvU3ZJMg3wZmAUENZYaiLve36ztQq9++Z+mBHsbl7GHJo/8BTygxignH/1el6gxAcmA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284312; c=relaxed/simple; bh=28vXbYY3NnUgjx+dHCeL74DCpQMF3AD60aLX+nWUK6M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=K25rDWhH7u12tvkx8C4hneoI/Vvgcpqax3t1at4yON+gIbo65UOb53VhvcSyepAY3cytQofhtyc7YYTsPu9NAQtNAyTegRgU8H/NF7Fhr6QcU3q6FjqJfW5kVPnSFlyQbRFZlJu2/4o8J/JD0T9Wczxue5QBvfgAu1Xi3TX2wtY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=mYTSXDzt; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mYTSXDzt" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-42cc43454d5so132285e9.3 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=vger.kernel.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=mYTSXDztzTdHz94iYoZLa19eBc/VXpRnIZqWNK3p44rjh8sPU7ohtg3SBIxwu72V+Z yD4LvqiWg7+vchk03luH8kfrjhBWAIElqGHRzm8cudAx2/tM6mSTz0QjyqBkvdRcxKPZ sLfzRZc1TKQ1M3hCPHQ3XcqQk/HqJKFb5nKs0Pl3Oi8Sn8ZOEs0x1MoaRcc0+cpOjmHM m1PnRzLWriBEQsvCn1Dqh1u7tI76oeHUar9moRI8H112LeJl+LAW7+X6h1xnff6N3Esr iXKIEc5HW2c0RnROiMNflRkRQWcser36Nnk2z2jSUVUwkVsofna87gISFFXN9aRZaUeT QqPw== 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=o+YPMKFyhBGtu8Ql6TXYmE1LcOo5WTMGEBSDMaS301ERfiYgsjKk9m6WXdqr+1bRUS 6/VsTORsRh1xYTc7nCdaYCo70T5AuMwtP5GwzEG8u5Qn3yT1VT6sfnE8uNk7/XoOBOgK czNluepsV2z6B5VD5UtG/Y98PHoI9Dfu1tRi08jHJhVY/+eLd92LEwIKpXZM3m4afn7q 06SE8VR6GC33w99TD4OqJjre+dJdahe7Vbhwqz9Cn9oe0PU44CuEX2BKocj7lh/I14RO +MkHoAdw94ut0/tQrcnNdG7QIp662IhkY8QlXinYCv3VpBezUkBg7waWnpSJikAmkdp7 4/vg== X-Forwarded-Encrypted: i=1; AJvYcCVQJp3tWV5nwNca8Kcjscam2ZfAQ+MP4PLpkljypMOkAMRA9KHhUUQ+cTNzSqccblwKCqY=@vger.kernel.org X-Gm-Message-State: AOJu0YwpM0cydtoFmb06/5vE75Z83B7TI0zWSejonClCDmfkQfK4k36k xlFwD3mll3Sd64G9oACq7fF8bZs71NeM8twygEG083jjzlCsd++1OZ3b6LQZifA= X-Google-Smtp-Source: AGHT+IFRxeZoSgBmmopQctlKDB9ApqhA+1oJ+LWS6CG6+0s5NaCxN5dtRqAGt/nMi5ztrLWq2e6P4w== 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13812359 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8519B80C0A for ; Wed, 25 Sep 2024 17:11:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284309; cv=none; b=dn1E17iZ8B3XOnAUgrqzdmrh4WKL7nFFOta8gOYo2EBRNrB/OsQquEVwLATJ9sWzsBnzWYLrcTYZ8zfbIPELh1S/Q/UvUNLVZPtLB46ByfVF1ChbKA5ucD0vT1dXeFj/BxDXRmVQof3h3xjZ2wxRUbopdsXoBFdyVlXtvvgD2AY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284309; c=relaxed/simple; bh=ahcnesimgw3QlHd8VJCV89oQxIg9QBH1LRBLnHOZ5T8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=TFRxXzPwjI2RYgEbKrF4VpGEL4BEkJ1WfmEwlPXQhmQFmye0P1cfPy1WYQxNN+7TzkpdSMUmbzNDH0nFipHecZl8INk3IdVO638jJnJElfxvi/Duj58uptxWP2Dqclx2g/JONPe3E39rhdz296+v8uC9DlLqLuPOXIbLb+mAtLs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=a3zzJWmQ; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="a3zzJWmQ" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42e748f78d6so332925e9.0 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=vger.kernel.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=a3zzJWmQntuVVe//W4C35spLDx0I3DUq6cjrGItAwjnJX6LsN6ugNvHWk1unopz4J5 XsXVKIYpws1efTrZJsqkabo+Qu/eJq0BBwkCU4Saw8ytx0EVFkhQseaIjWnv3XynTp0g Lyi7TFtvtHUWPPMpNwgrQAu4kyu0RvY3jK0JGA4bXaTqi/unTPQ4hdWETEoqFxKv0VgS aU7veeMDHV1ovuHS4Pyt0ySq7ssvyN6Ah2gWjW8WpuIqjt/F1Bl2s5XmsbsuNfTCgYS+ +7/WQRIQRqHo3yJXfrXhKZhi/vSt4Pw6vb+TKVhjd77QYR3CLH+LAj3cuOfhVD78ecSD zyAw== 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=N3pu12FWpEpITt6MWKZV9mhqj5c1dblUbQyPNE5SG5R/vzRyvJB9WEGuq1/kwmaQ5Y eHlNhJGvjeIXkyPv4jH6vId8YhYpK0evODTEaM59aNovW2RFCdoV1OFgCBJZHG8x9YQD 54iwxQLTg8QLIYizOnLOmcOCl+OhqxypkIwZQVqfRgjpVel4nAamAe8dGeJ3GR/SNUBr xGuAj8Egd+1NsRqjjjdEvyrxBNXFGHEpar9y3dSZhljxN5WqZrSkt11RWke4jTqiYKkq DR0+aKPyZzXcRpz74tB7C5qdsH8WyclJMtXKD86Zc06Rd2ItIfl+v46EqrPp7fvz5UyR Uefg== X-Forwarded-Encrypted: i=1; AJvYcCVq+/yG3XNTBNwi/iEOGp5jm2JUSp91xzX06b2GKXZ6DpT8nllRxRtpqX6Yboa/hlLU/yY=@vger.kernel.org X-Gm-Message-State: AOJu0YwKjpsTlwVi/APs2mrhmQqMZw+bHNdyaXmigFngJtvgW9bqkzHr jImJa/yY3OWCtjJYFzM9XUSrkdojTQ/NfsjjcVG6SDmyu+cozaTTugqcDp4fvwM= X-Google-Smtp-Source: AGHT+IEA9zk5J4EgLwcu9iKTkG6OebG0V871ScTHwgvkLHU/Z/qAW1uTvFwLsqIXWyXSVXC9pmkYyw== 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13812365 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2729B13B5AF for ; Wed, 25 Sep 2024 17:11:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284314; cv=none; b=lvDYpU5K95z04ICJeIdQ56O4dBGqYIBRNavj4gAFKYRlB29JjMAJMUIAseXmCe0S3k358sDsrAuUrfirTY5kMmo+VCgirhMtBqwuONQlyYxgp1JVe5fVz/N/Elwov0+1J/oXUtQGWBAhMXU7wdkz4YHIg2SMRCZFX2knz+cyg0o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284314; c=relaxed/simple; bh=rPqdeMZHjsIWZRK4nVVQap0ga9cDd7eG9O38cGJ5E8o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=My97xwci0O0r9nmGNxGXiOfql0G0QiaeveTOndGPL9PC2cdI2omAQwwfmfasObEhl7CS8bdJC7416CxwcoyM7TFFkoDX8BKl9YqVMJK1hzcaAu7rjw0XuNFtok5pUqBeLIuQWYLUFksqNHGE1rOlU6t/1sG39BpZ6F7e5KiPcpI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=JYwKNOCS; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JYwKNOCS" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-42cbe624c59so137725e9.3 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=vger.kernel.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=JYwKNOCSqjfhEutUz0FnhXlUBEElYxDIpTT/qGJfF2pWQsGT0rOZiiS7dMgbtOZ5Qn v/rrkTabiITvodbTzYccFzZce9m5izkq3iVm5oQ6jNYzZl0CwLVmhzgCiNSaaOkcUGPF Gi/UpU3LLgG2rz4uUvI+T5hdGRlW5qavGmxbHw23DAJ5tjejuvVVvV8QP+tOmQZ32IYM AmJ8kwLk8d6GhV5QvjlyoJfnb5ZkDv9OKuZEU9kAyv/XAqao1bO3c79ObROSTFjp9Atj lisFrFmB0Y9B+99vJ/DskF+zDXhM0PCISDEI5nMzOWvQkwmL8s9/m28cw/JUAfHOoQb7 Cw8g== 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=K88LzDdcO3fOhkB0/52/1Y4exEh+Rq+jffoSHDMWCK5AJYcj7lqq2W4z7XexEChWNg XCHwBZE8nO0pr4zxx9gWFTtALfKkk/oBjFLeYLMJq13rcUGzWSHE+16TC+vjWDRE08eT AXazsMvQ/D/4qW67O4KmAsI0uVdGGHRjxz6yzOHu24Ls0f9Uxu52DUHaqWG0ceU2QODw 2Mor+ZpQLXekgi9Ydoz74MMf7r/ddcr5xEswrQZ4cu/JZ8jEZHAqs4wsgSiFQQwXFLFV V12yyeOgzhathB9errNIlc0KtWK9YRtN4cIEL7NUAc6W6jJlIvqcezereuuw7ImOsYJ3 4u2Q== X-Forwarded-Encrypted: i=1; AJvYcCVSJpMpQby7/8Z3YzfXLr69bXoaQ0ObjE8p4fYhFbsRJl4LyGM//A0rEhkpJpkVYSCa8fM=@vger.kernel.org X-Gm-Message-State: AOJu0YykfDejG17qp8Efod8lJF19MudzOW/G5fnO2nAeVBl57lD290nh DTYcwo4oTUzg3725NPCQ3ZG8IbyB1CM1bkZLa931kumKuhkMyQht7gmK9tLPRLo= X-Google-Smtp-Source: AGHT+IFF+UGt9GzWgAvvLZ7Qs1yQKbnDMQ6FQT6ids8iYDWVRm/vi2jxBGcUDOaNTjhDnY7/U8c6BQ== 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13812361 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85E2885628 for ; Wed, 25 Sep 2024 17:11:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284311; cv=none; b=AWkKWY1XTg6XZwjWXsSc+8heX+mE89LivwL9j3X4g7l4FUf/FZ7NiGSzDvDtIGFIL+5XNvXDZwWiu3o+VrgYb/ooCDkxvwpvypNwdeMOcaxeP9H1Sjc6UpCPAPxAUUF+WBCbgQdUn3Tl7spoKlL7EWCIS7NzP6eAc+cehSGF7ic= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284311; c=relaxed/simple; bh=lOeioTiHb1xpwW5Cln9C3vr+QU6UmszUoUpZcKnkq+k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=abnFsgMZorJdBMZn5pDcrJZcAiNodkKlwyaL+1n1+Lmob+WvpoIn9XP02EXmDMLE4g+UInsL04OClpAl+qaiA6UXrnAX450mcXtqvtG4qCaFn3Ce2tYD7DuGKPL+ehj64HFxFFAJTopekkMIfRMhgI4vIGYJXQss3TkayER08RY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=CU+Ciedv; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CU+Ciedv" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-42cb1e623d1so349245e9.0 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=vger.kernel.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=CU+Ciedvv+lsH5zaV5GhPVx2PMvID12wdv1UQpCKcBvDzIMrHic2Q9T60amYWCIJJm LE7w2eivTqcvUARoarfg2UW5l1LsKQb0AIS95ZYEAsd1v4r2+KhIzY5C1oz1uvo0OO2f St95hKta9fWasj3Clhf7Rjj9sEnO/V+iiIPLLPuEHrDbIrF3eZYemgpG5dQdOLpeLuje YUZ2TNxH4+RU6Ybnb4mjchW/4u50CZ+SbL5V2lzdpFA0pES2WZ60vyw/F4m9tEmnl/As ti2USiUPWa6hcdtXLCNzQW5K/AinAhoIMAIaM0pc8jLT2BR6Beffl168dNFfT8XGcitc XQbQ== 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=RpyItbcFuit59Y3uUW2fZcvnEoXraAqYLXRSOTQJGXaokauUWxS/lxgKdHFUWrZ8ZN g8sraCHB9BErN2AwliFJV8AmMISksFyH4c2McuGbe53XnjjTTxNVVx4WPv+HZj6bVNXP kWWC48N3KvlCWm9HX72IO9PBairEiSzotFYTgNMgUjFlbTJAkyWYOwaiMjAljHDViPDt PFOwwhMZbZnZqfVS+gLmJAHFPnE9h9SWXxnfo/wrUzLXwtg/4F40PejwlNTa0d8XXsF8 Fpq3ezXWmgIF6wG1UFUmRj4EOSeI7xc2Wpeo4edYV1ZMdDFr1CxH2MqrA2EnAAwTqWg+ 3LOA== X-Forwarded-Encrypted: i=1; AJvYcCVN5Al4Ib0Np+NUckLYep6geXYZhicMT5+KZ1cq3vxxEyd06pHGG4K+7A0LpOol256LQ7c=@vger.kernel.org X-Gm-Message-State: AOJu0YxF9CCfWRSeKkET9PGrjAqiheEDXDAIVmWlccMZK/cPGIh0pFBy mkKvemNLpjVlc9kpSHr93iyB+ZKn61j2XdkvN7Cy5v6kRlCrrRVVxm5jWVkECeU= X-Google-Smtp-Source: AGHT+IGBCTHIWfSfgWAoxWqUTo8+jlKpLyEBTIm6tcnrukMNtvBJLrfotsddLNAtN5yhINvOVzR10A== 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13812364 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CDFE13A86A for ; Wed, 25 Sep 2024 17:11:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284313; cv=none; b=QKv3YW7tOU1iB9dJekzWJ69sibWwGHz9Vcz/6+vY63JXfL1+r+fP+19AftuyP+mFKJgRXkcWTLu23WNqSFymk6Ydn2nFCkLCBIv0IY29qOfAtc/PRVWKhPPcfHssgKsB+96ZXoAZeF6qcf3zc5ca6HEBrDj1sOxuK9WJIW+A2Iw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284313; c=relaxed/simple; bh=Fy+nXGVNyw9VouRuwhWL6Rfjvq8Z32bsxn56JCTmNOw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Y1HOjVLhtsqIEoIpbIeypmlEjRrfOW6GxpPvGhJYzkVf/AwuEkz2v4lCd6A6bQwRbo5jgtuSTy3EwHJZIlfEoj9F3CXEwRfILM15uU+dk1FNWmrpiRmg7U4ZJ5KVDZR8cBH3o3yxkTpJwdbrd1gXLZ26UrpjAQc1tbMWpGtTcT4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Yf5y4BUJ; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Yf5y4BUJ" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-42e748f78d6so333855e9.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=vger.kernel.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=Yf5y4BUJe+b44yOvKBv7RgCCmmtjZWq5qW4AyWk7DIkPxLUIABoQjiLoKJJmCNx1a3 MtVShKr+qqD4Mz91ZLaMMSakZlc2JdYYuUMk24tuaMYe3AozmPKQElHVoWKatfLd7hOY 6jqhY7xcD7rgOS1vuCaClPKJhUgCzo8S7oAdv17R3XaZFI7IjNfzijzZjGbh/qFFbB1g 3l3r6WlqbJulbXMnl8fx0Z6VJrxh8I+HkA7Fe38X4LbyF2InrKyhLUCJZIndISALEbnk Mxxs1BFmC4swbKqVanHRdmbCURdppwKpLKiz34qNhF0dngZvpHvoXre/tdQZ23fT2Sto TAqA== 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=j3o46jZ+HHzO43pJXcv20Ecr56te4x2YoTC8HU08AK7giXGQmF7zT85Z8NHQjvYDkd BJYKhkKEG4K4A6KY66bwJ4aM9ApTNmqjuw+TX8AnYLZH7OIvi1ppnVSqvzw9mf6QokiT /j81aWte/RpBJCt9Q1DJpCfFpmSZ51nO5zX2RjtBEX7FxeNg0knlW5IRwIqRKPGgKztc iKZftOqdkcqm1eMJ50DAuIMyQ0AzORLEyIVn23YMRVNkBdWjWvMIHDsQXld2wmHHU1Jy 695Ou91w1wao6iOzCTBECakkzVa+1xCOVK3IVYthmAtZKfDiWBn4aIG/nsHswAadslse 1g/g== X-Forwarded-Encrypted: i=1; AJvYcCXj1w2sQmHief/YtVGU0Nq20CrgxPgH8uBve3rDxNMo2SPaj7SgLjQ3trLJZDTJLrAJJYk=@vger.kernel.org X-Gm-Message-State: AOJu0YxRYgS1r7StypAlCxjk8uNnwySwsnWWwc2WKYhkjvSpYdOdqeJE tdziLB81gVTr9PAxpIqg/ys++3aMcRo9IZgz8+znSDRiq36k5txaIg0v1z7D4UA= X-Google-Smtp-Source: AGHT+IGD3jF88KfAngOylDc8CVhYjnNX1NcQOwwW95cwuwuTfBIj06W2PgowxTm83aXeaqFntp0hUQ== 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13812362 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0CE312B176 for ; Wed, 25 Sep 2024 17:11:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284311; cv=none; b=OGIuZUpugPbq9uElFkWwa3zbcYMbmPMGhV4tuX6QiKbdXJyVfKgx4iGl0hQU7L+8pLbcKLG5y/m5VzXdulo8qEonptuj59iJ13LlIQpt0p9o+b+mLQ4Z6b7KDRTtbmDtCksUQjg8ziVQgINM5UngKW25YRChCOMFUBh3ydgen4A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727284311; c=relaxed/simple; bh=Z4cZsFtosR7h9PTMPmcmZ3THu8mm76XIlX05rHkyhaQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=DK1VeQHSolNTdzOvuU69StGG7iGXqh8STWbhCFf5P8W4xkP7g9kn9HABFPt/TlU8shdcxJuwfK5o/nyosm2CcN82+lkJOkmPBcCikfHYpcpPqWGzbsG2HWXvUEBGfCj1vXT765451+/bWK9AT0a020uoykRqrulR7+vSwXr6GTk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dTzgVNuA; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dTzgVNuA" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-42ca6ba750eso884125e9.0 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=vger.kernel.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=dTzgVNuAXBEEflLNiebDkbMkgH5WinXm8i9zbRlHofzMUgFFXRKvgNSlZz1AbmQIql poxdYMVzo+1v6CtAQ4NxxKCg6r9SlxcEO7Bm2Cx/hfYZb+3G95dMPUTi2FKwNTBJUBjh OZsvgLPK7nufiP29edgtBD8Wvz4bW0eb6YNy728U3gJvOYe6SQ2YLMQJ2hYerMdCQdWd /t2xS6F5/5Fi1915Co6YSv+qsPiy5TFgmWWDwHhGVN3EsU5Nsc5CUDfMS27eI4V8VpYG eZXTDWDFlxX7ulveAVfWNhbaH3jO/bax4yn3fv8xXazXd9OfHyuERZen2fGzf2hMlp1V h9Iw== 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=Ka7gKwOnf1ilkqDoYZYou32mp/qLhtWfjEXX/P9ERap5ZE6yRW72p6drSX8ikEvR+V HvOToSwqpySTUOEyDdqi9NzeSVWptm0rXOLi8SnSyf9f08b5B2TLDMYi1iuWZdE5mIZO mQTgIAdEbX9tjMhI6foIzCuqubmprRPL0nJZufHaHG9cuQ2BGJ+NKZuLmt1vqV4jUd+o umrTqdZH049735CVP2nM/sQ0YOwqs6ODPb64KSPvLJY9J+ZdbneXjr7gsYLP/sgwXD5/ ZYgtHOyHxt4wmztnGQ+N1xrUBtoAaNqXj3RfcvCZWiAu234mYB0CE4QCXGjftF3cJJ9p WHKA== X-Forwarded-Encrypted: i=1; AJvYcCWynyuM4Sp8T0aObbx+ccCCCq7urmE6ug2VroraxbVexfW3+wCDyMKmEFwOZW/2yVrLuDQ=@vger.kernel.org X-Gm-Message-State: AOJu0YztO8dA1iluRHCOzSfCrHtYy4+OhBS1LYE4uy025ARYRGeHIDvC X55jWJe+CRaEj1H365+AEMjujS5HQ1ERWzpczG/Aw8+de+FzukJIq+RR7gS3ra0= X-Google-Smtp-Source: AGHT+IGEUdwdXmmXxyj5s5u8wIU8mWo+iyIURbnXAseiU9n2QlRwwUQiN93/e4JQ8cQ12tQq4BVfKQ== 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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)