From patchwork Wed Nov 15 20:55:33 2023 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: 743995 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2966752wrw; Wed, 15 Nov 2023 12:58:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQaYWNb6P+E1ydFjNr6a2zr5hgOV4KUc1pa8lmBJOLLYtSJd/umxywlqZVXTpLyGWH/c/x X-Received: by 2002:a81:7142:0:b0:583:a3ab:b950 with SMTP id m63-20020a817142000000b00583a3abb950mr11957628ywc.50.1700081886825; Wed, 15 Nov 2023 12:58:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700081886; cv=none; d=google.com; s=arc-20160816; b=xlFDAyVc+c8XlcDXd3l7BBMoLlWCLC3S/RBc9gf4kDK+Rg5FHp+NF+Ex+OnkkPS3wv DTbNz6kxnybgAszmp+x0hfKjbhpyvADeaOr/bIVOlvXdiCSlId7i+PEG7cBvrMFNujxp YkYus9XVVlmVFjC51RjOMLlU1SgKtNvNuFLzMl7Iy1j12Uf4T32qSpQrR8FilAA4HQr1 osFGq+Vw7VLrNVS0QtULB5f5w2o/iR5uO4R1O+B0e9YHHpt/aRXGv00Hx2gCQDO+MZEC 0WxRnvnFHxf0igJqWEp676XUG275yyehVh4qIS64FQilGEXWKBaVQST20Doxcazl6Q+Y mnrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=cDk9A3AkID4sGRaGhwIPug5Icc2SkBEyvmrQK1bQO6g=; fh=Nmn0cD4zVED+SwPckzxmouS7p3ZrESetd6BlhWEqYUM=; b=X+1SHWEeAV9MHVtY7gzsylQ8fL1LL5CeqTQ/ZsCKpm6X5OGTIBKo/0Urs2w0oKBQDN 51RDJBdHCJhBHYz8BnyoZOuW2Yg2fap2V7HKR8OnWRlIJuJ++bmshxo07THqiNtaaHJ/ cuO7ObFl8UuZjYaAGham2nen8OIXsrfjY0vkaN/waHUQCx3RghjBerkyN3Yu7vLt/u1P 1n+8YRmaAm61b040/jMK+UpNV/Jf6oFK4NERZgKGD1w/VgnWW7Deh56nLuvzvuzQ3Qv8 mDLTHgCI/dXVll12A2yidDiYxwWoq15kEIP1GyJSCM893WGZWXwdVBrw/UBrRsXw/sYP 7AIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S6ZKKf8y; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o7-20020a0cfa87000000b00670bcfd310bsi9569362qvn.602.2023.11.15.12.58.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2023 12:58:06 -0800 (PST) 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=S6ZKKf8y; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3MvZ-0004tb-Or; Wed, 15 Nov 2023 15:56:01 -0500 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 1r3MvT-0004mF-KS for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:57 -0500 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 1r3MvO-000893-Er for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:54 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40a48775c58so406875e9.3 for ; Wed, 15 Nov 2023 12:55:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700081744; x=1700686544; 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=cDk9A3AkID4sGRaGhwIPug5Icc2SkBEyvmrQK1bQO6g=; b=S6ZKKf8yzKD1WsOormRWx/zDpq4+giro42iw9pdYt/s3hjrrusBDR97kYMN1OPIEWq v2f1iJRX0rkRds/cI94QkBbq+qI1WBdE+y4K2lXDObnjVJdDoOzkW23HeSvv27w/fBUg oXofw9yCxqBG3sslulNFPzR+n5ZycCbNgbOdQYDFYouR9m66OrV1qped992eaXV0FCJ6 TnS5MBH+VEsGESkK/hJ1QzS7BkzvjG9BHo0vj8ah7B5sHJ04AdjY249F0J407cUWkTnx ziFb8UWLKc+4qmDsbRSf5bgQGCz5wJEWLsEQZqJnIbC8Nt6bukKraFnRc3VcNDBsgoIy Vjng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700081744; x=1700686544; 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=cDk9A3AkID4sGRaGhwIPug5Icc2SkBEyvmrQK1bQO6g=; b=i21DBcpnQD8GGvWBAddtMdzMgW7DX0r0s44Bdx0qx7pKucNKcaaAupufYaXaNLRtIw qAuwK+J1mVoNwqfTGq1HJViisLV5ItuaAcYNNuEgvpmpv8n5cKlNt8VW5mbt1oQqVisV AQqZozAWiAxl9Vty/JwsR1hgngFol1gLpHmcRTgrjS9nUW1Lecm0nwjTAavHY4cS96Mt DEcjAy8NH8g2b5oEWX5F/UcAT/ffv2STSxqUpFeHd3iYP7wOU9cGGG2rKNN4xYYe7l3H tpqYEY0J/Obiep3E7DkQB1RGzNbysPvzyPQr+K0NWa0nOI2ul01byd9cz8sAq8UT/veW R5Jg== X-Gm-Message-State: AOJu0YzQkJxOnRC86KLi/ydSeuWRpws/Stu7O92jYjQ7wiIbcWQk8rRp mzdLMJW1GGmv2bBUoqquEe/sjg== X-Received: by 2002:a05:600c:894:b0:40a:44c0:fd43 with SMTP id l20-20020a05600c089400b0040a44c0fd43mr400317wmp.17.1700081743849; Wed, 15 Nov 2023 12:55:43 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id g7-20020a05600c4ec700b004094e565e71sm871619wmq.23.2023.11.15.12.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:55:43 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id CF76C5F7AF; Wed, 15 Nov 2023 20:55:42 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , Peter Maydell , Beraldo Leal , Mahmoud Mandour , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Alexandre Iooss , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= Subject: [PATCH 01/10] tests/docker: replace fedora-i386 with debian-i686 Date: Wed, 15 Nov 2023 20:55:33 +0000 Message-Id: <20231115205542.3092038-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231115205542.3092038-1-alex.bennee@linaro.org> References: <20231115205542.3092038-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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: Daniel P. Berrangé Fedora is gradually killing off i386 packages in its repos, via a death-by-1000-cuts process. Thus Debian looks like a better long term bet for i686 build testing. It has the added advantage that we can generate it via lcitool too. Signed-off-by: Daniel P. Berrangé Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20231107164109.1449014-1-berrange@redhat.com> [AJB: tweak commit msg] Signed-off-by: Alex Bennée --- configure | 2 +- .gitlab-ci.d/container-cross.yml | 11 +- .gitlab-ci.d/crossbuilds.yml | 12 +- .../dockerfiles/debian-i686-cross.docker | 182 ++++++++++++++++++ .../dockerfiles/fedora-i386-cross.docker | 40 ---- tests/lcitool/refresh | 7 + 6 files changed, 202 insertions(+), 52 deletions(-) create mode 100644 tests/docker/dockerfiles/debian-i686-cross.docker delete mode 100644 tests/docker/dockerfiles/fedora-i386-cross.docker diff --git a/configure b/configure index abcb199aa8..5e7b76e3a1 100755 --- a/configure +++ b/configure @@ -1307,7 +1307,7 @@ probe_target_compiler() { container_cross_cc=${container_cross_prefix}gcc ;; i386) - container_image=fedora-i386-cross + container_image=debian-i686-cross container_cross_prefix= ;; loongarch64) diff --git a/.gitlab-ci.d/container-cross.yml b/.gitlab-ci.d/container-cross.yml index 463ac493ad..8d235cbea0 100644 --- a/.gitlab-ci.d/container-cross.yml +++ b/.gitlab-ci.d/container-cross.yml @@ -46,6 +46,12 @@ loongarch-debian-cross-container: variables: NAME: debian-loongarch-cross +i686-debian-cross-container: + extends: .container_job_template + stage: containers + variables: + NAME: debian-i686-cross + mips64el-debian-cross-container: extends: .container_job_template stage: containers @@ -95,11 +101,6 @@ cris-fedora-cross-container: variables: NAME: fedora-cris-cross -i386-fedora-cross-container: - extends: .container_job_template - variables: - NAME: fedora-i386-cross - win32-fedora-cross-container: extends: .container_job_template variables: diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml index ac71a2abd3..c2af6c7f44 100644 --- a/.gitlab-ci.d/crossbuilds.yml +++ b/.gitlab-ci.d/crossbuilds.yml @@ -37,25 +37,25 @@ cross-arm64-kvm-only: IMAGE: debian-arm64-cross EXTRA_CONFIGURE_OPTS: --disable-tcg --without-default-features -cross-i386-user: +cross-i686-user: extends: - .cross_user_build_job - .cross_test_artifacts needs: - job: i386-fedora-cross-container + job: i686-debian-cross-container variables: - IMAGE: fedora-i386-cross + IMAGE: debian-i686-cross MAKE_CHECK_ARGS: check -cross-i386-tci: +cross-i686-tci: extends: - .cross_accel_build_job - .cross_test_artifacts timeout: 60m needs: - job: i386-fedora-cross-container + job: i686-debian-cross-container variables: - IMAGE: fedora-i386-cross + IMAGE: debian-i686-cross ACCEL: tcg-interpreter EXTRA_CONFIGURE_OPTS: --target-list=i386-softmmu,i386-linux-user,aarch64-softmmu,aarch64-linux-user,ppc-softmmu,ppc-linux-user --disable-plugins MAKE_CHECK_ARGS: check check-tcg diff --git a/tests/docker/dockerfiles/debian-i686-cross.docker b/tests/docker/dockerfiles/debian-i686-cross.docker new file mode 100644 index 0000000000..3fc4e15acd --- /dev/null +++ b/tests/docker/dockerfiles/debian-i686-cross.docker @@ -0,0 +1,182 @@ +# THIS FILE WAS AUTO-GENERATED +# +# $ lcitool dockerfile --layers all --cross-arch i686 debian-11 qemu +# +# https://gitlab.com/libvirt/libvirt-ci + +FROM docker.io/library/debian:11-slim + +RUN export DEBIAN_FRONTEND=noninteractive && \ + apt-get update && \ + apt-get install -y eatmydata && \ + eatmydata apt-get dist-upgrade -y && \ + eatmydata apt-get install --no-install-recommends -y \ + bash \ + bc \ + bison \ + bsdextrautils \ + bzip2 \ + ca-certificates \ + ccache \ + dbus \ + debianutils \ + diffutils \ + exuberant-ctags \ + findutils \ + flex \ + gcc \ + gcovr \ + gettext \ + git \ + hostname \ + libglib2.0-dev \ + libpcre2-dev \ + libsndio-dev \ + libspice-protocol-dev \ + llvm \ + locales \ + make \ + meson \ + mtools \ + ncat \ + ninja-build \ + openssh-client \ + pkgconf \ + python3 \ + python3-numpy \ + python3-opencv \ + python3-pillow \ + python3-pip \ + python3-setuptools \ + python3-sphinx \ + python3-sphinx-rtd-theme \ + python3-venv \ + python3-wheel \ + python3-yaml \ + rpm2cpio \ + sed \ + socat \ + sparse \ + tar \ + tesseract-ocr \ + tesseract-ocr-eng \ + xorriso \ + zstd && \ + eatmydata apt-get autoremove -y && \ + eatmydata apt-get autoclean -y && \ + sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ + dpkg-reconfigure locales + +RUN /usr/bin/pip3 install tomli + +ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" +ENV LANG "en_US.UTF-8" +ENV MAKE "/usr/bin/make" +ENV NINJA "/usr/bin/ninja" +ENV PYTHON "/usr/bin/python3" + +RUN export DEBIAN_FRONTEND=noninteractive && \ + dpkg --add-architecture i386 && \ + eatmydata apt-get update && \ + eatmydata apt-get dist-upgrade -y && \ + eatmydata apt-get install --no-install-recommends -y dpkg-dev && \ + eatmydata apt-get install --no-install-recommends -y \ + g++-i686-linux-gnu \ + gcc-i686-linux-gnu \ + libaio-dev:i386 \ + libasan6:i386 \ + libasound2-dev:i386 \ + libattr1-dev:i386 \ + libbpf-dev:i386 \ + libbrlapi-dev:i386 \ + libbz2-dev:i386 \ + libc6-dev:i386 \ + libcacard-dev:i386 \ + libcap-ng-dev:i386 \ + libcapstone-dev:i386 \ + libcmocka-dev:i386 \ + libcurl4-gnutls-dev:i386 \ + libdaxctl-dev:i386 \ + libdrm-dev:i386 \ + libepoxy-dev:i386 \ + libfdt-dev:i386 \ + libffi-dev:i386 \ + libfuse3-dev:i386 \ + libgbm-dev:i386 \ + libgcrypt20-dev:i386 \ + libglib2.0-dev:i386 \ + libglusterfs-dev:i386 \ + libgnutls28-dev:i386 \ + libgtk-3-dev:i386 \ + libibumad-dev:i386 \ + libibverbs-dev:i386 \ + libiscsi-dev:i386 \ + libjemalloc-dev:i386 \ + libjpeg62-turbo-dev:i386 \ + libjson-c-dev:i386 \ + liblttng-ust-dev:i386 \ + liblzo2-dev:i386 \ + libncursesw5-dev:i386 \ + libnfs-dev:i386 \ + libnuma-dev:i386 \ + libpam0g-dev:i386 \ + libpipewire-0.3-dev:i386 \ + libpixman-1-dev:i386 \ + libpng-dev:i386 \ + libpulse-dev:i386 \ + librbd-dev:i386 \ + librdmacm-dev:i386 \ + libsasl2-dev:i386 \ + libsdl2-dev:i386 \ + libsdl2-image-dev:i386 \ + libseccomp-dev:i386 \ + libselinux1-dev:i386 \ + libslirp-dev:i386 \ + libsnappy-dev:i386 \ + libspice-server-dev:i386 \ + libssh-gcrypt-dev:i386 \ + libsystemd-dev:i386 \ + libtasn1-6-dev:i386 \ + libubsan1:i386 \ + libudev-dev:i386 \ + liburing-dev:i386 \ + libusb-1.0-0-dev:i386 \ + libusbredirhost-dev:i386 \ + libvdeplug-dev:i386 \ + libvirglrenderer-dev:i386 \ + libvte-2.91-dev:i386 \ + libzstd-dev:i386 \ + nettle-dev:i386 \ + systemtap-sdt-dev:i386 \ + xfslibs-dev:i386 \ + zlib1g-dev:i386 && \ + eatmydata apt-get autoremove -y && \ + eatmydata apt-get autoclean -y && \ + mkdir -p /usr/local/share/meson/cross && \ + printf "[binaries]\n\ +c = '/usr/bin/i686-linux-gnu-gcc'\n\ +ar = '/usr/bin/i686-linux-gnu-gcc-ar'\n\ +strip = '/usr/bin/i686-linux-gnu-strip'\n\ +pkgconfig = '/usr/bin/i686-linux-gnu-pkg-config'\n\ +\n\ +[host_machine]\n\ +system = 'linux'\n\ +cpu_family = 'x86'\n\ +cpu = 'i686'\n\ +endian = 'little'\n" > /usr/local/share/meson/cross/i686-linux-gnu && \ + dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \ + mkdir -p /usr/libexec/ccache-wrappers && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-c++ && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-cc && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-g++ && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-gcc + +ENV ABI "i686-linux-gnu" +ENV MESON_OPTS "--cross-file=i686-linux-gnu" +ENV QEMU_CONFIGURE_OPTS --cross-prefix=x86_64-linux-gnu- +ENV DEF_TARGET_LIST x86_64-softmmu,x86_64-linux-user,i386-softmmu,i386-linux-user +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/fedora-i386-cross.docker b/tests/docker/dockerfiles/fedora-i386-cross.docker deleted file mode 100644 index b59a9115c4..0000000000 --- a/tests/docker/dockerfiles/fedora-i386-cross.docker +++ /dev/null @@ -1,40 +0,0 @@ -FROM registry.fedoraproject.org/fedora:34 - -ENV PACKAGES \ - bison \ - bzip2 \ - ccache \ - diffutils \ - flex \ - findutils \ - gcc \ - git \ - libfdt-devel.i686 \ - libffi-devel.i686 \ - libselinux-devel.i686 \ - libtasn1-devel.i686 \ - libzstd-devel.i686 \ - make \ - meson \ - ninja-build \ - glib2-devel.i686 \ - glibc-devel.i686 \ - glibc-static.i686 \ - gnutls-devel.i686 \ - nettle-devel.i686 \ - pcre-devel.i686 \ - pixman-devel.i686 \ - python3-tomli \ - sysprof-capture-devel.i686 \ - zlib-devel.i686 - -ENV QEMU_CONFIGURE_OPTS --cpu=i386 --disable-vhost-user -ENV PKG_CONFIG_LIBDIR /usr/lib/pkgconfig - -RUN dnf update -y && dnf install -y $PACKAGES -RUN rpm -q $PACKAGES | sort > /packages.txt -# As a final step configure the user (if env is defined) -ARG USER -ARG UID -RUN if [ "${USER}" ]; then \ - id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh index 92e7d30982..10c54a377c 100755 --- a/tests/lcitool/refresh +++ b/tests/lcitool/refresh @@ -156,6 +156,13 @@ try: trailer=cross_build("arm-linux-gnueabihf-", "arm-softmmu,arm-linux-user")) + generate_dockerfile("debian-i686-cross", "debian-11", + cross="i686", + trailer=cross_build("x86_64-linux-gnu-", + "x86_64-softmmu," + "x86_64-linux-user," + "i386-softmmu,i386-linux-user")) + generate_dockerfile("debian-mips64el-cross", "debian-11", cross="mips64el", trailer=cross_build("mips64el-linux-gnuabi64-", From patchwork Wed Nov 15 20:55:34 2023 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: 743989 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2966514wrw; Wed, 15 Nov 2023 12:57:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+O6T+YN+t7A0J43jcZYi2qRVJtLDvfoksKqAscTiPqEUz3WyhjLt/k1zfIIO+BfumZ++p X-Received: by 2002:ac8:7f50:0:b0:403:a262:7751 with SMTP id g16-20020ac87f50000000b00403a2627751mr9383312qtk.12.1700081839064; Wed, 15 Nov 2023 12:57:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700081839; cv=none; d=google.com; s=arc-20160816; b=zOevhZ0ir2uoVCCuP69jyMdJa/pJuWmzkvllswenQzZFApQ7TNOHMosA01cSVxLPlK 7chXAq31AFExnmaamWqOsJVvQ4+S992Z34n/dd2GVrEAoJhL+weWwJcVHUOgO7IpwbX3 o12//h2iXN9ne7Dutvgzl/VjXdTe9TrzBZ/u4CIduqNfY8XuYAjyt+fXkFbOHm9j/Tih h+ojEfwUM0AXOxaHRsTpnSTSAsana7guCsDQRCYEkoEKNws2REXuf7F4emXIIqPjft68 IyyS9hvvzVWJSylh0vaGurvP2LRNNm7UROcm5cQig/P2H1RAfSdIZTuva759y7WKXOO7 YXSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=YWoiSiUm6iXSwHJIP4SnJtrzbg+5jh5ZVQXK2gBfc2c=; fh=k9NS7Thoe5thZ+1/6QjG/eI4jlBsRRFCoMWZrxJ4Xm8=; b=qD2S9zkLJG1hRwmXdGMJLqWoe/efOHTfMeDgJjPxa+HTpuLnQqeUWhTV0uzKvqDWz1 w14Sd3xM4UGAcwB7GBLMAWL9j4olQFpMCbrnyJRdBWWxaGyat1D0CJFeXqlJofSlurft lb9mSe2uxSECH7sSTGgzd83E2AVSJHlUK0//byEWtO7pVEu2GtDy1pNfqCYPe02yG64V 1nX2RSlTzhjhcmXcr2XvbaBsu/OW5KhER2988e0+JJgijZoQyFK5fV74kgos/sbbTNiy nAFNYqTCKc3U/CQxGzxl1ti0Hl46Lb6BeJXGzsJl0HeqI3kUlhf1gGxT9kYJ53S2EaSn 5sjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E13MFcdd; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r8-20020ac85c88000000b004214ed3cd79si9414161qta.399.2023.11.15.12.57.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2023 12:57:19 -0800 (PST) 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=E13MFcdd; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3MvV-0004mP-Cr; Wed, 15 Nov 2023 15:55:57 -0500 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 1r3MvP-0004lZ-4x for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:51 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3MvK-00088w-QL for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:49 -0500 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4083f61312eso416845e9.3 for ; Wed, 15 Nov 2023 12:55:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700081743; x=1700686543; 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=YWoiSiUm6iXSwHJIP4SnJtrzbg+5jh5ZVQXK2gBfc2c=; b=E13MFcddCMe4zVl37hof2xzTGekFHag1ckcvXLayNm31VRZMtA9Vfl5/Ok4tOH2q4r oenTpd6Lq9yXGiB5KypstawKpbJWL7TAwN5ExoGnLsL/39rgZAI/bxk4XgxzZrKHP9w5 L6cZXbwsDMFuY9hfKWwhnZDuw9eli8+CI6kHsPeB4rBLOHD8B+lt5roq5o5YYV6DyEfN wzYtlV4lbtUdO4CRz85tVuwfpTFEGZT9iez9hkf/OnHGYQqPJaiDat+CvKF8tgM7pyuQ IkU5nCpcOGsR0iYo1uC41f3958+4JveiHw14AKlDrdlx/W7khs3gE8fpRaQi4GSur2GU 2m0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700081743; x=1700686543; 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=YWoiSiUm6iXSwHJIP4SnJtrzbg+5jh5ZVQXK2gBfc2c=; b=ZQPuAFR2wZvZ9HqciWqZBo9Uw86RXJYjPyZ683L7heDXY6t2KV1kGRAmw+AU2PvUKR Olcli6lLzMZ7W3s3+gasqauovdjqq2FVpC2QswNHkx0d9qNLmK/GI0da6G9+3QV67XXz w4gum1JEv4KRPzl23gL29Qttj21VcLTDYTJ08cCDSepfN6uS2dtgqYDAeFBYZfRdJ7gK Rr1PrscmFCTzV1ykfbJKM5nByj1f8Bhg6syPVSp7e1oOHt5WBLSjd2gYVz2rfJvLdK69 hafD8B5YigQMJT/NEk21i7MlFOtjevLixLN/2xB4iY1JfXwe0wJz01b+0IBkmY97tQ/F hMkw== X-Gm-Message-State: AOJu0YwlVN4PeTjommUxjy7oA//SWHDs/tzXNLGM0zYVtxYGAhkRoFAF ogOAz+a0Gjwdnpwk0rgWGj42Ag== X-Received: by 2002:a05:600c:3143:b0:3fb:feb0:6f40 with SMTP id h3-20020a05600c314300b003fbfeb06f40mr11721890wmo.11.1700081743645; Wed, 15 Nov 2023 12:55:43 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id fb11-20020a05600c520b00b004076f522058sm909879wmb.0.2023.11.15.12.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:55:43 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E5A635F7B0; Wed, 15 Nov 2023 20:55:42 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , Peter Maydell , Beraldo Leal , Mahmoud Mandour , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Alexandre Iooss , =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= Subject: [PATCH 02/10] .gitlab-ci.d/cirrus: Upgrade macOS to 13 (Ventura) Date: Wed, 15 Nov 2023 20:55:34 +0000 Message-Id: <20231115205542.3092038-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231115205542.3092038-1-alex.bennee@linaro.org> References: <20231115205542.3092038-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: Philippe Mathieu-Daudé macOS 14 "Sonoma" was released on September 2023 [1]. According to QEMU's support policy, we stop supporting the previous major release two years after the the new major release has been published. Replace the macOS 12 (Monterey) testing by macOS 13 (Ventura, released on October 2022, [2]). Refresh the generated files by running: $ make lcitool-refresh [1] https://www.apple.com/newsroom/2023/09/macos-sonoma-is-available-today/ [2] https://www.apple.com/newsroom/2022/10/macos-ventura-is-now-available/ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé Message-Id: <20231108162022.76189-1-philmd@linaro.org> Signed-off-by: Alex Bennée --- .gitlab-ci.d/cirrus.yml | 6 +++--- .gitlab-ci.d/cirrus/{macos-12.vars => macos-13.vars} | 2 +- tests/lcitool/refresh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename .gitlab-ci.d/cirrus/{macos-12.vars => macos-13.vars} (95%) diff --git a/.gitlab-ci.d/cirrus.yml b/.gitlab-ci.d/cirrus.yml index e7f1f83c2c..07dc6edae1 100644 --- a/.gitlab-ci.d/cirrus.yml +++ b/.gitlab-ci.d/cirrus.yml @@ -59,13 +59,13 @@ x64-freebsd-13-build: INSTALL_COMMAND: pkg install -y TEST_TARGETS: check -aarch64-macos-12-base-build: +aarch64-macos-13-base-build: extends: .cirrus_build_job variables: - NAME: macos-12 + NAME: macos-13 CIRRUS_VM_INSTANCE_TYPE: macos_instance CIRRUS_VM_IMAGE_SELECTOR: image - CIRRUS_VM_IMAGE_NAME: ghcr.io/cirruslabs/macos-monterey-base:latest + CIRRUS_VM_IMAGE_NAME: ghcr.io/cirruslabs/macos-ventura-base:latest CIRRUS_VM_CPUS: 12 CIRRUS_VM_RAM: 24G UPDATE_COMMAND: brew update diff --git a/.gitlab-ci.d/cirrus/macos-12.vars b/.gitlab-ci.d/cirrus/macos-13.vars similarity index 95% rename from .gitlab-ci.d/cirrus/macos-12.vars rename to .gitlab-ci.d/cirrus/macos-13.vars index 5f3fb346d1..534f029956 100644 --- a/.gitlab-ci.d/cirrus/macos-12.vars +++ b/.gitlab-ci.d/cirrus/macos-13.vars @@ -1,6 +1,6 @@ # THIS FILE WAS AUTO-GENERATED # -# $ lcitool variables macos-12 qemu +# $ lcitool variables macos-13 qemu # # https://gitlab.com/libvirt/libvirt-ci diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh index 10c54a377c..7c211eba2e 100755 --- a/tests/lcitool/refresh +++ b/tests/lcitool/refresh @@ -203,7 +203,7 @@ try: # Cirrus packages lists for GitLab # generate_cirrus("freebsd-13") - generate_cirrus("macos-12") + generate_cirrus("macos-13") # # VM packages lists From patchwork Wed Nov 15 20:55:35 2023 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: 743998 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2967011wrw; Wed, 15 Nov 2023 12:59:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBLqVtTlZOdCe11GGmEAK5HLwDGquFUFrFUNVggWwvdazvuXrZMkAFAb6xtnyTzelSXh0n X-Received: by 2002:a81:48cc:0:b0:5a8:2744:1565 with SMTP id v195-20020a8148cc000000b005a827441565mr12469405ywa.4.1700081945089; Wed, 15 Nov 2023 12:59:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700081945; cv=none; d=google.com; s=arc-20160816; b=BCrYqB2khQHiPyB0q3JsAWiplJKI5pTVCf3+QXR/pWaFx0dUxmSUgSbL+w73SRHXM6 OWHxLsOmaNFcDTRQmOM9fZtPjpcioospDiQogi7hIh+PnQtLhf64X9tX7gRbL2SAZvU+ tvoLaAOa0pR+M4P81R4KBmIAWJWVGi5CknSe67wlmQG2BmL5QgedxkZZE52/NjWVtLl/ MdNYNusbqyW6Vn9T5mS7kCG4ydWoERoTMk4V2MGgC7bhrjDS4b0hvQYwgYqMdG2r5yCM sj4Dujbf7wJDC1sZ+rxOhJvQ5dz4O1o1XHN0M+/1c17ctCdIyG6AgYRra/baWsXnZrpa Sxnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=NCRqk6YT3bsj71ZXwzX8pG0SOXxV0ZtG0Z5l0HsDHlo=; fh=8ZykQ6qNOlgnWCg8MYwNYGWNgs5e99RnDs+2Q8PPEWM=; b=aKXNNwtgmm9QD25LJtJgQdHJpsx8naRFtnYlxMgSX50R8JQz4MCWxFF4OfuwcILIjq g/vQVhibZBTmkydbKGmP5ChimK5iG9bPEzSm6sXvOhdvTHRj7kSp77P2PBtxBsnoJqVz P6uSz0591OAtH82R2Ntb7G1NQG1Tl0XItmJRShHQH8dw4IEybQFKWqok2unKx1ONHhJo /6JSxBGR2cYGDqQvI4ckXl7+WwoI9Ee2fnDo+FII2Iakz5SKpUriXmfNcoREBUEz5Fey HvjWaIwjtR9d+Abooe8Z20J5Wxm23WUum+CFO0gTNejZHF7VU2BpyrvrHvxlqJZqEBBg w4Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cJUSxv36; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m8-20020a05620a24c800b0077074ac99besi10321081qkn.763.2023.11.15.12.59.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2023 12:59:05 -0800 (PST) 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=cJUSxv36; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3MvX-0004qQ-Kr; Wed, 15 Nov 2023 15:55:59 -0500 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 1r3MvV-0004ne-Hl for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:57 -0500 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 1r3MvQ-00089b-Cn for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:57 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40836ea8cbaso511115e9.0 for ; Wed, 15 Nov 2023 12:55:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700081747; x=1700686547; 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=NCRqk6YT3bsj71ZXwzX8pG0SOXxV0ZtG0Z5l0HsDHlo=; b=cJUSxv36xVFCy5pa12IDcOreCEqhzkURC/N2wkaGTpydHvYJ23RxoLjccubMIVjVAm hdfYN6Q36thlq/RE0efKz46k2xQfjnATzUhH4+Vn6NpAH/IjKbwsqoILrmWXQbG9H69g MTPXeI9lSJk3XcS9l158lCkWZ0bKJ0QWtj6U6OGL/E6LfclIniY238UyNFB7pFU51jRb rgPWjR8+X0KJvcQNMhholiMYgt8yrCEAiZcUtu57AWW8TEPrPtYzM0u9pfKh03hVsSCz lD8cquaP3IvR0QKw59+3LHvigU6oBru8Q1IuP7DruC0ZkzVRYUi61V3K7eZRuECN3hJM qpcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700081747; x=1700686547; 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=NCRqk6YT3bsj71ZXwzX8pG0SOXxV0ZtG0Z5l0HsDHlo=; b=cSHuiqYjKwygj0OIylQrq9iKCMocMUD2dHVJkGC1VJEP4IWMVC3wNe+W6KOOfRuIrp emKcL5ITk7HEZg95X7b+BdTKd/7aW3GkRneqLqodmxmlykkkG7K2GGc3vM54RyZJW+vF AL8WZsUJQbtc3+CtKY6Sr+qTAc51g53CThYQDemNEEbISW38N9rrshJqtGT16xljltge gwIemh6owd10oLWhCIUYOFhE+XGMnfQLfpcFugASRLx/I53YmTlKZnnh8z3TnJVmf+Lq WaceF2tKApv6ru62rYcrDZDBvDf2XCLDdj1Lh6xoixNkJgXL8UDR67T7FHmntJC9EJvS FRJw== X-Gm-Message-State: AOJu0Yw8jHsnozF18qj0jQetcmPeRlGpNHchlmfao45MGsz7MNbUvb7c E5Xq+eB8H7pilOzI8D8zFzktPw== X-Received: by 2002:a05:600c:4d01:b0:406:8c7a:9520 with SMTP id u1-20020a05600c4d0100b004068c7a9520mr10301980wmp.36.1700081746521; Wed, 15 Nov 2023 12:55:46 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id x15-20020adfffcf000000b0031984b370f2sm11513405wrs.47.2023.11.15.12.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:55:43 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 0B7845F7B1; Wed, 15 Nov 2023 20:55:43 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , Peter Maydell , Beraldo Leal , Mahmoud Mandour , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Alexandre Iooss , Anders Roxell Subject: [PATCH 03/10] tests/docker: merge debian-native with debian-amd64 Date: Wed, 15 Nov 2023 20:55:35 +0000 Message-Id: <20231115205542.3092038-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231115205542.3092038-1-alex.bennee@linaro.org> References: <20231115205542.3092038-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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 debian-native isn't really needed and suffers from the problem of tracking a distros dependencies rather than the projects. With a little surgery we can make the debian-amd64 container architecture neutral and allow people to use it to build a native QEMU. Rename it so it follows the same non-arch pattern of the other distro containers. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Anders Roxell --- .gitlab-ci.d/buildtest.yml | 12 ++--- .gitlab-ci.d/containers.yml | 2 +- tests/docker/Makefile.include | 3 -- tests/docker/dockerfiles/debian-native.docker | 54 ------------------- .../{debian-amd64.docker => debian.docker} | 7 ++- tests/lcitool/refresh | 9 ++-- 6 files changed, 18 insertions(+), 69 deletions(-) delete mode 100644 tests/docker/dockerfiles/debian-native.docker rename tests/docker/dockerfiles/{debian-amd64.docker => debian.docker} (96%) diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index da72f7c690..7f9af83b10 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -70,7 +70,7 @@ build-system-debian: needs: job: amd64-debian-container variables: - IMAGE: debian-amd64 + IMAGE: debian CONFIGURE_ARGS: --with-coroutine=sigaltstack TARGETS: arm-softmmu i386-softmmu riscv64-softmmu sh4eb-softmmu sparc-softmmu xtensa-softmmu @@ -82,7 +82,7 @@ check-system-debian: - job: build-system-debian artifacts: true variables: - IMAGE: debian-amd64 + IMAGE: debian MAKE_CHECK_ARGS: check avocado-system-debian: @@ -91,7 +91,7 @@ avocado-system-debian: - job: build-system-debian artifacts: true variables: - IMAGE: debian-amd64 + IMAGE: debian MAKE_CHECK_ARGS: check-avocado AVOCADO_TAGS: arch:arm arch:i386 arch:riscv64 arch:sh4 arch:sparc arch:xtensa @@ -101,7 +101,7 @@ crash-test-debian: - job: build-system-debian artifacts: true variables: - IMAGE: debian-amd64 + IMAGE: debian script: - cd build - make NINJA=":" check-venv @@ -589,7 +589,7 @@ build-tools-and-docs-debian: # when running on 'master' we use pre-existing container optional: true variables: - IMAGE: debian-amd64 + IMAGE: debian MAKE_CHECK_ARGS: check-unit ctags TAGS cscope CONFIGURE_ARGS: --disable-system --disable-user --enable-docs --enable-tools QEMU_JOB_PUBLISH: 1 @@ -609,7 +609,7 @@ build-tools-and-docs-debian: # of what topic branch they're currently using pages: extends: .base_job_template - image: $CI_REGISTRY_IMAGE/qemu/debian-amd64:$QEMU_CI_CONTAINER_TAG + image: $CI_REGISTRY_IMAGE/qemu/debian:$QEMU_CI_CONTAINER_TAG stage: test needs: - job: build-tools-and-docs-debian diff --git a/.gitlab-ci.d/containers.yml b/.gitlab-ci.d/containers.yml index 8637a13d86..ae79d4c58b 100644 --- a/.gitlab-ci.d/containers.yml +++ b/.gitlab-ci.d/containers.yml @@ -11,7 +11,7 @@ amd64-debian-container: extends: .container_job_template stage: containers variables: - NAME: debian-amd64 + NAME: debian amd64-ubuntu2204-container: extends: .container_job_template diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index cd4688bf07..5ba5b50ab9 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -88,9 +88,6 @@ DOCKER_PARTIAL_IMAGES += debian-s390x-cross DOCKER_PARTIAL_IMAGES += fedora endif -# The native build should never use the registry -docker-image-debian-native: DOCKER_REGISTRY= - # alpine has no adduser docker-image-alpine: NOUSER=1 diff --git a/tests/docker/dockerfiles/debian-native.docker b/tests/docker/dockerfiles/debian-native.docker deleted file mode 100644 index abac7d7cd7..0000000000 --- a/tests/docker/dockerfiles/debian-native.docker +++ /dev/null @@ -1,54 +0,0 @@ -# -# Docker Debian Native -# -# This is intended to build QEMU on native host systems. Debian is -# chosen due to the broadest range on supported host systems for QEMU. -# -# This docker target is based on the docker.io Debian Bullseye base -# image rather than QEMU's base because we would otherwise confuse the -# build grabbing stuff from the registry built for other -# architectures. -# -FROM docker.io/library/debian:bullseye-slim -MAINTAINER Alex Bennée - -# Duplicate deb line as deb-src -RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list - -# Install common build utilities -RUN apt update && \ - DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata - -RUN apt update && \ - DEBIAN_FRONTEND=noninteractive eatmydata \ - apt build-dep -yy --arch-only qemu - -RUN apt update && \ - DEBIAN_FRONTEND=noninteractive eatmydata \ - apt install -y --no-install-recommends \ - cscope \ - genisoimage \ - exuberant-ctags \ - global \ - libbz2-dev \ - liblzo2-dev \ - libgcrypt20-dev \ - libfdt-dev \ - librdmacm-dev \ - libsasl2-dev \ - libsnappy-dev \ - libvte-dev \ - netcat-openbsd \ - ninja-build \ - openssh-client \ - python3-numpy \ - python3-opencv \ - python3-venv - -ENV QEMU_CONFIGURE_OPTS $QEMU_CONFIGURE_OPTS -ENV DEF_TARGET_LIST "none" -# As a final step configure the user (if env is defined) -ARG USER -ARG UID -RUN if [ "${USER}" ]; then \ - id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-amd64.docker b/tests/docker/dockerfiles/debian.docker similarity index 96% rename from tests/docker/dockerfiles/debian-amd64.docker rename to tests/docker/dockerfiles/debian.docker index 9b50fb2f63..b5e642d5b6 100644 --- a/tests/docker/dockerfiles/debian-amd64.docker +++ b/tests/docker/dockerfiles/debian.docker @@ -155,10 +155,13 @@ RUN DEBIAN_FRONTEND=noninteractive eatmydata \ apt install -y --no-install-recommends \ cscope\ global\ - linux-headers-amd64 + linux-headers-generic RUN git clone https://github.com/luigirizzo/netmap.git /usr/src/netmap RUN cd /usr/src/netmap && git checkout v11.3 -RUN cd /usr/src/netmap/LINUX && ./configure --no-drivers --no-apps --kernel-dir=$(ls -d /usr/src/linux-headers-*-amd64) && make install +RUN cd /usr/src/netmap/LINUX && \ + ./configure --no-drivers --no-apps \ + --kernel-dir=$(ls -d /usr/src/linux-headers-*-$(dpkg --print-architecture)) \ + && make install ENV QEMU_CONFIGURE_OPTS --enable-netmap # As a final step configure the user (if env is defined) ARG USER diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh index 7c211eba2e..993683cf48 100755 --- a/tests/lcitool/refresh +++ b/tests/lcitool/refresh @@ -99,10 +99,13 @@ debian12_extras = [ " apt install -y --no-install-recommends \\\n", " cscope\\\n", " global\\\n", - " linux-headers-amd64\n", + " linux-headers-generic\n", "RUN git clone https://github.com/luigirizzo/netmap.git /usr/src/netmap\n", "RUN cd /usr/src/netmap && git checkout v11.3\n", - "RUN cd /usr/src/netmap/LINUX && ./configure --no-drivers --no-apps --kernel-dir=$(ls -d /usr/src/linux-headers-*-amd64) && make install\n", + "RUN cd /usr/src/netmap/LINUX && \\\n", + " ./configure --no-drivers --no-apps \\\n", + " --kernel-dir=$(ls -d /usr/src/linux-headers-*-$(dpkg --print-architecture)) \\\n", + " && make install\n", "ENV QEMU_CONFIGURE_OPTS --enable-netmap\n" ] @@ -123,7 +126,7 @@ try: # generate_dockerfile("alpine", "alpine-318") generate_dockerfile("centos8", "centos-stream-8") - generate_dockerfile("debian-amd64", "debian-12", + generate_dockerfile("debian", "debian-12", trailer="".join(debian12_extras)) generate_dockerfile("fedora", "fedora-38") generate_dockerfile("opensuse-leap", "opensuse-leap-15") From patchwork Wed Nov 15 20:55:36 2023 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: 743997 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2966897wrw; Wed, 15 Nov 2023 12:58:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4yN7xGBl1mZGP+xLHowcAcJoW56BTXgjU6a8UnnzVtern/TGbwwcB7GuIluQfUaYyy4DK X-Received: by 2002:a05:622a:178a:b0:40f:dfbc:2405 with SMTP id s10-20020a05622a178a00b0040fdfbc2405mr10753422qtk.27.1700081920287; Wed, 15 Nov 2023 12:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700081920; cv=none; d=google.com; s=arc-20160816; b=Xp4cirIl6sT15lM5ZElyWTKa45+73eAjFKDBn301BCWmGIOB1FlQz0ajDAwnNBtOIe YJTYDVKh1EUHZSQz2tOMi92E9Ji24L47R96VYomPy88mkv7J9TwTLkZu7v1Vl3aV27ee 9w9mZZ7OtB0COTLMjydKyMEbcmXibrAjvu2NciuHl/qkpR0E6DsluXZpA8BoHscZK6Ej v1l1JRdOaAZoLEysy3GWzzqCKvmO53Hoa3FQk12pm3RbOJAsFqNFI6YEEAp1d5WOzP3K TUo2sIZMfDZKTyrc0sPh3VJ20XVwXCLmp+J9DTckIPq6EGPGvij71kAjQQzzmo59GmXm DFvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=r13y4mFZjL5YxuFf8Jb2e5kHdn8MHdL63WduZWtvH6Q=; fh=dzVXx5hD9uLMfMYZqpYCvOR8Fr2s+NIZUtUMYSG7Avk=; b=leCSEHwhBKtlXNQL8PUXPyIBVo6mKm9PlDXt9aNr3I1aYGsX9w0moQ2H707ErrWVO9 /w1U9QXGYayalcP/N5SQqi8Dfl9eCdC9Uhs4pAyNqYO8eCx3kEKWBHr9ODdUcuUF4/0P wY1uNsTn7YFwPDzDIGKoPBmbzVIDgcRWihz7gtSrYmcdaOfTQs/ngFx0hzDmSIligV+G l8Dbu3NOE0BXGn8hFSMj9dBE5kxs563kpKRcOUSZZRcWOX7ht8lrtRP8qcsfZGowAmiA 1Huz8mSg7Tn0vZwf2d04oMtd6/Nm/Pkz40Inenkdp67NsEXvdKqb3ZnodvjAfxK0Mj4E NZ+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IUFTguL+; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m15-20020a05622a054f00b0041cb66ed83bsi9660446qtx.238.2023.11.15.12.58.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2023 12:58:40 -0800 (PST) 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=IUFTguL+; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3MvW-0004p0-RV; Wed, 15 Nov 2023 15:55:58 -0500 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 1r3MvT-0004mL-MW for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:57 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3MvQ-00089d-CD for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:55 -0500 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-33139ecdca7so73634f8f.0 for ; Wed, 15 Nov 2023 12:55:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700081747; x=1700686547; 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=r13y4mFZjL5YxuFf8Jb2e5kHdn8MHdL63WduZWtvH6Q=; b=IUFTguL+nP2xdPRP2OflRt+iPwAZwjvW/txpYCGKUsKoGakgAYV7DfyyiCR+zjSfDI k0LwdYzJM8Lq+W7ZnWk8YuKBhmRNOlJngmhxf0pYr7RWy+caoFPMmiOgYFe8DCFvyCIO LpySKtBR8VVnau+Fu8Tijp1ku31xW6faBjrDK1p17qGi5ujQipfGOaXLP7L3edKBK04C Pmao0qsVg7UA6gq27sNceQJuGOGlRO1ev8G4LgBOjCusOraHNk90O/GQMArBNS0SKS2g IuZ97JeuhPIBMDWVVqZoz6Kvut7Xs5EVJ1lJOI7CaRIH1FIBW6SetKoXuxUcAiTXMoJA AjhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700081747; x=1700686547; 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=r13y4mFZjL5YxuFf8Jb2e5kHdn8MHdL63WduZWtvH6Q=; b=jGr0YZ4aGuczHwFA59ZLzHPfbBYtB6k4QnJiEdaLdRzu4RFgT93r9/nRLFndvt47wO aK2LwLHSukG0uSQU6IQF8UmpQPbEDpqg0tWfVb2yio/wJ5yR9dNtNqmH16QXWFjplgHa PR4QM+6FwqgyevySl49bL1iIM44KTCxB7XZ/5HyCffEfQtbDtmF1gvJOvsNZDyt3E1vq xFAgeEurJurMUaG7xi9l+G11ZBtbl8TDUnT91NPjJvbLu8gNwTtF1tU/eHH8Ta7G4nKH 1u0CW0qwE0eiIz3q5SFnSLXkC/Kvlx9CZ+4M0h6bwcHPVPyz9bUT++qchPlZH7REYHsB 0t4w== X-Gm-Message-State: AOJu0Yy4Zf9DX8DkTPyYyMJ9EvrFWAV5or58FcQy+C+kTzydU+Flw1BW GpRi04hh6Pt26sT2VXTDw41/pQ== X-Received: by 2002:adf:e6d1:0:b0:32d:8cfd:5780 with SMTP id y17-20020adfe6d1000000b0032d8cfd5780mr8055379wrm.27.1700081746832; Wed, 15 Nov 2023 12:55:46 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id n16-20020a5d67d0000000b0032da49e18fasm11432278wrw.23.2023.11.15.12.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:55:46 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 23FB05F7B4; Wed, 15 Nov 2023 20:55:43 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , Peter Maydell , Beraldo Leal , Mahmoud Mandour , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Alexandre Iooss , Greg Manning Subject: [PATCH 04/10] plugins: fix win plugin tests on cross compile Date: Wed, 15 Nov 2023 20:55:36 +0000 Message-Id: <20231115205542.3092038-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231115205542.3092038-1-alex.bennee@linaro.org> References: <20231115205542.3092038-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: Greg Manning Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1972 Cross compile gcc is more picky about argument order than msys. Changed the meson command to take the (now renamed) libqemu_plugin_api.a as a lib, rather than an object. This puts it in the right place on both native and cross compile gcc commands Reenable plugins on crossbuilds Signed-off-by: Greg Manning Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20231109124326.21106-2-gmanning@rapitasystems.com> Signed-off-by: Alex Bennée --- .gitlab-ci.d/crossbuilds.yml | 2 +- contrib/plugins/Makefile | 2 +- plugins/meson.build | 2 +- tests/plugin/meson.build | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml index c2af6c7f44..d19d98cde0 100644 --- a/.gitlab-ci.d/crossbuilds.yml +++ b/.gitlab-ci.d/crossbuilds.yml @@ -165,7 +165,7 @@ cross-win32-system: job: win32-fedora-cross-container variables: IMAGE: fedora-win32-cross - EXTRA_CONFIGURE_OPTS: --enable-fdt=internal --disable-plugins + EXTRA_CONFIGURE_OPTS: --enable-fdt=internal CROSS_SKIP_TARGETS: alpha-softmmu avr-softmmu hppa-softmmu m68k-softmmu microblazeel-softmmu mips64el-softmmu nios2-softmmu artifacts: diff --git a/contrib/plugins/Makefile b/contrib/plugins/Makefile index 1783750cf6..0b64d2c1e3 100644 --- a/contrib/plugins/Makefile +++ b/contrib/plugins/Makefile @@ -49,7 +49,7 @@ all: $(SONAMES) $(CC) $(CFLAGS) $(PLUGIN_CFLAGS) -c -o $@ $< ifeq ($(CONFIG_WIN32),y) -lib%$(SO_SUFFIX): %.o win32_linker.o ../../plugins/qemu_plugin_api.lib +lib%$(SO_SUFFIX): %.o win32_linker.o ../../plugins/libqemu_plugin_api.a $(CC) -shared -o $@ $^ $(LDLIBS) else ifeq ($(CONFIG_DARWIN),y) lib%$(SO_SUFFIX): %.o diff --git a/plugins/meson.build b/plugins/meson.build index 40d24529c0..6b2d7a9292 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -28,7 +28,7 @@ if get_option('plugins') # then use dlltool to assemble a delaylib. win32_qemu_plugin_api_lib = configure_file( input: win32_plugin_def, - output: 'qemu_plugin_api.lib', + output: 'libqemu_plugin_api.a', command: [dlltool, '--input-def', '@INPUT@', '--output-delaylib', '@OUTPUT@', '--dllname', 'qemu.exe'] ) diff --git a/tests/plugin/meson.build b/tests/plugin/meson.build index 528bb9d86c..28a929dbcc 100644 --- a/tests/plugin/meson.build +++ b/tests/plugin/meson.build @@ -4,7 +4,8 @@ if get_option('plugins') if targetos == 'windows' t += shared_module(i, files(i + '.c') + '../../contrib/plugins/win32_linker.c', include_directories: '../../include/qemu', - objects: [win32_qemu_plugin_api_lib], + link_depends: [win32_qemu_plugin_api_lib], + link_args: ['-Lplugins', '-lqemu_plugin_api'], dependencies: glib) else From patchwork Wed Nov 15 20:55:37 2023 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: 743993 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2966687wrw; Wed, 15 Nov 2023 12:57:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGr6Ya/KTxqhTVKrq1yhmlziNyAI3J1PprxYBfUVaGzXh6FTsrsv1SRTA5T2ZxUf53jZhrx X-Received: by 2002:a05:620a:688d:b0:77a:5249:935d with SMTP id rv13-20020a05620a688d00b0077a5249935dmr7462663qkn.62.1700081869751; Wed, 15 Nov 2023 12:57:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700081869; cv=none; d=google.com; s=arc-20160816; b=t3z6u5vebmEivc6T/A0d+5ndT6HK3cs+EJ+8IlmZVGl4Qeuy0yz5a86HwVLKmc9RqX 8zM4AvJ7fyaNJpFzIa711u7cNC2Ck4Y/IgIvvq4Onl8/9rzB/FIwZHhYxfkdv2rzKCWb 0/Mnt+6K+qCNzdvr4s19GBAqe1YYv2BilQu+WrK6AlfdYqkWy5bJ4CrdRhWRhrcK+LF2 NDM2wTtIZWoD9IlCEXxjWI6PlBJpYLkvU0/RUCHnDj6uhH//XA1u990kmLXDveDuePGj AsPI8pYMkwmzHOoz23WlEXwTb8yoPgW8fF5NtEZa2qByWXWAK3r0dCig9SMFcb2Ray15 Dmbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=IjAJqKCk3iUb0SkYI6f8P9mLxZWi+VPPBoOgrXC8tUg=; fh=VX240Z2IZJQtf5WSWx5doHfPl1phoYGIiN62laV0qLc=; b=pvP+BmsgDN2WrRb1dWAOhwv87vgToHqnCl+LocOyJh1MkortaQ908Sdlnt9ER/uO4S zXG2DN92upWHc8zTekJI+967wjlHyYeyP67CANNuFEatcNiAyHcHoSFwhr6Vnrpg9K3W i2BDB2iCtGF0KApHbJwDudNoiVMsglPMWmajmlqojcFbqOFcPHw/7jDLjeP4QXzAsRZM LMid8cyQBhxsmEtkMvocCTZw7QV1PsRcmYP5YQAhKvgBmmhC50QvKq+0c4cjxTjZLflL Cj/sNjIzTDFdPbzvgrmchztjr2xcqb0AzVTv4fQENwTiLI7YkBI8ldei4QUylR8AD65r 6LPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AhXAmK4I; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o4-20020a05620a228400b00779da0028d3si9222080qkh.654.2023.11.15.12.57.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2023 12:57:49 -0800 (PST) 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=AhXAmK4I; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3MvZ-0004re-1j; Wed, 15 Nov 2023 15:56:01 -0500 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 1r3MvT-0004mG-Km for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:57 -0500 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 1r3MvQ-00089f-C5 for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:55 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40839807e82so576635e9.0 for ; Wed, 15 Nov 2023 12:55:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700081747; x=1700686547; 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=IjAJqKCk3iUb0SkYI6f8P9mLxZWi+VPPBoOgrXC8tUg=; b=AhXAmK4IhbMyZxxcNNS7BBpxE6enb/4MxsmhWjsJ1Ihg3CfOc3EpQ4YI8GXzLO4JjY awHXvjDmOK/6emtLtmMcBAs1C3wQs6hkrBElCKdWSu4sspwrt+2U/+ZikkL4Q66cgec9 FmvK7Xpatxr02lo2yVVV16hdo3+0miJXwMsIXDgqm51eNAi9QYHmLqhxnd1ukXSbt8KG +rCoYXJ9dDTc0nqC4KRM30I9Tw+V5xwFVt4Tf45hgUccxL8ALICjV7/417ZwjQEZRa8x PidYbd4GoAjjGpwwO1JdqGrTJ2HXLCHBxJA3mzrRBoz9WeAEGVBqRnEoVszFS+Qr/zLM O/OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700081747; x=1700686547; 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=IjAJqKCk3iUb0SkYI6f8P9mLxZWi+VPPBoOgrXC8tUg=; b=OoluJ8LASh8YwAT1N8wutVvDNtfM1Vt9uMrhsaZJODVTYbYuKD4J/PpSiTZVyx3exz c3v9T38GFyag9uIHRPo9NVkeJEgZWeb7zCBFdVqS2K46IUZesyAhyR3zzFLl4aKBhtqD LMsMhVGouZyp5to6/1NTuL3e73YRQzadZmpjFIua9WdhutN1Oa1+v76X4sqAg7ljSzHa 4A3QGvVhgwe7r0nqoQAZltgvmUQ5RnpV1VZ6wlElFrjqjEDaP6qjddPXjPHbbYCihsTO COo7qPN++FMMg+vTlAyyCK37xTH4e7oZXQu+9ddKZYHxhhI2eftUztD95s6jOWAh8X1n RxaQ== X-Gm-Message-State: AOJu0YwSPN4hHcUrbGvuD3FUbO02AoY7skmD7AbzsBOQ5xAv6UJL8KC0 sW37VkBCDjLunQrXA8SD8r35Yw== X-Received: by 2002:a05:600c:1c89:b0:405:358c:ba74 with SMTP id k9-20020a05600c1c8900b00405358cba74mr6784269wms.0.1700081747034; Wed, 15 Nov 2023 12:55:47 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 6-20020a05600c028600b003feea62440bsm826359wmk.43.2023.11.15.12.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:55:46 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 37AE35F7B5; Wed, 15 Nov 2023 20:55:43 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , Peter Maydell , Beraldo Leal , Mahmoud Mandour , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Alexandre Iooss Subject: [PATCH 05/10] tests/tcg: fixup Aarch64 semiconsole test Date: Wed, 15 Nov 2023 20:55:37 +0000 Message-Id: <20231115205542.3092038-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231115205542.3092038-1-alex.bennee@linaro.org> References: <20231115205542.3092038-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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 We need to ensure we squash the serial port if we want to hand craft our muxed input. As a bonus emit the example with a V=1 build to make it easier for people to figure out. Signed-off-by: Alex Bennée --- tests/tcg/aarch64/Makefile.softmmu-target | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/tcg/aarch64/Makefile.softmmu-target b/tests/tcg/aarch64/Makefile.softmmu-target index b74a2534e3..77c5018e02 100644 --- a/tests/tcg/aarch64/Makefile.softmmu-target +++ b/tests/tcg/aarch64/Makefile.softmmu-target @@ -48,10 +48,11 @@ QEMU_BASE_MACHINE=-M virt -cpu max -display none QEMU_OPTS+=$(QEMU_BASE_MACHINE) -semihosting-config enable=on,target=native,chardev=output -kernel # console test is manual only -QEMU_SEMIHOST=-chardev stdio,mux=on,id=stdio0 -semihosting-config enable=on,chardev=stdio0 -mon chardev=stdio0,mode=readline -run-semiconsole: QEMU_OPTS=$(QEMU_BASE_MACHINE) $(QEMU_SEMIHOST) -kernel +QEMU_SEMIHOST=-serial none -chardev stdio,mux=on,id=stdio0 -semihosting-config enable=on,chardev=stdio0 -mon chardev=stdio0,mode=readline +run-semiconsole: QEMU_OPTS=$(QEMU_BASE_MACHINE) $(QEMU_SEMIHOST) -kernel run-semiconsole: semiconsole $(call skip-test, $<, "MANUAL ONLY") + $(if $(V),@printf " %-7s %s %s\n" "TO RUN" $(notdir $(QEMU)) "$(QEMU_OPTS) $<") run-plugin-semiconsole-with-%: semiconsole $(call skip-test, $<, "MANUAL ONLY") From patchwork Wed Nov 15 20:55:38 2023 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: 743990 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2966610wrw; Wed, 15 Nov 2023 12:57:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOM8DITPaps/i5gs/y0t8gQn/XRO+2CTmbvBsaRgF6+7OAskpuXx4um5yZnphIjwQm20nh X-Received: by 2002:a0c:f84a:0:b0:672:2989:589c with SMTP id g10-20020a0cf84a000000b006722989589cmr6038433qvo.27.1700081855123; Wed, 15 Nov 2023 12:57:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700081855; cv=none; d=google.com; s=arc-20160816; b=wtvlJbh28XTlLmhCjnWMokodwgGW9fnFo4ExgA3El/xnGRNWChC2mw8wBQxXbkP55l tuJ9TgYudcq8WNbXpHZUhzjjMdWv4R2uiZ7YMJEkyXqBxKTosxlw8Iqb9gDN5Lhr09Jc uxkRnDoG7Gv9Pb3fW1J1gwam5CHkSLa5bLXoapwF/xA6RA0ycBXaPzc3iBFM563sTEHy awBreqOJrP1DMBFUOP7QB8jebshqewg+ufys441ndxaYt1oxOQfHdUNTmhKKJP1siU8z 7rO5z65BiR86997Bg3J6YXEBoGb7KQYFumJDnTf3gYI5PynJIgyQDWLpmlmH0DJRFMyl vBSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=/Am29rNstmoBjPWHdKzUHbk8KZyMNjdmqHD061pd8s4=; fh=VX240Z2IZJQtf5WSWx5doHfPl1phoYGIiN62laV0qLc=; b=ZbwVvrO9qDeoW9Wc6OU2VNeJKktSyxLnkQ+g0m5jAdjMgHAp8Hv0QTdFtRT2vZ0biO yBL/NtgY3Rjfwk7U1kOYZpDdWvv+BewN064xmm/gZJbGfOu1UsUDBvidRrg0A7fo3yEL xJaOW6l/7Hl4xBF2waOCwyt3ZdRbmLRNLFqUVXiErqO1LUon9WGEAOXb3gqc97SD/aQN PHT7gvxlGFH93EtHbP+fozBwDXVxmzKrmGGHLDlHJN4W+bEoJu74rLNRJ9hce37hLHWI +Cuio9BzIqgTP0RKjvmFah6sPQHtwpdrkYIj/v4ytmxOkRLvoZxz3H1mC0n6vchfj3xr RIJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MNh1Tzrd; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u9-20020a0cc489000000b0066d14432c26si10441021qvi.146.2023.11.15.12.57.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2023 12:57:35 -0800 (PST) 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=MNh1Tzrd; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3MvY-0004qy-1T; Wed, 15 Nov 2023 15:56:00 -0500 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 1r3MvT-0004mH-M7 for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:57 -0500 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 1r3MvO-00089n-FG for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:53 -0500 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-32dc9ff4a8fso71916f8f.1 for ; Wed, 15 Nov 2023 12:55:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700081747; x=1700686547; 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=/Am29rNstmoBjPWHdKzUHbk8KZyMNjdmqHD061pd8s4=; b=MNh1TzrdudRIV24c4MHDEciQmvcGLfxfkDi52eH9a+0dcmNsIXNSYb78ss7Er4owN/ gRlidaANjkH6X4nbGLC7gCJwOD/5HolLMxkA1gVQB6wWwW9o79eB6tfoGGAwtB/xMBk4 al5JMFla/11tbDMfhdTMbW2Io0mO6xlOCQRGEfbd28JBWUpopkOiPYR2REyWMztiQWg/ Yum7PC+ESwkYGB2CC+78fuYd9pyoOf1YLrXtZorNbJOfXS+DmPvjja5KzucOc7Qr+aQZ 4INIaBrZks96i52SdcQHdrBuOE3qqm1Jm++SZvZJkpKAPXV/Rkpwh1AWmpf+kI5BqLi8 wWqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700081747; x=1700686547; 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=/Am29rNstmoBjPWHdKzUHbk8KZyMNjdmqHD061pd8s4=; b=sd2Jp4Svd7sHhOpUP+LBOYnH1bROCOPmQK+HYjoOUVGqPtGX2GB9EJmmjrQMXfJaSX 2hF0+jjoBZUSjgS9wgNLWtWIjkDWPa878gIP+998buRNxxzVv0YeKZ2UqihqlujSC4T0 I16O8TiiAWl5ZlgguusS8qGaJEAPokGSQAEu4NwbJRvNyXxBcVW/3sDXbmnnu1THtYmr noINJOJpOSz8945I77N3xAZNrjVhCtfRYiTJHpomgmjdsLvQRw6w093+CPcLVhn2B1TP AbRSXaLDephXxarZIjw/XUgWUB8+wwjrc/p33ldxDrn543RGKTanphOCdMqOJsdfds/o X0Og== X-Gm-Message-State: AOJu0Yz01rZKN2z3s7/2cewVnKHE0DUXWTpqZBNzSJ+0CaJtQPXjE090 27NCaD5wLeEAj9piKmAK+lNn3g== X-Received: by 2002:a05:6000:188b:b0:32d:701b:a585 with SMTP id a11-20020a056000188b00b0032d701ba585mr12297923wri.69.1700081747300; Wed, 15 Nov 2023 12:55:47 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id j16-20020a056000125000b0032f983f7306sm11470293wrx.78.2023.11.15.12.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:55:46 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 4D8435F7B6; Wed, 15 Nov 2023 20:55:43 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , Peter Maydell , Beraldo Leal , Mahmoud Mandour , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Alexandre Iooss Subject: [PATCH 06/10] docs/emulation: expand warning about semihosting Date: Wed, 15 Nov 2023 20:55:38 +0000 Message-Id: <20231115205542.3092038-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231115205542.3092038-1-alex.bennee@linaro.org> References: <20231115205542.3092038-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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 A surprising feature of calls like SYS_READC is this can cause QEMU to indefinitely block as there is no handling for EOF. Clarifies: https://gitlab.com/qemu-project/qemu/-/issues/1963 Signed-off-by: Alex Bennée --- docs/about/emulation.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/about/emulation.rst b/docs/about/emulation.rst index 0ad0b86f0d..a2eefe3f3f 100644 --- a/docs/about/emulation.rst +++ b/docs/about/emulation.rst @@ -129,8 +129,9 @@ causing most hypervisors to trap and fault on them. .. warning:: Semihosting inherently bypasses any isolation there may be between the guest and the host. As a result a program using semihosting can - happily trash your host system. You should only ever run trusted - code with semihosting enabled. + happily trash your host system. Some semihosting calls (e.g. + ``SYS_READC``) can block execution indefinitely. You should only + ever run trusted code with semihosting enabled. Redirection ~~~~~~~~~~~ From patchwork Wed Nov 15 20:55:39 2023 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: 743991 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2966640wrw; Wed, 15 Nov 2023 12:57:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGyk1ZV2d7OtF8TQDPDPzRrpgHA1dcSO/fPoJjyb5HGCzXEOpuHxvM5Y4mgGorGgzYxmscm X-Received: by 2002:a05:6870:288a:b0:1f0:3fdc:5995 with SMTP id gy10-20020a056870288a00b001f03fdc5995mr18313670oab.50.1700081861320; Wed, 15 Nov 2023 12:57:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700081861; cv=none; d=google.com; s=arc-20160816; b=HQDp1hA+rFVikbaj5jxwLufrIR8T6UhDAG+0+NCCjjE3mO7ipnCTfDLXIO8MPSAWVU pgLDY+RnpX2LRgSuIzHhpb+9iz2WDkMwWvVb9WRL6/IQr5JjSsVfYSzGPQUkicXHVZZV vY6C6bJ0zfor1sHoy4zWGWXtTbkyDMEuqIXhY1a6DXStuKXaQf6LS/j53zFRT+/1ePYD fh89YY46P71niohkexeWD2vGYlPTGmTYX6X57l461+xcId8mEI5Llf0Ed0ZaKlR3IaVM VWBjbhRQnuhf41NQboJvKa5/wWQh727nprrHnyDg4aY8H2nUYnMATx0GLhm7cw0RViXz mtHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=J7aCt684M/Mo4aPxjDOnz7JyGbXhEmNf+Qyqgmy0nPo=; fh=VX240Z2IZJQtf5WSWx5doHfPl1phoYGIiN62laV0qLc=; b=clUhCIiocQ1bEU5alikt3fjLb6v1PQJ4+uBC4gG+XM3tGjqor6Ya0mbvImlTP9esvV iZvu8GloXmkhRcsiAzL12e8ttmb8Yh+5ci6hrexgyObkdaBAh/EPInsX9hejntXiZpG9 yQswOhMP0GvSdPdprBGK0pvfGeh91nI5D6/7spo5jYxoR312TI8u3kSNLbOP/1ckt/F3 yht23oe/XG2PIGOXC31J8mI2AWuKyyzv6H9dYWdYmZlUYxCS/LuwUG3qEtwpUvZCrf6U N2oHMBV8ieyCxr2VukgMaV3vE8p/xo/DEKhZBlRPbuxqZ/RlEPRYucgdl19bjUmvmbof Kd6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C52Y7YO0; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c20-20020a05620a0cf400b00779d17610absi9242979qkj.608.2023.11.15.12.57.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2023 12:57:41 -0800 (PST) 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=C52Y7YO0; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3MvX-0004pL-2L; Wed, 15 Nov 2023 15:55:59 -0500 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 1r3MvU-0004mT-7Q for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:57 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3MvQ-0008Bx-Cq for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:55 -0500 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-32f70391608so62582f8f.2 for ; Wed, 15 Nov 2023 12:55:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700081750; x=1700686550; 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=J7aCt684M/Mo4aPxjDOnz7JyGbXhEmNf+Qyqgmy0nPo=; b=C52Y7YO0MFzNY+yqvKHlzRt6hBCLcdSBhgZ7iRyqpGxj03Q03xleco5olf1rLD4pKE +ts4qw+mI6Vg5aZd24RBFMYazt6jHlkgqfKZ6cgFy6uGa/1i3qB6qPuLg/WCx2fAF73N KGqG8boz2y5t75Izs/UczIOFc/l3myk6ag5rHs28Kb6gWuogWRrwC0wkhipTI/AHdHE9 c1wtsMWvQQWSAeuFmL2ayS35JWNWoUvr7xo4xpHaa6Y5wrcMpnMCfnCVH19ONxkWn8aa 09P+IcA7bbrCJmn0d+eIJc1j84JzlKXGgWvJfNr2um5TyCqDaWRlgssgm4xI213IWOYT pBXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700081750; x=1700686550; 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=J7aCt684M/Mo4aPxjDOnz7JyGbXhEmNf+Qyqgmy0nPo=; b=jr0D4l2+8MiGBM6WlIlM+BswMJXGf2nsMjRZr1FqYFo2LoRs1kXrsNUJx86ec4FHhv 3JjOydSaPY+YTcSY6P1m9dW6vPN7SRU2YUjQ+ODUS7Dih/E6s9j+gqIVMvxmYgXqLe7l cjtf0UmwrenNIPvg+T9I6havi0uG/Hye+0HPNyDTPzCkGzABVYUwNnS5t48qgOHREigB 2AeeEAepN7jPaTnccs9OLJHTBjc8QA3nMAycx5Snkx2GgFiBSpF2PdGlsyvH2r8CG2xf /ERESzzi2dMM8vJ+UazusYX3HrLWwFK3D9ph1sNUWfop9pmQ/ArwGkrUTtrwVXwQblx9 T2Bg== X-Gm-Message-State: AOJu0YxCYSsWfdsS7x3pEpJ0t3ho9kBzQULD65p6tNHIqODsDmqhFiq4 dx48BL7wIoJ76mHeqYgc/yXtgA== X-Received: by 2002:a5d:584c:0:b0:32f:7e1d:f039 with SMTP id i12-20020a5d584c000000b0032f7e1df039mr10866947wrf.46.1700081750692; Wed, 15 Nov 2023 12:55:50 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id b11-20020a05600010cb00b0032f9688ea48sm11516899wrx.10.2023.11.15.12.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:55:46 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 636BD5F7B7; Wed, 15 Nov 2023 20:55:43 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , Peter Maydell , Beraldo Leal , Mahmoud Mandour , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Alexandre Iooss Subject: [PATCH 07/10] hw/core: skip loading debug on all failures Date: Wed, 15 Nov 2023 20:55:39 +0000 Message-Id: <20231115205542.3092038-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231115205542.3092038-1-alex.bennee@linaro.org> References: <20231115205542.3092038-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x433.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 ELF_LOAD_FAILED is one of many negative return codes we can have. Lets treat any positive size_t as a success for loading. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- hw/core/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/core/loader.c b/hw/core/loader.c index 3c79283777..e7a9b3775b 100644 --- a/hw/core/loader.c +++ b/hw/core/loader.c @@ -505,7 +505,7 @@ ssize_t load_elf_ram_sym(const char *filename, clear_lsb, data_swab, as, load_rom, sym_cb); } - if (ret != ELF_LOAD_FAILED) { + if (ret > 0) { debuginfo_report_elf(filename, fd, 0); } From patchwork Wed Nov 15 20:55:40 2023 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: 743992 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2966650wrw; Wed, 15 Nov 2023 12:57:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFyxrG42hpf/7TuesMugt5tTWTPLpof0v/BtDEixFTIjl4GafsvmUG4EhoB/r11VKAokVZr X-Received: by 2002:a05:6358:919a:b0:16b:c467:695f with SMTP id j26-20020a056358919a00b0016bc467695fmr7776880rwa.9.1700081862702; Wed, 15 Nov 2023 12:57:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700081862; cv=none; d=google.com; s=arc-20160816; b=GycB1IyJssVdWDSQLAQdhViylH2TLnw6PFVNEjVx/uV22wkOenyJSuuqqijw0yhslH JVN3FDPmqvBFK8azJ9Uf3zD79ZNw8K4Vf1fTOt0DoU5fMT4w+aF6/R68ndLXjDoXodCo Jj2pyxgiZY4BoTkBGzx2LPnv3c/UtC35Gm1u+qJUMwJkvwoLUELDJ9kE5qH+LkdFsd71 wDjfwL7/h+eeqjj6tvCcqDu5MV+nYDrHTv8OaU68fhUcxCyj8uu0gBfzGRiG4A/Rejzi HVipx1iJf7NHXdmjTsU0FzjBrfWTkdCIE4WH8jpu70vkZ+hh26oiRudhUQgCdbQSm8V0 PanA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=n/NN7es3+1CZ0EFlUnLqZA7cRnxMs3Z1B4jfSUDxuyM=; fh=VX240Z2IZJQtf5WSWx5doHfPl1phoYGIiN62laV0qLc=; b=IaVVh9nb+iLRJ4mn+Qt02eL9TuVBzws/BUDv22xlmDDxJEgUk29h0tFkAkOyjeOwOc JtByNjADbV3t0x2Q/5eEn+SzkY3p5zBz6Yd7FdwVHBRy1G9BPjPoXoCBSU2hNsOUxlje 02qXM4qerUI9/uStAVqFi6j5hbrC3CJQv8/tnN9oZ1dPxCJTsIQ0B+sLMHJ4q+CRPIxd iqYWOOFk/yVVhtGIA71ZXLhVsyp0xi64zgEkbs9HSMZosRIlbgTX+EQiwIgRo66Hz4Am ZJc4Qd6mRiVBgH3/rN89aumSDppAGXGpr+aKYp3CIJKAqBDFb8ZXPRR7K1FcgkCuaYy1 O/ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="F98uRXF/"; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i13-20020ac85c0d000000b00421a4bd9022si9276377qti.231.2023.11.15.12.57.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2023 12:57:42 -0800 (PST) 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="F98uRXF/"; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3Mva-0004vd-Hm; Wed, 15 Nov 2023 15:56:02 -0500 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 1r3MvV-0004oD-Sc for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:57 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3MvQ-0008C2-Mi for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:57 -0500 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4083cd3917eso446635e9.3 for ; Wed, 15 Nov 2023 12:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700081751; x=1700686551; 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=n/NN7es3+1CZ0EFlUnLqZA7cRnxMs3Z1B4jfSUDxuyM=; b=F98uRXF/7MYSytcK8ZFqplcaqtdKuqiZyPyrMGAJ11lnS952waA1DhKosh4Ghnklk3 WhBIWRs8UCwe8SMxPIapctUQqFb2OENGJ07SQ2ASWU/YsoeEtYCyOsqmrGnfjg7k+v7w fjSOgQ4mz620lwijDaucgZuvHpSCL2G5OtOxGAAafF2M3/UBA52qOBhm/URbczMUslJP C3fahJ3akb8E+Ve+Ljpep/qFTBkws9TDA0wfc8tnm0vd0MpwltGBXExbgUSq2xWppz+X gfo/uKhgJ2v8PRgXNS7djykmje1qI9f+KNjt5sBW+FtenZ4JXpIacKQWrBGHtjjZvd7y aRNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700081751; x=1700686551; 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=n/NN7es3+1CZ0EFlUnLqZA7cRnxMs3Z1B4jfSUDxuyM=; b=lj3iXCXUpaL6Tc1fyT/klUn6lY8YwpBn7qhBYJAA+MU2LcJZdaw3970gmJ3JpKsipO AQ+CBRvqbfj2Cy3RwSXVbUo8Lu9SfIusw8IamMiZs39oW7/2jUcr4CRpcq3GvX2OojIq ESP6cl1qKeXqqG9vJA0JOm6riBO6IU4ThV5rHbu1zHIoYwManeakIDNk23CM2Snfzm/9 0dhZb+o7+F3VfYbJggWwx7WwlyVmi5FUh+B76zgbxHIyQxqSn2EiysT1RcTkcF5508Xa AZTcqokScB56Z19uu+wmH3DJQ7QbKSeL4E4B0VtGWgozB4zYdMVcwESUr/n/AeTbgf0T Ov9A== X-Gm-Message-State: AOJu0Yzz7zCWRj9/9lvWqtB8V+C11QpuIaSKst9QCaOokPoAK6zV6dIb qVC6iVai2sX3RDc9fZT9XrWLUESZChEVCaPS8BJYFw== X-Received: by 2002:a05:600c:45c9:b0:405:40ab:7693 with SMTP id s9-20020a05600c45c900b0040540ab7693mr11590077wmo.31.1700081750916; Wed, 15 Nov 2023 12:55:50 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id n20-20020a05600c4f9400b004060f0a0fd5sm884470wmq.13.2023.11.15.12.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:55:46 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 766D25F76C; Wed, 15 Nov 2023 20:55:43 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , Peter Maydell , Beraldo Leal , Mahmoud Mandour , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Alexandre Iooss Subject: [PATCH 08/10] testing: move arm system tests into their own folder Date: Wed, 15 Nov 2023 20:55:40 +0000 Message-Id: <20231115205542.3092038-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231115205542.3092038-1-alex.bennee@linaro.org> References: <20231115205542.3092038-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 Prepare for expanding the arm system tests by cleaning up the test directory. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- tests/tcg/arm/Makefile.softmmu-target | 5 ++--- tests/tcg/arm/{ => system}/test-armv6m-undef.S | 0 tests/tcg/arm/{ => system}/test-armv6m-undef.ld | 0 3 files changed, 2 insertions(+), 3 deletions(-) rename tests/tcg/arm/{ => system}/test-armv6m-undef.S (100%) rename tests/tcg/arm/{ => system}/test-armv6m-undef.ld (100%) diff --git a/tests/tcg/arm/Makefile.softmmu-target b/tests/tcg/arm/Makefile.softmmu-target index 8b546e2aa3..7857ab9324 100644 --- a/tests/tcg/arm/Makefile.softmmu-target +++ b/tests/tcg/arm/Makefile.softmmu-target @@ -3,7 +3,7 @@ # ARM SoftMMU tests - included from tests/tcg/Makefile # -ARM_SRC=$(SRC_PATH)/tests/tcg/arm +ARM_SRC=$(SRC_PATH)/tests/tcg/arm/system # Set search path for all sources VPATH += $(ARM_SRC) @@ -12,7 +12,6 @@ ARM_TESTS=test-armv6m-undef TESTS += $(ARM_TESTS) -CFLAGS+=-Wl,--build-id=none -x assembler-with-cpp LDFLAGS+=-nostdlib -N -static %: %.S %.ld @@ -20,7 +19,7 @@ LDFLAGS+=-nostdlib -N -static # Specific Test Rules -test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0 -mfloat-abi=soft +test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0 -mfloat-abi=soft -Wl,--build-id=none -x assembler-with-cpp run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel diff --git a/tests/tcg/arm/test-armv6m-undef.S b/tests/tcg/arm/system/test-armv6m-undef.S similarity index 100% rename from tests/tcg/arm/test-armv6m-undef.S rename to tests/tcg/arm/system/test-armv6m-undef.S diff --git a/tests/tcg/arm/test-armv6m-undef.ld b/tests/tcg/arm/system/test-armv6m-undef.ld similarity index 100% rename from tests/tcg/arm/test-armv6m-undef.ld rename to tests/tcg/arm/system/test-armv6m-undef.ld From patchwork Wed Nov 15 20:55:41 2023 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: 743994 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2966714wrw; Wed, 15 Nov 2023 12:57:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IE7fZ0c8ZcGA820mu7W5d+Z5hoFLcAovqDnq3EXYfz+rfhdSiUMtvbBnmy+vGbMXw7gxHa/ X-Received: by 2002:a05:6214:29ce:b0:64c:9d23:8f55 with SMTP id gh14-20020a05621429ce00b0064c9d238f55mr7922407qvb.58.1700081879073; Wed, 15 Nov 2023 12:57:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700081879; cv=none; d=google.com; s=arc-20160816; b=VNtzSyuOe1Kjq6mhbk1fu5Wdc0kT+kPqXb4hjCvz/tq1+06WEHn8sxTfLjKh4yH7g0 aiAtBdefIIJ8/wuOLZBtRPRcMqhQtrHQKvW8k2y0gTUjaJkjk2YsZWSn4oqXfSMzcTCj f6vxP5z+DZluWbJNBwxWlf496CO2fwFi7lxG9VLDVBw1h6UC/rdmYS9IT4M+veqSE+pK wQ4+W7PXdMnnOqASmWgoUDqIdO5OeRZROblulI6LE9TiQXAMJtY7+iQPGJkm2YMkxdpH C7maiF/z1q+oG7b5c0ZgIA+UyVjCzT1TqEoYldO7LwBwl6qpGoYipbYGjWo43qsnFA8j gx+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=WBu7TcFa0DnkjHn5rRb2bTaDElhIRlhj4saJE55wGzI=; fh=VX240Z2IZJQtf5WSWx5doHfPl1phoYGIiN62laV0qLc=; b=T4zPYNKLsfhtg/xtJcxLkroLZCGNTemKLEBOSPv/bDW9PfR/BRhmdGrH0512S8VWdA RfbAc4K8dgLWBwUGoDLgPjTRAyiNR2hWM8M20V/9W09tQDxdetOc7yQ+DrnR0wRjYaSh mjr9wPxliMBBznF0iPizydtglPnBjWMMJz/GNN97xQ5DBY798FrQGg0BBg/0eHFpX+ha Zdtkxo8crZIinRwYt4B6OkR1aH5MJWqs3IJYSfuktbhjUA7Pp4MG0uxIc/n3+AwEgtrL LogL4NuMcOv5ABkXnIxpfQdjYFzAIXoUvLUrXkQn36rTrAc6hhD6LySBrDHiE6DK2Ewf lyxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rBlmbYeu; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id qf20-20020a0562144b9400b0065637c67204si10133436qvb.334.2023.11.15.12.57.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2023 12:57:59 -0800 (PST) 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=rBlmbYeu; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3Mvc-0004wf-At; Wed, 15 Nov 2023 15:56:04 -0500 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 1r3MvY-0004rK-EY for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:56:00 -0500 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 1r3MvT-0008Ch-Cn for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:56:00 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4083cd3917eso446805e9.3 for ; Wed, 15 Nov 2023 12:55:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700081753; x=1700686553; 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=WBu7TcFa0DnkjHn5rRb2bTaDElhIRlhj4saJE55wGzI=; b=rBlmbYeuTqpwFboWhAHUPvj4Ud4+7n4UIxL6t1X8n6JG6ewkIP72pf+mGcMLET6Ium frJXqZuHp0WXVSNsqiOkFdTR3d542jZ70Q52HseS+zxwAiYhV2jcpzzrxNuk2JNJgOPJ fxRhsq/SoCGmQ9Ks4yqlAmwcEl/ZSFT+DRZvUtPrDvHazHG3WIl/unBzF4HP2NJ+Igqs e3CZfSUFv8YR1ka+dmrFP/fED7KOQKxd8rVI60t4KtS0MJL5LgWaaf35WuWbocZf8KkE WZ4MjsYgJS0GZy6O94LYY5Cw0qdUhUHJ9psWjNC07U4/Z0QNo2FiHD7qgNbPNIcB+0CH wfng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700081753; x=1700686553; 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=WBu7TcFa0DnkjHn5rRb2bTaDElhIRlhj4saJE55wGzI=; b=GdRWHDL2kPvNLhRB949rknjbvfJ7R9upuO8EoTvv0LE2PfssZTrH1aJeHy5IGDxF/j N5UA3/HRasgoKT/q2O/ltnIz1+kKMXmdWGeBthTwCNSvCVOJeQ+YL7HGSctQUxfKUWr1 RK1USitmS2ov4wpkIUPXWYzs96ra8Gx6x5DCDemegTHwMvDB+wXndY/wCT2hg3nz6Rz0 bm+c3QvhzoVW6TOmHikoYLQCgfUjyKKKqWTEhd6eJwGUmdvlCU5P9SKOtwf67YHpSTM0 7FLba2Hl6TpW752F+dkvOeqWQEILhAut+EHHE9lBt7V445Fyyma5Etjsv68hB1YdzFOJ g+LQ== X-Gm-Message-State: AOJu0YxlOblM22YNjErc0xe3hGJ8nmqUB75vF3bQg6zP5t4q2KriRiWy aK0/D/sCyXQ84nwEYhM03Zexnf1pAeMmLAKRb8RF7Q== X-Received: by 2002:a05:600c:474b:b0:3fe:2b8c:9f0b with SMTP id w11-20020a05600c474b00b003fe2b8c9f0bmr10286766wmo.23.1700081752845; Wed, 15 Nov 2023 12:55:52 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id o22-20020a05600c4fd600b004064741f855sm862126wmq.47.2023.11.15.12.55.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:55:46 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 8FDF55F7B8; Wed, 15 Nov 2023 20:55:43 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , Peter Maydell , Beraldo Leal , Mahmoud Mandour , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Alexandre Iooss Subject: [PATCH 09/10] tests/tcg: enable arm softmmu tests Date: Wed, 15 Nov 2023 20:55:41 +0000 Message-Id: <20231115205542.3092038-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231115205542.3092038-1-alex.bennee@linaro.org> References: <20231115205542.3092038-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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 To make it easier to test 32 bit Arm softmmu issues implement a basic boot.S so we can build the multiarch tests. Currently CHECK_UNALIGNED is disabled as I haven't got the right magic set for it to work. Signed-off-by: Alex Bennée --- tests/tcg/arm/Makefile.softmmu-target | 64 +++++- tests/tcg/arm/system/boot.S | 288 ++++++++++++++++++++++++++ tests/tcg/arm/system/kernel.ld | 24 +++ 3 files changed, 366 insertions(+), 10 deletions(-) create mode 100644 tests/tcg/arm/system/boot.S create mode 100644 tests/tcg/arm/system/kernel.ld diff --git a/tests/tcg/arm/Makefile.softmmu-target b/tests/tcg/arm/Makefile.softmmu-target index 7857ab9324..aadc12767e 100644 --- a/tests/tcg/arm/Makefile.softmmu-target +++ b/tests/tcg/arm/Makefile.softmmu-target @@ -8,20 +8,64 @@ ARM_SRC=$(SRC_PATH)/tests/tcg/arm/system # Set search path for all sources VPATH += $(ARM_SRC) -ARM_TESTS=test-armv6m-undef +# Specific Test Rules -TESTS += $(ARM_TESTS) +test-armv6m-undef: test-armv6m-undef.S + $(CC) -mcpu=cortex-m0 -mfloat-abi=soft \ + -Wl,--build-id=none -x assembler-with-cpp \ + $< -o $@ -nostdlib -N -static \ + -T $(ARM_SRC)/$@.ld -LDFLAGS+=-nostdlib -N -static +run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel -%: %.S %.ld - $(CC) $(CFLAGS) $(ASFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) -T $(ARM_SRC)/$@.ld +ARM_TESTS+=test-armv6m-undef -# Specific Test Rules +# These objects provide the basic boot code and helper functions for all tests +CRT_OBJS=boot.o -test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0 -mfloat-abi=soft -Wl,--build-id=none -x assembler-with-cpp +ARM_TEST_SRCS=$(wildcard $(ARM_SRC)/*.c) +ARM_TESTS+=$(patsubst $(ARM_SRC)/%.c, %, $(ARM_TEST_SRCS)) -run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel +CRT_PATH=$(ARM_SRC) +LINK_SCRIPT=$(ARM_SRC)/kernel.ld +LDFLAGS=-Wl,-T$(LINK_SCRIPT) +CFLAGS+=-nostdlib -ggdb -O0 $(MINILIB_INC) +LDFLAGS+=-static -nostdlib -N $(CRT_OBJS) $(MINILIB_OBJS) -lgcc + +# building head blobs +.PRECIOUS: $(CRT_OBJS) + +%.o: $(ARM_SRC)/%.S + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -c $< -o $@ + +# Build and link the tests +%: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) + +memory: CFLAGS+=-DCHECK_UNALIGNED=0 + +# Running +QEMU_BASE_MACHINE=-M virt -cpu max -display none +QEMU_OPTS+=$(QEMU_BASE_MACHINE) -semihosting-config enable=on,target=native,chardev=output -kernel + +# Simple Record/Replay Test +.PHONY: memory-record +run-memory-record: memory-record memory + $(call run-test, $<, \ + $(QEMU) -monitor none -display none \ + -chardev file$(COMMA)path=$<.out$(COMMA)id=output \ + -icount shift=5$(COMMA)rr=record$(COMMA)rrfile=record.bin \ + $(QEMU_OPTS) memory) + +.PHONY: memory-replay +run-memory-replay: memory-replay run-memory-record + $(call run-test, $<, \ + $(QEMU) -monitor none -display none \ + -chardev file$(COMMA)path=$<.out$(COMMA)id=output \ + -icount shift=5$(COMMA)rr=replay$(COMMA)rrfile=record.bin \ + $(QEMU_OPTS) memory) + +EXTRA_RUNS+=run-memory-replay -# We don't currently support the multiarch system tests -undefine MULTIARCH_TESTS +TESTS += $(ARM_TESTS) $(MULTIARCH_TESTS) +EXTRA_RUNS+=$(MULTIARCH_RUNS) diff --git a/tests/tcg/arm/system/boot.S b/tests/tcg/arm/system/boot.S new file mode 100644 index 0000000000..d1ed897eaa --- /dev/null +++ b/tests/tcg/arm/system/boot.S @@ -0,0 +1,288 @@ +/* + * Minimal ArmV7 system boot code. + * + * Using semihosting for serial output and exit functions. + */ + +/* + * Semihosting interface on ARM AArch32 + * R0 - semihosting call number + * R1 - semihosting parameter + */ +#define semihosting_call svc 0x123456 +#define SYS_WRITEC 0x03 /* character to debug channel */ +#define SYS_WRITE0 0x04 /* string to debug channel */ +#define SYS_EXIT 0x18 + +#define ADP_Stopped_ApplicationExit 0x20026 +#define ADP_Stopped_InternalError 0x20024 + + .section .interrupt_vector, "ax" + .align 5 + +vector_table: + b reset /* reset vector */ + b undef_instr /* undefined instruction vector */ + b software_intr /* software interrupt vector */ + b prefetch_abort /* prefetch abort vector */ + b data_abort /* data abort vector */ + nop /* reserved */ + b IRQ_handler /* IRQ vector */ + b FIQ_handler /* FIQ vector */ + + .text + .global __start +__start: + ldr r0, =vector_table + mcr p15, 0, r0, c12, c0, 0 /* Set up VBAR */ + + ldr sp, =stack_end /* Set up the stack */ + bl mmu_setup /* Set up the MMU */ + bl main /* Jump to main */ + +_exit: + cmp r0, #0 + ite EQ // if-then-else. "EQ" is for if equal, else otherwise + ldreq r1, =ADP_Stopped_ApplicationExit // if r0 == 0 + ldrne r1, =ADP_Stopped_InternalError // else + mov r0, #SYS_EXIT + semihosting_call + +/* + * Helper Functions + */ + +mmu_setup: + /* + * The MMU setup for this is very simple using two stage one + * translations. The first 1Mb section points to the text + * section and the second points to the data and rss. + * Currently the fattest test only needs ~50k for that so we + * have plenty of space. + * + * The short descriptor Section format is as follows: + * + * PA[31:20] - Section Base Address + * NS[19] - Non-secure bit + * 0[18] - Section (1 for Super Section) + * nG[17] - Not global bit + * S[16] - Shareable + * TEX[14:12] - Memory Region Attributes + * AP[15, 11:10] - Access Permission Bits + * IMPDEF[9] + * Domain[8:5] + * XN[4] - Execute never bit + * C[3] - Memory Region Attributes + * B[2] - Memory Region Attributes + * 1[1] + * PXN[0] - Privileged Execute Never + * + * r0 - point at the table + * r1 - address + * r2 - entry + * r3 - common section bits + * r4 - scratch + */ + + /* + * Memory Region Bits + * + * TEX[14:12] = 000 + * C[3] = 1 + * B[2] = 1 + * + * Outer and Inner WB, no write allocate + */ + mov r3, #0 + ldr r4, =(3 << 2) + orr r3, r4, r4 + + /* Section bit */ + orr r3, r3, #2 + + /* Page table setup (identity mapping). */ + ldr r0, =ttb + + /* First block: .text/RO/execute enabled */ + ldr r1, =.text + ldr r2, =0xFFF00000 /* 1MB block alignment */ + and r2, r1, r2 + orr r2, r2, r3 /* common bits */ + orr r2, r2, #(1 << 15) /* AP[2] = 1 */ + orr r2, r2, #(1 << 10) /* AP[0] = 1 => RO @ PL1 */ + + lsr r4, r2, #(20 - 2) + str r2, [r0, r4, lsl #0] /* write entry */ + + /* Second block: .data/RW/no execute */ + ldr r1, =.data + ldr r2, =0xFFF00000 /* 1MB block alignment */ + and r2, r1, r2 + orr r2, r2, r3 /* common bits */ + orr r2, r2, #(1 << 10) /* AP[0] = 1 => RW @ PL1 */ + orr r2, r2, #(1 << 4) /* XN[4] => no execute */ + + lsr r4, r2, #(20 - 2) + str r2, [r0, r4, lsl #0] /* write entry */ + + /* + * DACR - Domain Control + * + * Enable client mode for domain 0 (we don't use any others) + */ + ldr r0, =0x1 + mcr p15, 0, r0, c3, c0, 0 + + /* + * TTCBR - Translation Table Base Control Register + * + * EAE[31] = 0, 32-bit translation, short descriptor format + * N[2:0] = 5 ( TTBRO uses 31:14-5 => 9 bit lookup stage ) + */ + ldr r0, =0x5 + mcr p15, 0, r0, c1, c0, 2 + + /* + * TTBR0 -Translation Table Base Register 0 + * + * [31:9] = Base address of table + * + * QEMU doesn't really care about the cache sharing + * attributes so we don't need to either. + */ + ldr r0, =ttb + mcr p15, 0, r0, c2, c0, 0 + + /* + * SCTLR- System Control Register + * + * TE[30] = 0, exceptions to A32 state + * AFE[29] = 0, AP[0] is the access permissions bit + * EE[25] = 0, Little-endian + * WXN[19] = 0 = no effect, Write does not imply XN (execute never) + * I[12] = Instruction cachability control + * C[2] = Data cachability control + * M[0] = 1, enable stage 1 address translation for EL0/1 + * + * At this point virtual memory is enabled. + */ + ldr r0, =0x1005 + mcr p15, 0, r0, c1, c0, 0 + + isb + + mov pc, lr /* done, return to caller */ + +/* Output a single character to serial port */ +__sys_outc: + STMFD sp!, {r0-r1} // push r0, r1 onto stack + mov r1, sp + mov r0, #SYS_WRITEC + semihosting_call + LDMFD sp!, {r0-r1} // pop r0, r1 from stack + bx lr + + /* Make sure the linker knows how to call us */ + .globl __sys_outc + .type __sys_outc, %function + .size __sys_outc, . - __sys_outc + +reset: + ldr r1, =reset_error + b exception_handler + +undef_instr: + ldr r1, =undef_intr_error + b exception_handler + +software_intr: + ldr r1, =software_intr_error + b exception_handler + +prefetch_abort: + ldr r1, =prefetch_abort_error + b exception_handler + +data_abort: + ldr r1, =data_abort_error + b exception_handler + +IRQ_handler: + ldr r1, =irq_error + b exception_handler + +FIQ_handler: + ldr r1, =fiq_error + b exception_handler + +/* + * Initiate a exit semihosting call whenever there is any exception + * r1 already holds the string. + */ +exception_handler: + mov r0, #SYS_WRITE0 + semihosting_call + mov r0, #SYS_EXIT + mov r1, #1 + semihosting_call + +/* + * We implement a stub raise() function which errors out as tests + * shouldn't trigger maths errors. + */ + .global raise +raise: + mov r0, #SYS_WRITE0 + ldr r1, =maths_error + semihosting_call + mov r0, #SYS_EXIT + ldr r1, =ADP_Stopped_InternalError + semihosting_call + + .data + +.data + +reset_error: + .ascii "Reset exception occurred.\n\0" + +undef_intr_error: + .ascii "Undefined Instruction Exception Occurred.\n\0" + +software_intr_error: + .ascii "Software Interrupt Occurred.\n\0" + +prefetch_abort_error: + .ascii "Prefetch Abort Occurred.\n\0" + +data_abort_error: + .ascii "Data Abort Occurred.\n\0" + +irq_error: + .ascii "IRQ exception occurred.\n\0" + +fiq_error: + .ascii "FIQ exception occurred.\n\0" + +maths_error: + .ascii "Software maths exception.\n\0" + + + /* + * 1st Stage Translation table + * 4096 entries, indexed by [31:20] + * each entry covers 1Mb of address space + * aligned on 16kb + */ + .align 15 +ttb: + .space (4096 * 4), 0 + + .align 12 + + /* Space for stack */ + .align 5 + .section .bss +stack: + .space 65536, 0 +stack_end: diff --git a/tests/tcg/arm/system/kernel.ld b/tests/tcg/arm/system/kernel.ld new file mode 100644 index 0000000000..7b3a76dcbf --- /dev/null +++ b/tests/tcg/arm/system/kernel.ld @@ -0,0 +1,24 @@ +ENTRY(__start) + +SECTIONS +{ + /* virt machine, RAM starts at 1gb */ + . = (1 << 30); + .text : { + *(.text) + } + .rodata : { + *(.rodata) + } + /* align r/w section to next 2mb */ + . = ALIGN(1 << 21); + .data : { + *(.data) + } + .bss : { + *(.bss) + } + /DISCARD/ : { + *(.ARM.attributes) + } +} From patchwork Wed Nov 15 20:55:42 2023 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: 743988 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2966347wrw; Wed, 15 Nov 2023 12:56:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IHR+F+j0HXAh68DNYIyWMUC5HXzayuH/7gxADvXyAZ38l73KI2b6avTuaY/ABVtDveOZJtx X-Received: by 2002:a25:ae46:0:b0:daf:74cd:f729 with SMTP id g6-20020a25ae46000000b00daf74cdf729mr11604194ybe.50.1700081808902; Wed, 15 Nov 2023 12:56:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700081808; cv=none; d=google.com; s=arc-20160816; b=X5CWDcFKscVsEAivpLIuK1UXsbLQX1cSxsPSJ9WefMMLtx8RWBSOBMeKhtDIUS+Mvp tEoNqRaaPtY2yOVanzlvpj0TkQvnS7/MuHfQ4+ZEouKHIJLtpvxCVq8o28QBCH6gEpfl Co/X/9Fx2fIveBUOYKGGtn/xnKzNbEk/CRFGjrpMAAcWEe2FXh3oyX2JTiZgtDbXIQWF 8pBQYl89GpIYY0FuO1AQ1FDJvQLwByyf76AeTrBGG5PTNcp4mxYwvIAa59KV+XUHma+3 a7aYXIQw5s021dwvJpqUNThn/0fK/t8cOIVosr25QTA8wUZt/Ex1lTjmmd1qHbuAHUuA ElOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=Gyb1IbDacWS+M0sLJpuM3eBiDXIMLrNrMXya8IYdc1k=; fh=VX240Z2IZJQtf5WSWx5doHfPl1phoYGIiN62laV0qLc=; b=OMSmy+Ebe7SzR+8c3vvIEoFyU1aEy/onXTSQ7/l4hh68ItoWIO+9DpejiopAAkZOL9 RM/aw0YmUmLTekh3RMt27I4Pf7J0xbH2lADlg5GDbKoJLHoDiIDCF8NbY5TMY6ULtogZ lohT4PNOgaYEamhI/UiESQ9p5cef/Orz/g/Q+pdvHWPD9AO3DoWGXSYzni+JmSElGuRW d3JhVbZkjYsmeSOyS++/vliNRIUA3H8bvHaGMhPrkSEpHftpbV91RHzwHAk8eIJJZT7Q YaHTV1GMnvqHmDfQlpfUBjmUZjqRnRDkZX64xzKC6XDFM4ye8rLvfI/JJ4pM/wrljR4W sLaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WJRB7X0E; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x18-20020ad44592000000b0066d239d89bdsi10128910qvu.445.2023.11.15.12.56.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2023 12:56:48 -0800 (PST) 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=WJRB7X0E; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3Mvj-0004xx-Vf; Wed, 15 Nov 2023 15:56:12 -0500 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 1r3Mvi-0004xO-7v for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:56:10 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3MvQ-0008CA-QG for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:56:10 -0500 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40790b0a224so504215e9.0 for ; Wed, 15 Nov 2023 12:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700081751; x=1700686551; 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=Gyb1IbDacWS+M0sLJpuM3eBiDXIMLrNrMXya8IYdc1k=; b=WJRB7X0EoSv9DuzEjzFBKwvmfPW4jXYmMXfkF6Fx4s85QsSvkBwsDr4eceaI1oHc5r 5mv13Ta0oL6rgPKwuJ62l+0ptSmsnHhjRHXQ+x0ZxN5Jh/3JKkmwRaf7rWvOttGbt/Lx nVNNtokNlMWjq1R4DuQMkQXWBwRn7oIjQBsjXh0VJTssMYUQaw+7qrHdf05+dvYZVZ2k t8sZiGd07flfnRx9BAC0EC43F+VE2vSlDFsLJc8Km/lf5WPJCzNyWtL0b1Zi/Ef6mXjC aBDZ6kVeiP45i1YZJ2r5vg+z8QkYmKI20/KuTilA9zDYbt2rgV4k7fgFIRiqnHpYLQPm 6V6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700081751; x=1700686551; 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=Gyb1IbDacWS+M0sLJpuM3eBiDXIMLrNrMXya8IYdc1k=; b=SYRmBxJ6M3yZ3HrCal4vHT3Hc5N6sVTAGo2yUfKgfdPa7+QgkfK3AnDjOR4Ot7GOfP 44cgjeV6vPOlRDMQ8KCBTY1jcmHJP2LK48dH856lNG/gtTqlYFiFKeJhS6PiypOP27gW XFJd2CYpRCZo08QMg9oJdcUkb9ukDvQCfOTrZ7slQwhvACOrckf+NriiNeZCse8h2AgV 8VX6MDA7EgoXa0IXW5mV4tZpXibYD2dHvNlMPMmMITveBSx9X4bfRDvQzf87x9ssEQSL Q4v43ACXvhVwoOGxoahCNq1vtUnpZHjq66/4XYNptGldcE2cNhkJkfBCji6vGqGfHAYg rZbQ== X-Gm-Message-State: AOJu0Ywf5KqlwgYnQe1Td2sqo7FPcxNsDu3fjuEg8FEzbn2d0Lmalpcx sjTKc43aG7cvEqe+R+zGP2AXkw== X-Received: by 2002:adf:ebca:0:b0:32c:ea14:89e5 with SMTP id v10-20020adfebca000000b0032cea1489e5mr9227991wrn.39.1700081751329; Wed, 15 Nov 2023 12:55:51 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id e3-20020adffd03000000b003142e438e8csm11534869wrr.26.2023.11.15.12.55.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:55:46 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id A7EC95F7B9; Wed, 15 Nov 2023 20:55:43 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , Peter Maydell , Beraldo Leal , Mahmoud Mandour , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Alexandre Iooss Subject: [PATCH 10/10] tests/tcg: enable semiconsole test for Arm Date: Wed, 15 Nov 2023 20:55:42 +0000 Message-Id: <20231115205542.3092038-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231115205542.3092038-1-alex.bennee@linaro.org> References: <20231115205542.3092038-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x334.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, T_SCC_BODY_TEXT_LINE=-0.01 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 This still remains a MANUAL test due to blocking issues. Signed-off-by: Alex Bennée --- tests/tcg/arm/system/semiconsole.c | 42 +++++++++++++++++++++++++++ tests/tcg/arm/Makefile.softmmu-target | 9 ++++++ 2 files changed, 51 insertions(+) create mode 100644 tests/tcg/arm/system/semiconsole.c diff --git a/tests/tcg/arm/system/semiconsole.c b/tests/tcg/arm/system/semiconsole.c new file mode 100644 index 0000000000..206dd60eed --- /dev/null +++ b/tests/tcg/arm/system/semiconsole.c @@ -0,0 +1,42 @@ +/* + * Semihosting Console Test + * + * Copyright (c) 2019 Linaro Ltd + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include +#include + +#define SYS_READC 0x7 + +uintptr_t __semi_call(uintptr_t type, uintptr_t arg0) +{ + register uintptr_t t asm("r0") = type; + register uintptr_t a0 asm("r1") = arg0; +#ifdef __thumb__ +# define SVC "svc 0xab" +#else +# define SVC "svc 0x123456" +#endif + asm(SVC : "=r" (t) + : "r" (t), "r" (a0)); + + return t; +} + +int main(void) +{ + char c; + + ml_printf("Semihosting Console Test\n"); + ml_printf("hit X to exit:"); + + do { + c = __semi_call(SYS_READC, 0); + __sys_outc(c); + } while (c != 'X'); + + return 0; +} diff --git a/tests/tcg/arm/Makefile.softmmu-target b/tests/tcg/arm/Makefile.softmmu-target index aadc12767e..4c9264057f 100644 --- a/tests/tcg/arm/Makefile.softmmu-target +++ b/tests/tcg/arm/Makefile.softmmu-target @@ -48,6 +48,15 @@ memory: CFLAGS+=-DCHECK_UNALIGNED=0 QEMU_BASE_MACHINE=-M virt -cpu max -display none QEMU_OPTS+=$(QEMU_BASE_MACHINE) -semihosting-config enable=on,target=native,chardev=output -kernel +# console test is manual only +QEMU_SEMIHOST=-serial none -chardev stdio,mux=on,id=stdio0 -semihosting-config enable=on,chardev=stdio0 -mon chardev=stdio0,mode=readline +run-semiconsole: QEMU_OPTS=$(QEMU_BASE_MACHINE) $(QEMU_SEMIHOST) -kernel +run-semiconsole: semiconsole + $(call skip-test, $<, "MANUAL ONLY") + $(if $(V),@printf " %-7s %s %s\n" "TO RUN" $(notdir $(QEMU)) "$(QEMU_OPTS) $<") +run-plugin-semiconsole-with-%: semiconsole + $(call skip-test, $<, "MANUAL ONLY") + # Simple Record/Replay Test .PHONY: memory-record run-memory-record: memory-record memory