Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1297C369C2 for ; Tue, 22 Apr 2025 16:19:24 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.963264.1354299 (Exim 4.92) (envelope-from ) id 1u7GL5-0003Vw-8p; Tue, 22 Apr 2025 16:19:15 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 963264.1354299; Tue, 22 Apr 2025 16:19:15 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1u7GL5-0003Vl-4q; Tue, 22 Apr 2025 16:19:15 +0000 Received: by outflank-mailman (input) for mailman id 963264; Tue, 22 Apr 2025 16:19:13 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1u7GL3-0002OS-B8 for xen-devel@lists.xenproject.org; Tue, 22 Apr 2025 16:19:13 +0000 Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 8688f88f-1f95-11f0-9ffb-bf95429c2676; Tue, 22 Apr 2025 18:19:11 +0200 (CEST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 8688f88f-1f95-11f0-9ffb-bf95429c2676 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1745338751; x=1745597951; bh=Oxzopb2Smy8wHitpBXm9PkJA3tLunHfsAtM0n7PUwIE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=ddniTTcuTQ8E+9TlrnrhoHnavJgaYwNo+DkDLZMkiLU+qO7Sremt3zzcKWjzHotJ2 Dsv+CD5sSa5QBeRhthDN1nfWUXnVbBailLiHkO3HK/4WY9fb04zruJLN+LSKgYwKCV tUVJQIbqKYNrFNkAK/fT2hIUy/6xKx1U/4jQ9oBjO5Emw9FvH5THGq3/Jw8TXudUuG hsDDg522KD3gvhFZ6PPwwNPtiRjaEpeVA386yFbczdesSgg+JZM+BQJXQerNk1llrN CpLv+awBzsTmU9Ik/fDmCM/dn57wJtjqqxXVqL1Nblym7jXZSp2d/zTwrJw8Nw7AzI +KLB3R8KSF2MA== Date: Tue, 22 Apr 2025 16:18:59 +0000 To: xen-devel@lists.xenproject.org From: dmkhn@proton.me Cc: andrew.cooper3@citrix.com, cardoe@cardoe.com, marmarek@invisiblethingslab.com, sstabellini@kernel.org, dmukhin@ford.com Subject: [PATCH v3 3/4] CI: switch arm64 XTF test runner to qemu-xtf.sh Message-ID: <20250422161819.2089738-4-dmukhin@ford.com> In-Reply-To: <20250422161819.2089738-1-dmukhin@ford.com> References: <20250422161819.2089738-1-dmukhin@ford.com> Feedback-ID: 123220910:user:proton X-Pm-Message-ID: 463a1c55ac49d624fc10569fc5d79917ac781576 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Denis Mukhin Hook arm64 QEMU configuration to qemu-xtf.sh and use new script in arm64 CI jobs. Signed-off-by: Denis Mukhin Reviewed-by: Stefano Stabellini --- Changes v2->v3: - .gitignore fixup - Kept Stefano's R-b since the change was trivial --- automation/gitlab-ci/test.yaml | 4 +- automation/scripts/.gitignore | 3 + .../scripts/include/configs/xtf-arm64-config | 2 + automation/scripts/include/xtf-arm64 | 81 +++++++++++++++++++ automation/scripts/qemu-xtf-dom0less-arm64.sh | 68 ---------------- 5 files changed, 88 insertions(+), 70 deletions(-) create mode 100644 automation/scripts/include/configs/xtf-arm64-config create mode 100644 automation/scripts/include/xtf-arm64 delete mode 100755 automation/scripts/qemu-xtf-dom0less-arm64.sh diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yam= l index 1d89575b24..a603d4039a 100644 --- a/automation/gitlab-ci/test.yaml +++ b/automation/gitlab-ci/test.yaml @@ -571,7 +571,7 @@ qemu-smoke-dom0less-arm64-gcc-debug-earlyprintk: qemu-xtf-dom0less-arm64-gcc-hyp-xen-version: extends: .qemu-arm64 script: - - ./automation/scripts/qemu-xtf-dom0less-arm64.sh hyp-xen-version 2>&1= | tee ${LOGFILE} + - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 = | tee ${LOGFILE} needs: - alpine-3.18-gcc-arm64 - qemu-system-aarch64-6.0.0-arm64-export @@ -579,7 +579,7 @@ qemu-xtf-dom0less-arm64-gcc-hyp-xen-version: qemu-xtf-dom0less-arm64-gcc-debug-hyp-xen-version: extends: .qemu-arm64 script: - - ./automation/scripts/qemu-xtf-dom0less-arm64.sh hyp-xen-version 2>&1= | tee ${LOGFILE} + - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 = | tee ${LOGFILE} needs: - alpine-3.18-gcc-debug-arm64 - qemu-system-aarch64-6.0.0-arm64-export diff --git a/automation/scripts/.gitignore b/automation/scripts/.gitignore index 310a577bef..a01b533c60 100644 --- a/automation/scripts/.gitignore +++ b/automation/scripts/.gitignore @@ -1,3 +1,6 @@ /binaries/ +/imagebuilder/ /smoke.serial /xtf-*/ + +*.rom diff --git a/automation/scripts/include/configs/xtf-arm64-config b/automati= on/scripts/include/configs/xtf-arm64-config new file mode 100644 index 0000000000..9942740927 --- /dev/null +++ b/automation/scripts/include/configs/xtf-arm64-config @@ -0,0 +1,2 @@ +CONFIG_GICV2=3Dy +CONFIG_SBSA_UART=3Dy diff --git a/automation/scripts/include/xtf-arm64 b/automation/scripts/incl= ude/xtf-arm64 new file mode 100644 index 0000000000..1a318b7aa0 --- /dev/null +++ b/automation/scripts/include/xtf-arm64 @@ -0,0 +1,81 @@ +#!/bin/bash +# +# XTF test utilities (arm64). +# + +# Arch-specific environment overrides. +function xtf_arch_prepare() +{ + export FW_PREFIX=3D"${FW_PREFIX:-/usr/lib/u-boot/qemu_arm64/}" + export QEMU_PREFIX=3D"${QEMU_PREFIX:-${WORKDIR}/}" + export XEN_BINARY=3D"${XEN_BINARY:-${WORKDIR}/xen}" + export XEN_CMDLINE=3D"${XEN_CMDLINE:-loglvl=3Dall noreboot console_tim= estamps=3Dboot console=3Ddtuart}" + export XTF_SRC_BRANCH=3D"${XTF_SRC_BRANCH:-xtf-arm}" + export XTF_SRC_URI=3D"${XTF_SRC_URI:-https://gitlab.com/xen-project/fu= sa/xtf.git}" + export XTF_SRC_VARIANTS=3D"mmu64le" +} + +# Perform arch-specific XTF environment setup. +function xtf_arch_setup() +{ + # QEMU looks for "efi-virtio.rom" even if it is unneeded + curl -fsSLO https://github.com/qemu/qemu/raw/v5.2.0/pc-bios/efi-virtio= .rom + + # Crude check for local testing + if [ ! -d imagebuilder ]; then + git clone --depth 1 https://gitlab.com/xen-project/imagebuilder.gi= t + fi + + cat > ${WORKDIR}/config < binaries/config - -rm -rf imagebuilder -git clone --depth 1 https://gitlab.com/xen-project/imagebuilder.git -bash imagebuilder/scripts/uboot-script-gen -t tftp -d binaries/ -c binarie= s/config - -# Run the test -rm -f smoke.serial -export TEST_CMD=3D"./binaries/qemu-system-aarch64 \ - -machine virtualization=3Dtrue \ - -cpu cortex-a57 -machine type=3Dvirt \ - -m 2048 -monitor none -serial stdio \ - -smp 2 \ - -no-reboot \ - -device virtio-net-pci,netdev=3Dn0 \ - -netdev user,id=3Dn0,tftp=3Dbinaries \ - -bios /usr/lib/u-boot/qemu_arm64/u-boot.bin" - -export UBOOT_CMD=3D"virtio scan; dhcp; tftpb 0x40000000 boot.scr; source 0= x40000000" -export BOOT_MSG=3D"Latest ChangeSet: " -export TEST_LOG=3D"smoke.serial" -export PASSED=3D"${passed}" - -./automation/scripts/console.exp | sed 's/\r\+$//' --=20 2.34.1