From patchwork Wed Nov 25 04:27:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 11930349 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-24.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49A57C63777 for ; Wed, 25 Nov 2020 04:27:59 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id BDC48208C3 for ; Wed, 25 Nov 2020 04:27:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="thMeD7fw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BDC48208C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.37137.69343 (Exim 4.92) (envelope-from ) id 1khmPG-0000sp-Er; Wed, 25 Nov 2020 04:27:50 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 37137.69343; Wed, 25 Nov 2020 04:27:50 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPG-0000sh-BL; Wed, 25 Nov 2020 04:27:50 +0000 Received: by outflank-mailman (input) for mailman id 37137; Wed, 25 Nov 2020 04:27:48 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPE-0000sA-JE for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:27:48 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 8af09075-fccc-4c2b-af61-14dbbae54f12; Wed, 25 Nov 2020 04:27:47 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C7C0720789; Wed, 25 Nov 2020 04:27:46 +0000 (UTC) Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPE-0000sA-JE for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:27:48 +0000 X-Inumbo-ID: 8af09075-fccc-4c2b-af61-14dbbae54f12 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 8af09075-fccc-4c2b-af61-14dbbae54f12; Wed, 25 Nov 2020 04:27:47 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C7C0720789; Wed, 25 Nov 2020 04:27:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606278467; bh=/lcIGplqn6odufkVeXSQ/3A4o3V3IGNc2rmyv6gS60M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=thMeD7fw10ItmbTZlWIPLwsKzJ86JzKQYQMwg+xxRnRmiHvKRndVNGYG5ipEZJiWe l8Ek0n74OaUVlJChrmZugykQHs017rCcU48YkyoMJi/CJbdJTR/sPjE9IOpVDE2MFu GHjcyf+1+H2xy4G7Dl8oVyM9JMB9EqZVvq1Bmme8= From: Stefano Stabellini To: andrew.cooper3@citrix.com, cardoe@cardoe.com, wl@xen.org Cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini Subject: [PATCH v3 01/12] automation: add a QEMU aarch64 smoke test Date: Tue, 24 Nov 2020 20:27:34 -0800 Message-Id: <20201125042745.31986-1-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Use QEMU to start Xen (just the hypervisor) up until it stops because there is no dom0 kernel to boot. It is based on the existing build job unstable-arm64v8. Also use make -j$(nproc) to build Xen. Signed-off-by: Stefano Stabellini --- Changes in v2: - fix x86_32 build --- automation/gitlab-ci/test.yaml | 22 ++++++++++++++++++ automation/scripts/build | 6 ++--- automation/scripts/qemu-smoke-arm64.sh | 32 ++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 3 deletions(-) create mode 100755 automation/scripts/qemu-smoke-arm64.sh diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml index 793feafe8b..35346e3f6e 100644 --- a/automation/gitlab-ci/test.yaml +++ b/automation/gitlab-ci/test.yaml @@ -22,6 +22,28 @@ build-each-commit-gcc: - /^coverity-tested\/.*/ - /^stable-.*/ +qemu-smoke-arm64-gcc: + stage: test + image: registry.gitlab.com/xen-project/xen/${CONTAINER} + variables: + CONTAINER: debian:unstable-arm64v8 + script: + - ./automation/scripts/qemu-smoke-arm64.sh 2>&1 | tee qemu-smoke-arm64.log + dependencies: + - debian-unstable-gcc-arm64 + artifacts: + paths: + - smoke.serial + - '*.log' + when: always + tags: + - arm64 + except: + - master + - smoke + - /^coverity-tested\/.*/ + - /^stable-.*/ + qemu-smoke-x86-64-gcc: stage: test image: registry.gitlab.com/xen-project/xen/${CONTAINER} diff --git a/automation/scripts/build b/automation/scripts/build index 0cd0f3971d..7038e5eb50 100755 --- a/automation/scripts/build +++ b/automation/scripts/build @@ -10,9 +10,9 @@ cc-ver() # random config or default config if [[ "${RANDCONFIG}" == "y" ]]; then - make -C xen KCONFIG_ALLCONFIG=tools/kconfig/allrandom.config randconfig + make -j$(nproc) -C xen KCONFIG_ALLCONFIG=tools/kconfig/allrandom.config randconfig else - make -C xen defconfig + make -j$(nproc) -C xen defconfig fi # build up our configure options @@ -45,7 +45,7 @@ make -j$(nproc) dist # Extract artifacts to avoid getting rewritten by customised builds cp xen/.config xen-config mkdir binaries -if [[ "${XEN_TARGET_ARCH}" == "x86_64" ]]; then +if [[ "${XEN_TARGET_ARCH}" != "x86_32" ]]; then cp xen/xen binaries/xen fi diff --git a/automation/scripts/qemu-smoke-arm64.sh b/automation/scripts/qemu-smoke-arm64.sh new file mode 100755 index 0000000000..a7efbf8b6f --- /dev/null +++ b/automation/scripts/qemu-smoke-arm64.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +set -ex + +# Install QEMU +export DEBIAN_FRONTENT=noninteractive +apt-get -qy update +apt-get -qy install --no-install-recommends qemu-system-aarch64 \ + u-boot-qemu + +# XXX Silly workaround to get the following QEMU command to work +cp /usr/share/qemu/pvh.bin /usr/share/qemu/efi-virtio.rom +qemu-system-aarch64 \ + -machine virtualization=true \ + -cpu cortex-a57 -machine type=virt \ + -m 512 -display none \ + -machine dumpdtb=binaries/virt-gicv3.dtb + +rm -f smoke.serial +set +e +echo " booti 0x49000000 - 0x44000000" | timeout -k 1 30 qemu-system-aarch64 \ + -machine virtualization=true \ + -cpu cortex-a57 -machine type=virt \ + -m 512 -monitor none -serial stdio \ + -no-reboot \ + -device loader,file=binaries/virt-gicv3.dtb,force-raw=on,addr=0x44000000 \ + -device loader,file=binaries/xen,force-raw=on,addr=0x49000000 \ + -bios /usr/lib/u-boot/qemu_arm64/u-boot.bin |& tee smoke.serial + +set -e +grep -q 'LOADING DOMAIN 0' smoke.serial || exit 1 +exit 0 From patchwork Wed Nov 25 04:27:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 11930353 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-24.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8857C63798 for ; Wed, 25 Nov 2020 04:28:03 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4414120789 for ; Wed, 25 Nov 2020 04:28:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="qBoTDnXs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4414120789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.37138.69352 (Exim 4.92) (envelope-from ) id 1khmPG-0000tP-U1; Wed, 25 Nov 2020 04:27:50 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 37138.69352; Wed, 25 Nov 2020 04:27:50 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPG-0000t5-Kc; Wed, 25 Nov 2020 04:27:50 +0000 Received: by outflank-mailman (input) for mailman id 37138; Wed, 25 Nov 2020 04:27:49 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPF-0000sM-2I for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:27:49 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 184141ad-5e70-411a-aa1a-4ce283c152d9; Wed, 25 Nov 2020 04:27:48 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 54E32208C3; Wed, 25 Nov 2020 04:27:47 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPF-0000sM-2I for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:27:49 +0000 X-Inumbo-ID: 184141ad-5e70-411a-aa1a-4ce283c152d9 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 184141ad-5e70-411a-aa1a-4ce283c152d9; Wed, 25 Nov 2020 04:27:48 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 54E32208C3; Wed, 25 Nov 2020 04:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606278467; bh=5GTondIZ9x95JwAWG7VH9BFnfiLb+jzjLUoryd7uRUE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qBoTDnXszD/BJwwJaEMf+0i0ckDe7+5X3utXPvtY+j8l9e0XdtGtZ3/HEdwE1MT3O Sqns+slnNOJkeYoC65GPA46xlgqS4svuaMF4/tYj+UoJb+7vK1v97hFGwZ+18yg17i Ike0Ts/s5FLREal2Lhccl5VSMSgDFCzCQzMX8p7E= From: Stefano Stabellini To: andrew.cooper3@citrix.com, cardoe@cardoe.com, wl@xen.org Cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini Subject: [PATCH v3 02/12] automation: add dom0less to the QEMU aarch64 smoke test Date: Tue, 24 Nov 2020 20:27:35 -0800 Message-Id: <20201125042745.31986-2-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Add a trivial dom0less test: - fetch the Debian arm64 kernel and use it ad dom0/U kernel - use busybox-static to create a trivial dom0/U ramdisk - use ImageBuilder to generate the uboot boot script automatically - install and use u-boot from the Debian package to start the test - binaries are loaded from uboot via tftp Signed-off-by: Stefano Stabellini --- Changes in v3: - don't hardcode linux kernel version in testing script Changes in v2: - use the Debian kernel for testing --- automation/scripts/qemu-smoke-arm64.sh | 81 +++++++++++++++++++++++--- 1 file changed, 74 insertions(+), 7 deletions(-) diff --git a/automation/scripts/qemu-smoke-arm64.sh b/automation/scripts/qemu-smoke-arm64.sh index a7efbf8b6f..9bf4488115 100755 --- a/automation/scripts/qemu-smoke-arm64.sh +++ b/automation/scripts/qemu-smoke-arm64.sh @@ -6,27 +6,94 @@ set -ex export DEBIAN_FRONTENT=noninteractive apt-get -qy update apt-get -qy install --no-install-recommends qemu-system-aarch64 \ - u-boot-qemu + u-boot-qemu \ + u-boot-tools \ + device-tree-compiler \ + busybox-static \ + cpio + +cd binaries +apt-get download linux-image-*[0-9]-arm64 +dpkg -i --ignore-depends=initramfs-tools ./linux-image-*arm64.deb || true +cp /boot/vmlinuz-*arm64 ./Image +cd .. # XXX Silly workaround to get the following QEMU command to work cp /usr/share/qemu/pvh.bin /usr/share/qemu/efi-virtio.rom qemu-system-aarch64 \ -machine virtualization=true \ -cpu cortex-a57 -machine type=virt \ - -m 512 -display none \ + -m 1024 -display none \ -machine dumpdtb=binaries/virt-gicv3.dtb +# XXX disable pl061 to avoid Linux crash +dtc -I dtb -O dts binaries/virt-gicv3.dtb > binaries/virt-gicv3.dts +sed 's/compatible = "arm,pl061.*/status = "disabled";/g' binaries/virt-gicv3.dts > binaries/virt-gicv3-edited.dts +dtc -I dts -O dtb binaries/virt-gicv3-edited.dts > binaries/virt-gicv3.dtb + + +# Busybox Dom0 +mkdir -p initrd +mkdir -p initrd/bin +mkdir -p initrd/sbin +mkdir -p initrd/etc +mkdir -p initrd/dev +mkdir -p initrd/proc +mkdir -p initrd/sys +mkdir -p initrd/lib +mkdir -p initrd/var +mkdir -p initrd/mnt +cp /bin/busybox initrd/bin/busybox +initrd/bin/busybox --install initrd/bin +echo "#!/bin/sh + +mount -t proc proc /proc +mount -t sysfs sysfs /sys +mount -t devtmpfs devtmpfs /dev +/bin/sh" > initrd/init +chmod +x initrd/init +cd initrd +find . | cpio --create --format='newc' | gzip > ../binaries/initrd +cd .. + + +# ImageBuilder +echo 'MEMORY_START="0x40000000" +MEMORY_END="0x80000000" +DEVICE_TREE="virt-gicv3.dtb" +XEN="xen" +DOM0_KERNEL="Image" +DOM0_RAMDISK="initrd" +XEN_CMD="console=dtuart dom0_mem=512M" + +NUM_DOMUS=1 +DOMU_KERNEL[0]="Image" +DOMU_RAMDISK[0]="initrd" +DOMU_MEM[0]="256" + +LOAD_CMD="tftpb" +UBOOT_SOURCE="boot.source" +UBOOT_SCRIPT="boot.scr"' > binaries/config +rm -rf imagebuilder +git clone https://gitlab.com/ViryaOS/imagebuilder +bash imagebuilder/scripts/uboot-script-gen -t tftp -d binaries/ -c binaries/config + + +# Run the test rm -f smoke.serial set +e -echo " booti 0x49000000 - 0x44000000" | timeout -k 1 30 qemu-system-aarch64 \ +echo " virtio scan; dhcp; tftpb 0x40000000 boot.scr; source 0x40000000"| \ +timeout -k 1 240 \ +qemu-system-aarch64 \ -machine virtualization=true \ -cpu cortex-a57 -machine type=virt \ - -m 512 -monitor none -serial stdio \ + -m 1024 -monitor none -serial stdio \ + -smp 2 \ -no-reboot \ - -device loader,file=binaries/virt-gicv3.dtb,force-raw=on,addr=0x44000000 \ - -device loader,file=binaries/xen,force-raw=on,addr=0x49000000 \ + -device virtio-net-pci,netdev=n0 \ + -netdev user,id=n0,tftp=binaries \ -bios /usr/lib/u-boot/qemu_arm64/u-boot.bin |& tee smoke.serial set -e -grep -q 'LOADING DOMAIN 0' smoke.serial || exit 1 +(grep -q "^BusyBox" smoke.serial && grep -q "DOM1: BusyBox" smoke.serial) || exit 1 exit 0 From patchwork Wed Nov 25 04:27:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 11930347 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8B9FC63798 for ; Wed, 25 Nov 2020 04:27:58 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 5246320789 for ; Wed, 25 Nov 2020 04:27:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="1wZDPkPH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5246320789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.37139.69364 (Exim 4.92) (envelope-from ) id 1khmPH-0000vi-Ki; Wed, 25 Nov 2020 04:27:51 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 37139.69364; Wed, 25 Nov 2020 04:27:51 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPH-0000uy-BE; Wed, 25 Nov 2020 04:27:51 +0000 Received: by outflank-mailman (input) for mailman id 37139; Wed, 25 Nov 2020 04:27:49 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPF-0000sA-Gi for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:27:49 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 5d84af08-07af-408b-9549-f1d41c7a8398; Wed, 25 Nov 2020 04:27:49 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DAA0120B80; Wed, 25 Nov 2020 04:27:47 +0000 (UTC) Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPF-0000sA-Gi for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:27:49 +0000 X-Inumbo-ID: 5d84af08-07af-408b-9549-f1d41c7a8398 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 5d84af08-07af-408b-9549-f1d41c7a8398; Wed, 25 Nov 2020 04:27:49 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DAA0120B80; Wed, 25 Nov 2020 04:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606278468; bh=CSa1gG/RT/f6nzrrY+UMikNynTa9ntaJ3vNiNTwvCr8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1wZDPkPH+OUlmjAMm+FNgrz4aWEbP6zSYC8XHfBIRR2qqUb7tBS7kyTCCYRAHlWfL xE0iP4zVKTyOKHErM/NCtGCTRgFeSLPgKcOcKFI0X/3pamr/+wQQ+I1CDWrXx9we11 wQMkDCDnwOOGe8xxvmLqRqUpWNI7hsM3MS+7hqy0= From: Stefano Stabellini To: andrew.cooper3@citrix.com, cardoe@cardoe.com, wl@xen.org Cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini Subject: [PATCH v3 03/12] automation: pass --disable-werror for QEMUU builds if libc is musl Date: Tue, 24 Nov 2020 20:27:36 -0800 Message-Id: <20201125042745.31986-3-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: QEMU upstream builds with warnings when libc is musl: #warning redirecting incorrect #include to Disable -Werror by passing --disable-werror to the QEMUU config script if libc is musl. Signed-off-by: Stefano Stabellini --- automation/scripts/build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/automation/scripts/build b/automation/scripts/build index 7038e5eb50..3fb2fe134c 100755 --- a/automation/scripts/build +++ b/automation/scripts/build @@ -28,6 +28,11 @@ if [[ "${CC}" == "clang"* ]]; then cfgargs+=("--disable-stubdom") fi +# disable --disable-werror for QEMUU when building with MUSL +if ! test -z "$(ldd /bin/ls|grep musl|head -1)"; then + cfgargs+=("--with-extra-qemuu-configure-args=\"--disable-werror\"") +fi + # Qemu requires Python 3.5 or later if ! type python3 || python3 -c "import sys; res = sys.version_info < (3, 5); exit(not(res))"; then cfgargs+=("--with-system-qemu=/bin/false") From patchwork Wed Nov 25 04:27:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 11930351 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C473DC5519F for ; Wed, 25 Nov 2020 04:28:02 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4C83520789 for ; Wed, 25 Nov 2020 04:28:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="jbJ50Q9B" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4C83520789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.37141.69385 (Exim 4.92) (envelope-from ) id 1khmPL-00011H-DX; Wed, 25 Nov 2020 04:27:55 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 37141.69385; Wed, 25 Nov 2020 04:27:55 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPL-00010s-59; Wed, 25 Nov 2020 04:27:55 +0000 Received: by outflank-mailman (input) for mailman id 37141; Wed, 25 Nov 2020 04:27:54 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPJ-0000sM-W3 for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:27:54 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 27dba9ea-9baf-49e2-9528-4bfb9ac189fd; Wed, 25 Nov 2020 04:27:49 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6893320DD4; Wed, 25 Nov 2020 04:27:48 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPJ-0000sM-W3 for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:27:54 +0000 X-Inumbo-ID: 27dba9ea-9baf-49e2-9528-4bfb9ac189fd Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 27dba9ea-9baf-49e2-9528-4bfb9ac189fd; Wed, 25 Nov 2020 04:27:49 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6893320DD4; Wed, 25 Nov 2020 04:27:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606278468; bh=bKnR+2zoa7sLbY03YwLsVroT6DJBBetQKM/lBzR8Y7g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jbJ50Q9BcJMOAqVD8UM9dUWPmr8HUr8PANaxbNseQmsJp2lwbjhsHeUCfpZWwQlYs NfzoMQDRKJqfBf+aIzUXJSCedsmbxjpZb6MN8UwZYF3p97nDjOv2qWK4X615iOA7LQ x7ZBQXftuWnwcztJre2aO3ZTCJAwMrTEaogbp+gI= From: Stefano Stabellini To: andrew.cooper3@citrix.com, cardoe@cardoe.com, wl@xen.org Cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini Subject: [PATCH v3 04/12] automation: add alpine linux 3.12 arm64 build container Date: Tue, 24 Nov 2020 20:27:37 -0800 Message-Id: <20201125042745.31986-4-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: From: Stefano Stabellini The build container will be used for a new Alpine Linux 3.12 arm64 build test. Signed-off-by: Stefano Stabellini --- .../build/alpine/3.12-arm64v8.dockerfile | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 automation/build/alpine/3.12-arm64v8.dockerfile diff --git a/automation/build/alpine/3.12-arm64v8.dockerfile b/automation/build/alpine/3.12-arm64v8.dockerfile new file mode 100644 index 0000000000..d6cdf5b200 --- /dev/null +++ b/automation/build/alpine/3.12-arm64v8.dockerfile @@ -0,0 +1,52 @@ +FROM arm64v8/alpine:3.12 +LABEL maintainer.name="The Xen Project" \ + maintainer.email="xen-devel@lists.xenproject.org" + +ENV USER root + +RUN mkdir /build +WORKDIR /build + +# build depends +RUN \ + # apk + apk update && \ + \ + # xen build deps + apk add argp-standalone && \ + apk add autoconf && \ + apk add automake && \ + apk add bash && \ + apk add curl && \ + apk add curl-dev && \ + apk add dev86 && \ + apk add dtc-dev && \ + apk add gcc && \ + apk add gettext && \ + apk add git && \ + apk add iasl && \ + apk add libaio-dev && \ + apk add libfdt && \ + apk add linux-headers && \ + apk add make && \ + apk add musl-dev && \ + apk add ncurses-dev && \ + apk add patch && \ + apk add python3-dev && \ + apk add texinfo && \ + apk add util-linux-dev && \ + apk add xz-dev && \ + apk add yajl-dev && \ + apk add zlib-dev && \ + \ + # qemu build deps + apk add bison && \ + apk add flex && \ + apk add glib-dev && \ + apk add libattr && \ + apk add libcap-ng-dev && \ + apk add pixman-dev && \ + \ + # cleanup + rm -rf /tmp/* && \ + rm -f /var/cache/apk/* From patchwork Wed Nov 25 04:27:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 11930357 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D71E9C63777 for ; Wed, 25 Nov 2020 04:28:08 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 5FEF420789 for ; Wed, 25 Nov 2020 04:28:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="ee+F27T5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5FEF420789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.37143.69403 (Exim 4.92) (envelope-from ) id 1khmPQ-0001BR-NM; Wed, 25 Nov 2020 04:28:00 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 37143.69403; Wed, 25 Nov 2020 04:28:00 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPQ-0001BF-Hu; Wed, 25 Nov 2020 04:28:00 +0000 Received: by outflank-mailman (input) for mailman id 37143; Wed, 25 Nov 2020 04:27:59 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPO-0000sM-WE for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:27:59 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 2274826e-1858-4630-8bfe-2a38e3994241; Wed, 25 Nov 2020 04:27:50 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F25882173E; Wed, 25 Nov 2020 04:27:48 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPO-0000sM-WE for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:27:59 +0000 X-Inumbo-ID: 2274826e-1858-4630-8bfe-2a38e3994241 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 2274826e-1858-4630-8bfe-2a38e3994241; Wed, 25 Nov 2020 04:27:50 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F25882173E; Wed, 25 Nov 2020 04:27:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606278469; bh=Q5fWCGGnyKXj094ENtB0LrY+WONobsflgJQPten0+30=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ee+F27T5pD2L/x9ZrPJmxgxgXUcF+s+eYZ7j00H7vLHEnVNkRAHlTnCbVFbk11vCt KWmyRgPl1OgVUlu4hO3I26dzZBe6mROx/DvC9q7z+UvwglH+gFHDXAds0K/+B/PFaH qjtm+Z43Yrg8CGo2iI/ceLG5P17dW6GCu+qmer9E= From: Stefano Stabellini To: andrew.cooper3@citrix.com, cardoe@cardoe.com, wl@xen.org Cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini Subject: [PATCH v3 05/12] automation: add alpine linux arm64 build test Date: Tue, 24 Nov 2020 20:27:38 -0800 Message-Id: <20201125042745.31986-5-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: From: Stefano Stabellini Based on the arm64 3.12 build container Signed-off-by: Stefano Stabellini --- automation/gitlab-ci/build.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml index 4bd1cfc1c0..fa38c39d6a 100644 --- a/automation/gitlab-ci/build.yaml +++ b/automation/gitlab-ci/build.yaml @@ -434,3 +434,12 @@ debian-unstable-gcc-debug-arm64-randconfig: CONTAINER: debian:unstable-arm64v8 RANDCONFIG: y +alpine-3.12-gcc-arm64: + extends: .gcc-arm64-build + variables: + CONTAINER: alpine:3.12-arm64v8 + +alpine-3.12-gcc-debug-arm64: + extends: .gcc-arm64-build-debug + variables: + CONTAINER: alpine:3.12-arm64v8 From patchwork Wed Nov 25 04:27:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 11930359 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A056C63777 for ; Wed, 25 Nov 2020 04:28:15 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D14DF20789 for ; Wed, 25 Nov 2020 04:28:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZK8FpxKj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D14DF20789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.37145.69415 (Exim 4.92) (envelope-from ) id 1khmPW-0001KH-2P; Wed, 25 Nov 2020 04:28:06 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 37145.69415; Wed, 25 Nov 2020 04:28:06 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPV-0001K5-UA; Wed, 25 Nov 2020 04:28:05 +0000 Received: by outflank-mailman (input) for mailman id 37145; Wed, 25 Nov 2020 04:28:04 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPU-0000sM-08 for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:28:04 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 976f4d4b-5100-479f-9da3-48865daf123c; Wed, 25 Nov 2020 04:27:50 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 755D0208C3; Wed, 25 Nov 2020 04:27:49 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPU-0000sM-08 for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:28:04 +0000 X-Inumbo-ID: 976f4d4b-5100-479f-9da3-48865daf123c Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 976f4d4b-5100-479f-9da3-48865daf123c; Wed, 25 Nov 2020 04:27:50 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 755D0208C3; Wed, 25 Nov 2020 04:27:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606278469; bh=KQsbwCY1k0XuZYdXiSfsiaplbcxxxjQeQ4+gIm03Bo4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZK8FpxKj+Nqy2ZUpuKcyjEWsJhA7/6x2cIFxmPOFR3pvJdjkxWfwe3vl91BkSVCKa eKM90XH1uBWGtjW0o8bIu6cWh4qpAVd2V+RJdwRVVtNiGvb5vbz7fyUpubYXt6Fdoe l7Ie98tR0bVFYWE5JXyMlk9h5TlzScf0r4kr2LUI= From: Stefano Stabellini To: andrew.cooper3@citrix.com, cardoe@cardoe.com, wl@xen.org Cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini Subject: [PATCH v3 06/12] automation: add alpine linux 3.12 x86 build container Date: Tue, 24 Nov 2020 20:27:39 -0800 Message-Id: <20201125042745.31986-6-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Signed-off-by: Stefano Stabellini --- automation/build/alpine/3.12.dockerfile | 52 +++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 automation/build/alpine/3.12.dockerfile diff --git a/automation/build/alpine/3.12.dockerfile b/automation/build/alpine/3.12.dockerfile new file mode 100644 index 0000000000..2c02417ee6 --- /dev/null +++ b/automation/build/alpine/3.12.dockerfile @@ -0,0 +1,52 @@ +FROM alpine:3.12 +LABEL maintainer.name="The Xen Project" \ + maintainer.email="xen-devel@lists.xenproject.org" + +ENV USER root + +RUN mkdir /build +WORKDIR /build + +# build depends +RUN \ + # apk + apk update && \ + \ + # xen build deps + apk add argp-standalone && \ + apk add autoconf && \ + apk add automake && \ + apk add bash && \ + apk add curl && \ + apk add curl-dev && \ + apk add dev86 && \ + apk add gcc && \ + apk add clang && \ + apk add gettext && \ + apk add git && \ + apk add iasl && \ + apk add libaio-dev && \ + apk add linux-headers && \ + apk add make && \ + apk add musl-dev && \ + apk add libc6-compat && \ + apk add ncurses-dev && \ + apk add patch && \ + apk add python3-dev && \ + apk add texinfo && \ + apk add util-linux-dev && \ + apk add xz-dev && \ + apk add yajl-dev && \ + apk add zlib-dev && \ + \ + # qemu build deps + apk add bison && \ + apk add flex && \ + apk add glib-dev && \ + apk add libattr && \ + apk add libcap-ng-dev && \ + apk add pixman-dev && \ + \ + # cleanup + rm -rf /tmp/* && \ + rm -f /var/cache/apk/* From patchwork Wed Nov 25 04:27:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 11930361 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-24.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80D1EC63777 for ; Wed, 25 Nov 2020 04:28:18 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 1B6C220789 for ; Wed, 25 Nov 2020 04:28:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="O0KJ2FeI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1B6C220789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.37156.69427 (Exim 4.92) (envelope-from ) id 1khmPa-0001Sh-JC; Wed, 25 Nov 2020 04:28:10 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 37156.69427; Wed, 25 Nov 2020 04:28:10 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPa-0001SQ-Ai; Wed, 25 Nov 2020 04:28:10 +0000 Received: by outflank-mailman (input) for mailman id 37156; Wed, 25 Nov 2020 04:28:09 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPZ-0000sM-0O for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:28:09 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 1e39ba1c-edf1-48c4-ab82-3e2147a8fe83; Wed, 25 Nov 2020 04:27:51 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 04CEA217A0; Wed, 25 Nov 2020 04:27:49 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPZ-0000sM-0O for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:28:09 +0000 X-Inumbo-ID: 1e39ba1c-edf1-48c4-ab82-3e2147a8fe83 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 1e39ba1c-edf1-48c4-ab82-3e2147a8fe83; Wed, 25 Nov 2020 04:27:51 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 04CEA217A0; Wed, 25 Nov 2020 04:27:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606278470; bh=4BFMlUkVsDnSoLgmGArV/mCzcDdkcQd+lAhVA8u7LRs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O0KJ2FeIWigon+n9L5r4/5UqYJVS9ALNLDtJtAYnxQddJQ7COG/nZHQKkow/ReJHJ RjfEP3GZ/aXwveCH5Nk+/fokZE28D5Ya8C4yUFDR671G5gutvRoDyNrg9pVUARoLEF vUN1cvvqYJBQRMWj5LAzzP2CsglE8Ka9SgdT7r84= From: Stefano Stabellini To: andrew.cooper3@citrix.com, cardoe@cardoe.com, wl@xen.org Cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini Subject: [PATCH v3 07/12] automation: add alpine linux x86 build jobs Date: Tue, 24 Nov 2020 20:27:40 -0800 Message-Id: <20201125042745.31986-7-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Allow failure for these jobs. Currently they fail because hvmloader doesn't build with musl. The failures don't block the pipeline. Signed-off-by: Stefano Stabellini --- This patch is probably required: https://github.com/alpinelinux/aports/blob/master/main/xen/musl-hvmloader-fix-stdint.patch --- automation/gitlab-ci/build.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml index fa38c39d6a..c48c0f3d66 100644 --- a/automation/gitlab-ci/build.yaml +++ b/automation/gitlab-ci/build.yaml @@ -410,6 +410,31 @@ opensuse-leap-gcc-debug: variables: CONTAINER: suse:opensuse-leap +alpine-3.12-gcc: + extends: .gcc-x86-64-build + variables: + CONTAINER: alpine:3.12 + allow_failure: true + +alpine-3.12-gcc-debug: + extends: .gcc-x86-64-build-debug + variables: + CONTAINER: alpine:3.12 + allow_failure: true + +alpine-3.12-clang: + extends: .gcc-x86-64-build + variables: + CONTAINER: alpine:3.12 + allow_failure: true + +alpine-3.12-clang-debug: + extends: .gcc-x86-64-build-debug + variables: + CONTAINER: alpine:3.12 + allow_failure: true + + # Arm builds debian-unstable-gcc-arm64: From patchwork Wed Nov 25 04:27:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 11930363 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-24.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D8B4C63777 for ; Wed, 25 Nov 2020 04:28:27 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B898A20789 for ; Wed, 25 Nov 2020 04:28:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="Zdoi+xos" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B898A20789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.37166.69439 (Exim 4.92) (envelope-from ) id 1khmPf-0001b1-T5; Wed, 25 Nov 2020 04:28:15 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 37166.69439; Wed, 25 Nov 2020 04:28:15 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPf-0001ar-PA; Wed, 25 Nov 2020 04:28:15 +0000 Received: by outflank-mailman (input) for mailman id 37166; Wed, 25 Nov 2020 04:28:14 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPe-0000sM-0b for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:28:14 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 9cbb3747-beb1-43fc-882f-745bfb556278; Wed, 25 Nov 2020 04:27:51 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 89EB621D1A; Wed, 25 Nov 2020 04:27:50 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPe-0000sM-0b for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:28:14 +0000 X-Inumbo-ID: 9cbb3747-beb1-43fc-882f-745bfb556278 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 9cbb3747-beb1-43fc-882f-745bfb556278; Wed, 25 Nov 2020 04:27:51 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 89EB621D1A; Wed, 25 Nov 2020 04:27:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606278470; bh=QJUK/kTkebPG1QQfKh+8CPie3i+NnzX9DzdIZukokQQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zdoi+xosVFK49d9uPE/T101CrMyOcvfwEy1p1imwULd4fLpROFxSNjG7/5UEsNz5S qtqLk2FrNBsp/WP/nRTV/HWYvEBw/La1Q13Pb9BOHuHmZsekCfiAwCUfacQwG8dnGG njqbBPbrBhb58qgKWR0qeSMAr8QEHeGE+V0wTdko= From: Stefano Stabellini To: andrew.cooper3@citrix.com, cardoe@cardoe.com, wl@xen.org Cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini Subject: [PATCH v3 08/12] automation: add tests artifacts Date: Tue, 24 Nov 2020 20:27:41 -0800 Message-Id: <20201125042745.31986-8-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Some tests (soon to come) will require pre-built binaries to run, such as the Linux kernel binary. We don't want to rebuild the Linux kernel for each gitlab-ci run: these builds should not be added to the current list of build jobs. Instead, create additional containers that today are built and uploaded manually, but could be re-built automatically. The containers build the required binarires during the "docker build" step and store them inside the container itself. gitlab-ci will be able to fetch these pre-built binaries during the regular test runs, saving cycles. Add two tests artifacts containers: - one to build the Linux kernel ARM64 - one to create an Alpine Linux ARM64 rootfs for Dom0 Signed-off-by: Stefano Stabellini --- automation/tests-artifacts/Makefile | 19 ++++++ .../alpine/3.12-arm64v8.dockerfile | 67 +++++++++++++++++++ .../kernel/5.9.9-arm64v8.dockerfile | 34 ++++++++++ 3 files changed, 120 insertions(+) create mode 100644 automation/tests-artifacts/Makefile create mode 100644 automation/tests-artifacts/alpine/3.12-arm64v8.dockerfile create mode 100644 automation/tests-artifacts/kernel/5.9.9-arm64v8.dockerfile diff --git a/automation/tests-artifacts/Makefile b/automation/tests-artifacts/Makefile new file mode 100644 index 0000000000..8ca71b78ad --- /dev/null +++ b/automation/tests-artifacts/Makefile @@ -0,0 +1,19 @@ + +# the base of where these containers will appear +REGISTRY := registry.gitlab.com/xen-project/xen/tests-artifacts +CONTAINERS = $(subst .dockerfile,,$(wildcard */*.dockerfile)) + +help: + @echo "Containers to build and export tests artifacts." + @echo "To build one run 'make ARTIFACT/VERSION'. Available containers:" + @$(foreach file,$(sort $(CONTAINERS)),echo ${file};) + @echo "To push container builds, set the env var PUSH" + +%: %.dockerfile ## Builds containers + docker build -t $(REGISTRY)/$(@D):$(@F) -f $< $(> /etc/securetty && \ + echo "hvc0" >> /etc/securetty && \ + echo "ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100" >> /etc/inittab && \ + echo "hvc0::respawn:/sbin/getty -L hvc0 115200 vt100" >> /etc/inittab && \ + passwd -d "root" root && \ + \ + # Create rootfs + cd / && \ + tar cvzf /initrd.tar.gz bin dev etc home init lib mnt opt root sbin usr var diff --git a/automation/tests-artifacts/kernel/5.9.9-arm64v8.dockerfile b/automation/tests-artifacts/kernel/5.9.9-arm64v8.dockerfile new file mode 100644 index 0000000000..053d65a345 --- /dev/null +++ b/automation/tests-artifacts/kernel/5.9.9-arm64v8.dockerfile @@ -0,0 +1,34 @@ +FROM arm64v8/debian:unstable +LABEL maintainer.name="The Xen Project" \ + maintainer.email="xen-devel@lists.xenproject.org" + +ENV DEBIAN_FRONTEND=noninteractive +ENV LINUX_VERSION=5.9.9 +ENV USER root + +RUN mkdir /build +WORKDIR /build + +# build depends +RUN apt-get update && \ + apt-get --quiet --yes install \ + build-essential \ + libssl-dev \ + bc \ + curl \ + flex \ + bison \ + && \ + \ + # Build the kernel + curl -fsSLO https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-"$LINUX_VERSION".tar.xz && \ + tar xvJf linux-"$LINUX_VERSION".tar.xz && \ + cd linux-"$LINUX_VERSION" && \ + make defconfig && \ + make -j$(nproc) Image.gz && \ + cp arch/arm64/boot/Image / && \ + cd /build && \ + rm -rf linux-"$LINUX_VERSION"* && \ + apt-get autoremove -y && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/* From patchwork Wed Nov 25 04:27:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 11930355 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-24.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D560C63777 for ; Wed, 25 Nov 2020 04:28:06 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C16A020789 for ; Wed, 25 Nov 2020 04:28:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="V7Ue731Q" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C16A020789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.37140.69379 (Exim 4.92) (envelope-from ) id 1khmPK-00010B-UZ; Wed, 25 Nov 2020 04:27:54 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 37140.69379; Wed, 25 Nov 2020 04:27:54 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPK-0000zz-PI; Wed, 25 Nov 2020 04:27:54 +0000 Received: by outflank-mailman (input) for mailman id 37140; Wed, 25 Nov 2020 04:27:53 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPJ-0000sA-Hu for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:27:53 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id bcb38737-3533-4975-bab7-18c9db4864da; Wed, 25 Nov 2020 04:27:52 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1802521D40; Wed, 25 Nov 2020 04:27:51 +0000 (UTC) Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPJ-0000sA-Hu for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:27:53 +0000 X-Inumbo-ID: bcb38737-3533-4975-bab7-18c9db4864da Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id bcb38737-3533-4975-bab7-18c9db4864da; Wed, 25 Nov 2020 04:27:52 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1802521D40; Wed, 25 Nov 2020 04:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606278471; bh=RQh+Iw+5p9me1VgNkCXV0YqsNm47AcKNEZ7dpALNXQM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V7Ue731QX343pJJLJNDaVMEVtBDt1QdCJ20D7/6AV5cPlZntGBIvl2Nu6bspfWnxV HAuYghCJG/QaphnnwDDnCYJcQ3bsoIDZa01HPY6V1J+r9GNT2N+eFD9MRAkB2wiQ9C Vm6QfO8awtWnDiH/gUdUrKdcOabN/0D0Q1YJZcGA= From: Stefano Stabellini To: andrew.cooper3@citrix.com, cardoe@cardoe.com, wl@xen.org Cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini Subject: [PATCH v3 09/12] automation: make available the tests artifacts to the pipeline Date: Tue, 24 Nov 2020 20:27:42 -0800 Message-Id: <20201125042745.31986-9-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In order to make available the pre-built binaries of the automation/tests-artifacts containers to the gitlab-ci pipeline we need to export them as gitlab artifacts. To do that, we create two "fake" jobs that simply export the require binaries as artifacts and do nothing else. Signed-off-by: Stefano Stabellini --- automation/gitlab-ci/build.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml index c48c0f3d66..e5246828f8 100644 --- a/automation/gitlab-ci/build.yaml +++ b/automation/gitlab-ci/build.yaml @@ -468,3 +468,29 @@ alpine-3.12-gcc-debug-arm64: extends: .gcc-arm64-build-debug variables: CONTAINER: alpine:3.12-arm64v8 + + +# Arm test artifacts + +alpine-3.12-arm64-rootfs-export: + stage: build + image: registry.gitlab.com/xen-project/xen/tests-artifacts/alpine:3.12-arm64v8 + script: + - mkdir binaries && cp /initrd.tar.gz binaries/initrd.tar.gz + artifacts: + paths: + - binaries/initrd.tar.gz + tags: + - arm64 + +kernel-5.9.9-arm64-export: + stage: build + image: registry.gitlab.com/xen-project/xen/tests-artifacts/kernel:5.9.9-arm64v8 + script: + - mkdir binaries && cp /Image binaries/Image + artifacts: + paths: + - binaries/Image + tags: + - arm64 + From patchwork Wed Nov 25 04:27:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 11930365 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-24.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A296C63798 for ; Wed, 25 Nov 2020 04:28:29 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A254B20789 for ; Wed, 25 Nov 2020 04:28:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="vvqEJlv+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A254B20789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.37172.69451 (Exim 4.92) (envelope-from ) id 1khmPk-0001hT-HF; Wed, 25 Nov 2020 04:28:20 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 37172.69451; Wed, 25 Nov 2020 04:28:20 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPk-0001hG-Bc; Wed, 25 Nov 2020 04:28:20 +0000 Received: by outflank-mailman (input) for mailman id 37172; Wed, 25 Nov 2020 04:28:19 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPj-0000sM-0r for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:28:19 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id abf9b2c7-8f2c-4c38-9230-9998c7f079ec; Wed, 25 Nov 2020 04:27:52 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 92E7E21D46; Wed, 25 Nov 2020 04:27:51 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPj-0000sM-0r for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:28:19 +0000 X-Inumbo-ID: abf9b2c7-8f2c-4c38-9230-9998c7f079ec Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id abf9b2c7-8f2c-4c38-9230-9998c7f079ec; Wed, 25 Nov 2020 04:27:52 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 92E7E21D46; Wed, 25 Nov 2020 04:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606278471; bh=78C8JPAxWzx+2hjJoT6vrfTzB1NiGDxd/5tqEyKfQ3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vvqEJlv+cqSCpmW9YC0oKgxLCKH13eKDoly9WpMFUxZZXSpNlUyu3Iu2yqd50IcWn XvFbhFpLFwS50nggbNEi8L9uraCwmfqWC5jEG3EJOFin2U7gqRGnhL25lXaosH9u3M VBrbhGnzLSXh79THhEYXPu/VSerG985scjsruWEY= From: Stefano Stabellini To: andrew.cooper3@citrix.com, cardoe@cardoe.com, wl@xen.org Cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini Subject: [PATCH v3 10/12] automation: create an alpine linux arm64 test job Date: Tue, 24 Nov 2020 20:27:43 -0800 Message-Id: <20201125042745.31986-10-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Create a test job that starts Xen and Dom0 on QEMU based on the alpine linux rootfs. Use the Linux kernel and rootfs from the tests-artifacts containers. Add the Xen tools binaries from the Alpine Linux build job. Signed-off-by: Stefano Stabellini --- automation/gitlab-ci/test.yaml | 24 +++++++ automation/scripts/build | 1 + automation/scripts/qemu-alpine-arm64.sh | 84 +++++++++++++++++++++++++ 3 files changed, 109 insertions(+) create mode 100755 automation/scripts/qemu-alpine-arm64.sh diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml index 35346e3f6e..a291538d68 100644 --- a/automation/gitlab-ci/test.yaml +++ b/automation/gitlab-ci/test.yaml @@ -22,6 +22,30 @@ build-each-commit-gcc: - /^coverity-tested\/.*/ - /^stable-.*/ +qemu-alpine-arm64-gcc: + stage: test + image: registry.gitlab.com/xen-project/xen/${CONTAINER} + variables: + CONTAINER: debian:unstable-arm64v8 + script: + - ./automation/scripts/qemu-alpine-arm64.sh 2>&1 | tee qemu-smoke-arm64.log + dependencies: + - alpine-3.12-gcc-arm64 + - alpine-3.12-arm64-rootfs-export + - kernel-5.9.9-arm64-export + artifacts: + paths: + - smoke.serial + - '*.log' + when: always + tags: + - arm64 + except: + - master + - smoke + - /^coverity-tested\/.*/ + - /^stable-.*/ + qemu-smoke-arm64-gcc: stage: test image: registry.gitlab.com/xen-project/xen/${CONTAINER} diff --git a/automation/scripts/build b/automation/scripts/build index 3fb2fe134c..0e1ebd60f2 100755 --- a/automation/scripts/build +++ b/automation/scripts/build @@ -52,6 +52,7 @@ cp xen/.config xen-config mkdir binaries if [[ "${XEN_TARGET_ARCH}" != "x86_32" ]]; then cp xen/xen binaries/xen + cp -r dist binaries/ fi # Build all the configs we care about diff --git a/automation/scripts/qemu-alpine-arm64.sh b/automation/scripts/qemu-alpine-arm64.sh new file mode 100755 index 0000000000..7d1eb7d1b6 --- /dev/null +++ b/automation/scripts/qemu-alpine-arm64.sh @@ -0,0 +1,84 @@ +#!/bin/bash + +set -ex + +apt-get -qy update +apt-get -qy install --no-install-recommends qemu-system-aarch64 \ + u-boot-qemu \ + u-boot-tools \ + device-tree-compiler \ + cpio \ + curl + +mkdir -p binaries/rootfs +cd binaries/rootfs +tar xvzf ../initrd.tar.gz +mkdir proc +mkdir run +mkdir srv +mkdir sys +rm var/run +cp -ar ../dist/install/* . +echo "#!/bin/bash + +export LD_LIBRARY_PATH=/usr/local/lib +bash /etc/init.d/xencommons start + +xl list + +" > etc/local.d/xen.start +chmod +x etc/local.d/xen.start +echo "rc_verbose=yes" >> etc/rc.conf +find . |cpio -H newc -o|gzip > ../xen-rootfs.cpio.gz +cd ../.. + +# XXX Silly workaround to get the following QEMU command to work +cp /usr/share/qemu/pvh.bin /usr/share/qemu/efi-virtio.rom +qemu-system-aarch64 \ + -machine virtualization=true \ + -cpu cortex-a57 -machine type=virt \ + -m 1024 -display none \ + -machine dumpdtb=binaries/virt-gicv3.dtb +# XXX disable pl061 to avoid Linux crash +dtc -I dtb -O dts binaries/virt-gicv3.dtb > binaries/virt-gicv3.dts +sed 's/compatible = "arm,pl061.*/status = "disabled";/g' binaries/virt-gicv3.dts > binaries/virt-gicv3-edited.dts +dtc -I dts -O dtb binaries/virt-gicv3-edited.dts > binaries/virt-gicv3.dtb + +# ImageBuilder +echo 'MEMORY_START="0x40000000" +MEMORY_END="0x80000000" + +DEVICE_TREE="virt-gicv3.dtb" +XEN="xen" +DOM0_KERNEL="Image" +DOM0_RAMDISK="xen-rootfs.cpio.gz" +XEN_CMD="console=dtuart dom0_mem=1024M" + +NUM_DOMUS=0 + +LOAD_CMD="tftpb" +UBOOT_SOURCE="boot.source" +UBOOT_SCRIPT="boot.scr"' > binaries/config +rm -rf imagebuilder +git clone https://gitlab.com/ViryaOS/imagebuilder +bash imagebuilder/scripts/uboot-script-gen -t tftp -d binaries/ -c binaries/config + + +# Run the test +rm -f smoke.serial +set +e +echo " virtio scan; dhcp; tftpb 0x40000000 boot.scr; source 0x40000000"| \ +timeout -k 1 480 \ +qemu-system-aarch64 \ + -machine virtualization=true \ + -cpu cortex-a57 -machine type=virt \ + -m 2048 -monitor none -serial stdio \ + -smp 2 \ + -no-reboot \ + -device virtio-net-pci,netdev=n0 \ + -netdev user,id=n0,tftp=binaries \ + -bios /usr/lib/u-boot/qemu_arm64/u-boot.bin |& tee smoke.serial + +set -e +grep -q "Domain-0" smoke.serial || exit 1 +exit 0 From patchwork Wed Nov 25 04:27:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 11930367 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED03EC63777 for ; Wed, 25 Nov 2020 04:28:35 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9368620789 for ; Wed, 25 Nov 2020 04:28:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="j+9Cxijp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9368620789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.37179.69463 (Exim 4.92) (envelope-from ) id 1khmPp-0001oM-UT; Wed, 25 Nov 2020 04:28:25 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 37179.69463; Wed, 25 Nov 2020 04:28:25 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPp-0001o9-Pb; Wed, 25 Nov 2020 04:28:25 +0000 Received: by outflank-mailman (input) for mailman id 37179; Wed, 25 Nov 2020 04:28:24 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPo-0000sM-0t for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:28:24 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 3f610be8-a076-4b62-aa4f-4b94e3612db5; Wed, 25 Nov 2020 04:27:53 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1BD122173E; Wed, 25 Nov 2020 04:27:52 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPo-0000sM-0t for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:28:24 +0000 X-Inumbo-ID: 3f610be8-a076-4b62-aa4f-4b94e3612db5 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 3f610be8-a076-4b62-aa4f-4b94e3612db5; Wed, 25 Nov 2020 04:27:53 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1BD122173E; Wed, 25 Nov 2020 04:27:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606278472; bh=Ue92qEDF50KpJfvuNM6M4wzRTD3agPXEU66URBcepBc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j+9CxijplI5rPgATSgIdxhc7CsWdTP3/RcYTwsQnz6O9K4WwaxX4XJywdKxbPqPF+ Zv7A1PzIRAiVvgUP3i25rhO2fQyiarakXi91gV6Il4gmlC6NCNWG/xz5sW//VzlOeg OjH45tXb5hjdfFbIyiVUluBpt131nKIAN+65g1e4= From: Stefano Stabellini To: andrew.cooper3@citrix.com, cardoe@cardoe.com, wl@xen.org Cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini Subject: [PATCH v3 11/12] automation: use the tests-artifacts kernel for qemu-smoke-arm64-gcc Date: Tue, 24 Nov 2020 20:27:44 -0800 Message-Id: <20201125042745.31986-11-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Use the tests-artifacts kernel, instead of the Debian kernel, for the qemu-smoke-arm64-gcc job. Signed-off-by: Stefano Stabellini --- automation/gitlab-ci/test.yaml | 1 + automation/scripts/qemu-smoke-arm64.sh | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml index a291538d68..9448651187 100644 --- a/automation/gitlab-ci/test.yaml +++ b/automation/gitlab-ci/test.yaml @@ -55,6 +55,7 @@ qemu-smoke-arm64-gcc: - ./automation/scripts/qemu-smoke-arm64.sh 2>&1 | tee qemu-smoke-arm64.log dependencies: - debian-unstable-gcc-arm64 + - kernel-5.9.9-arm64-export artifacts: paths: - smoke.serial diff --git a/automation/scripts/qemu-smoke-arm64.sh b/automation/scripts/qemu-smoke-arm64.sh index 9bf4488115..d614227f0a 100755 --- a/automation/scripts/qemu-smoke-arm64.sh +++ b/automation/scripts/qemu-smoke-arm64.sh @@ -12,12 +12,6 @@ apt-get -qy install --no-install-recommends qemu-system-aarch64 \ busybox-static \ cpio -cd binaries -apt-get download linux-image-*[0-9]-arm64 -dpkg -i --ignore-depends=initramfs-tools ./linux-image-*arm64.deb || true -cp /boot/vmlinuz-*arm64 ./Image -cd .. - # XXX Silly workaround to get the following QEMU command to work cp /usr/share/qemu/pvh.bin /usr/share/qemu/efi-virtio.rom qemu-system-aarch64 \ From patchwork Wed Nov 25 04:27:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 11930369 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 124FAC5519F for ; Wed, 25 Nov 2020 04:28:38 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9D72820789 for ; Wed, 25 Nov 2020 04:28:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="QvEmcM+c" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9D72820789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.37184.69475 (Exim 4.92) (envelope-from ) id 1khmPu-0001ty-9D; Wed, 25 Nov 2020 04:28:30 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 37184.69475; Wed, 25 Nov 2020 04:28:30 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPu-0001to-66; Wed, 25 Nov 2020 04:28:30 +0000 Received: by outflank-mailman (input) for mailman id 37184; Wed, 25 Nov 2020 04:28:29 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPt-0000sM-1D for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:28:29 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 2735ef72-28c5-4302-9bb0-19c8cb949484; Wed, 25 Nov 2020 04:27:53 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9E25621D7A; Wed, 25 Nov 2020 04:27:52 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khmPt-0000sM-1D for xen-devel@lists.xenproject.org; Wed, 25 Nov 2020 04:28:29 +0000 X-Inumbo-ID: 2735ef72-28c5-4302-9bb0-19c8cb949484 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 2735ef72-28c5-4302-9bb0-19c8cb949484; Wed, 25 Nov 2020 04:27:53 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.hsd1.ca.comcast.net (c-24-130-65-46.hsd1.ca.comcast.net [24.130.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9E25621D7A; Wed, 25 Nov 2020 04:27:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606278472; bh=BsN+MdGSKW1XgXXksWV5TK4XWZsbUTOQRZGpT/TJoLk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QvEmcM+cAnFDgFRTLrutIBjyVHt8PnS3FU8WH2usO8zBQ+Zf7Rmd5I8kN7TMma/cr /bWgWrb5p0MZHsOYegmtDqu3zvAVSksQyD9URIMzMummurZfyQbi+kD1N9X1SCQ0gd x0Zdx8UMiFsxo0ELEUVptNiLB15v0DoVLRawjamw= From: Stefano Stabellini To: andrew.cooper3@citrix.com, cardoe@cardoe.com, wl@xen.org Cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini Subject: [PATCH v3 12/12] automation: add domU creation to dom0 alpine linux test Date: Tue, 24 Nov 2020 20:27:45 -0800 Message-Id: <20201125042745.31986-12-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Add a trivial Busybox based domU. Signed-off-by: Stefano Stabellini --- automation/scripts/qemu-alpine-arm64.sh | 47 ++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 5 deletions(-) diff --git a/automation/scripts/qemu-alpine-arm64.sh b/automation/scripts/qemu-alpine-arm64.sh index 7d1eb7d1b6..bd8965e6f1 100755 --- a/automation/scripts/qemu-alpine-arm64.sh +++ b/automation/scripts/qemu-alpine-arm64.sh @@ -8,10 +8,36 @@ apt-get -qy install --no-install-recommends qemu-system-aarch64 \ u-boot-tools \ device-tree-compiler \ cpio \ - curl + curl \ + busybox-static -mkdir -p binaries/rootfs -cd binaries/rootfs +# DomU Busybox +cd binaries +mkdir -p initrd +mkdir -p initrd/bin +mkdir -p initrd/sbin +mkdir -p initrd/etc +mkdir -p initrd/dev +mkdir -p initrd/proc +mkdir -p initrd/sys +mkdir -p initrd/lib +mkdir -p initrd/var +mkdir -p initrd/mnt +cp /bin/busybox initrd/bin/busybox +initrd/bin/busybox --install initrd/bin +echo "#!/bin/sh + +mount -t proc proc /proc +mount -t sysfs sysfs /sys +mount -t devtmpfs devtmpfs /dev +/bin/sh" > initrd/init +chmod +x initrd/init +cd initrd +find . | cpio --create --format='newc' | gzip > ../initrd.cpio.gz +cd .. + +mkdir -p rootfs +cd rootfs tar xvzf ../initrd.tar.gz mkdir proc mkdir run @@ -19,6 +45,15 @@ mkdir srv mkdir sys rm var/run cp -ar ../dist/install/* . +mv ../initrd.cpio.gz ./root +cp ../Image ./root +echo "name=\"test\" +memory=512 +vcpus=1 +kernel=\"/root/Image\" +ramdisk=\"/root/initrd.cpio.gz\" +extra=\"console=hvc0 root=/dev/ram0 rdinit=/bin/sh\" +" > root/test.cfg echo "#!/bin/bash export LD_LIBRARY_PATH=/usr/local/lib @@ -26,6 +61,8 @@ bash /etc/init.d/xencommons start xl list +xl create -c /root/test.cfg + " > etc/local.d/xen.start chmod +x etc/local.d/xen.start echo "rc_verbose=yes" >> etc/rc.conf @@ -68,7 +105,7 @@ bash imagebuilder/scripts/uboot-script-gen -t tftp -d binaries/ -c binaries/conf rm -f smoke.serial set +e echo " virtio scan; dhcp; tftpb 0x40000000 boot.scr; source 0x40000000"| \ -timeout -k 1 480 \ +timeout -k 1 720 \ qemu-system-aarch64 \ -machine virtualization=true \ -cpu cortex-a57 -machine type=virt \ @@ -80,5 +117,5 @@ qemu-system-aarch64 \ -bios /usr/lib/u-boot/qemu_arm64/u-boot.bin |& tee smoke.serial set -e -grep -q "Domain-0" smoke.serial || exit 1 +(grep -q "Domain-0" smoke.serial && grep -q "BusyBox" smoke.serial) || exit 1 exit 0