From nobody Fri May 3 12:09:08 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1659984019; cv=none; d=zohomail.com; s=zohoarc; b=iejsYAni+abVWQqREEA8pRzQykhaQojJKyhey/pvQBTBXPJkwvQf/lKyxl4eYY7X23Ilc/I04f9LgpJEPY55YeO3UQYy2KCqDsG2rWud11PIogjViFkOGTvxBeezPRaTu7iSBK6PK56m4I/LAJ+9V7qYeQkQPu6TdOfpnXGweSo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1659984019; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=pmYnYXaiATMWy4qWVpvV+VyEhrge4cny24Q8a2VB19A=; b=XCP2eqtewvoHxpoWTEN9t2vUb50040EAnCFIeZfMGeHZ8dj8XSnhxH5QLM3p51LimTAnBbkE5tyFyap8FW4skAxDN8LxsZrm3PWf4DkcP4jwV2OMNfuUWYrxa8NL6t26VnrXOgvbeZAjwMv7n84K8XwJSrDWu17qsWYUoVOi+xo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1659984019531214.43351550792067; Mon, 8 Aug 2022 11:40:19 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.382541.617496 (Exim 4.92) (envelope-from ) id 1oL7fV-00058w-26; Mon, 08 Aug 2022 18:40:01 +0000 Received: by outflank-mailman (output) from mailman id 382541.617496; Mon, 08 Aug 2022 18:40:01 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oL7fU-00058l-Ul; Mon, 08 Aug 2022 18:40:00 +0000 Received: by outflank-mailman (input) for mailman id 382541; Mon, 08 Aug 2022 18:40:00 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oL7fU-0004sh-3x for xen-devel@lists.xenproject.org; Mon, 08 Aug 2022 18:40:00 +0000 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [2a00:1450:4864:20::632]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 81664ca1-1749-11ed-bd2e-47488cf2e6aa; Mon, 08 Aug 2022 20:39:59 +0200 (CEST) Received: by mail-ej1-x632.google.com with SMTP id y13so18092645ejp.13 for ; Mon, 08 Aug 2022 11:39:59 -0700 (PDT) Received: from uni.. ([2a02:587:ac16:4a00:f2e5:15e2:30fb:8a7e]) by smtp.googlemail.com with ESMTPSA id c16-20020aa7df10000000b0043cf2e0ce1csm4915221edy.48.2022.08.08.11.39.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 11:39:58 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: 81664ca1-1749-11ed-bd2e-47488cf2e6aa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=pmYnYXaiATMWy4qWVpvV+VyEhrge4cny24Q8a2VB19A=; b=F0QEKyhBbcycjypi2VCRocS89EgmXSpBpvDkBkGxnFge8vM1S6bGvWpxJZ6dfN6IaN JuB6ZQV/fdUt9UuudtsIDk+8PxuzTJxUEesmNj8qiFxwxWB4t6PgGDHCkBYd1ODxotv4 DVN7IAZZj4JN32246k9DRYfZ96fyBVRDccXJmeG80GXgj4scH9j2ffVUD5vBTgUL/uWm R6UqO1rftwgSTV+spG+a6g9tGDJD5Y/8JQZnvcJZX1T05x0hlMNlWLXheiYBaf25PYRo LN1JySDnQtHZyKVk50poiO+16WqDSwvcBbsCcQJQmBYfh+8SJEBDQoRVrnW6m9GefF/d 2RWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=pmYnYXaiATMWy4qWVpvV+VyEhrge4cny24Q8a2VB19A=; b=sbrojy6SOioPIrpRidV/Y8t+8AvkC5anA63WTaFCT8/IY5D8MSbQ3Mnlw3JpRuSzhk Okq4kEAEc1ZQq9Vld0QUyMWznl1IpAqvIBeuxuk1Mfc0jOYwrapPDiUJ6+DDomxvfvtk /s8DacIDn+HXLZopOaYrKvfOfg/WGLIidfVttzz/lftD+h8oayxzasUvmugp8dAcZY05 /OQLnvrkngmN3x0yf9rbdAgQHqNOAtmuEu3Oov6DexhMrvN3mfpaslPSe1PiLHr3m1po 4ZVHiRJStc3xuXedG+ZtFvXQGypQV4Bv8GtSOYItl9MaVzEC8vcZI6bHdv0Ty/J5F/Fv aG5g== X-Gm-Message-State: ACgBeo1PQf598fKKmLrMFi5qCc6KKV9BiqAXXvEeJBWiEBLu+8mbpFTE GC+kEeDAHXnrAOq88nJEjkaVozqWsE4= X-Google-Smtp-Source: AA6agR7yoQWy06m47LTBzo+Baes3blkewYmxwh1AG0j2GSdf4y/eEUyGHr1/ev5nhUPP4/xQZRIq6w== X-Received: by 2002:a17:907:c14:b0:730:9d15:c9bc with SMTP id ga20-20020a1709070c1400b007309d15c9bcmr14685850ejc.752.1659983998487; Mon, 08 Aug 2022 11:39:58 -0700 (PDT) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Doug Goldstein , Stefano Stabellini Subject: [PATCH v2 1/2] automation: qemu-smoke-arm64: Use kernel 5.19 Date: Mon, 8 Aug 2022 21:39:51 +0300 Message-Id: <20220808183952.1888459-2-burzalodowa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220808183952.1888459-1-burzalodowa@gmail.com> References: <20220808183952.1888459-1-burzalodowa@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1659984021680100001 Content-Type: text/plain; charset="utf-8" Use kernel 5.19 to unblock testing dom0less enhanced. This kernel version has the necessary patches for deferring xenbus probe until xenstore is fully initialized. Also, build kernel with bridging and xen netback support enabled because it will be used for testing network connectivity between Dom0 and Dom1 over a pv network interface. Signed-off-by: Xenia Ragiadakou Reviewed-by: Stefano Stabellini --- Changes in v2: - none automation/gitlab-ci/build.yaml | 11 ++++++ automation/gitlab-ci/test.yaml | 4 +- .../kernel/5.19-arm64v8.dockerfile | 37 +++++++++++++++++++ 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 automation/tests-artifacts/kernel/5.19-arm64v8.dockerfi= le diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.y= aml index 23b306e7d0..d2f75a090c 100644 --- a/automation/gitlab-ci/build.yaml +++ b/automation/gitlab-ci/build.yaml @@ -597,6 +597,17 @@ kernel-5.9.9-arm64-export: tags: - arm64 =20 +kernel-5.19-arm64-export: + extends: .test-jobs-artifact-common + image: registry.gitlab.com/xen-project/xen/tests-artifacts/kernel:5.19-a= rm64v8 + script: + - mkdir binaries && cp /Image binaries/Image + artifacts: + paths: + - binaries/Image + tags: + - arm64 + qemu-system-aarch64-6.0.0-arm64-export: extends: .test-jobs-artifact-common image: registry.gitlab.com/xen-project/xen/tests-artifacts/qemu-system-a= arch64:6.0.0-arm64v8 diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml index 6f9f64a8da..aa633fb655 100644 --- a/automation/gitlab-ci/test.yaml +++ b/automation/gitlab-ci/test.yaml @@ -70,7 +70,7 @@ qemu-smoke-arm64-gcc: - ./automation/scripts/qemu-smoke-arm64.sh 2>&1 | tee qemu-smoke-arm64= .log needs: - debian-unstable-gcc-arm64 - - kernel-5.9.9-arm64-export + - kernel-5.19-arm64-export - qemu-system-aarch64-6.0.0-arm64-export artifacts: paths: @@ -88,7 +88,7 @@ qemu-smoke-arm64-gcc-staticmem: - ./automation/scripts/qemu-smoke-arm64.sh static-mem 2>&1 | tee qemu-= smoke-arm64.log needs: - debian-unstable-gcc-arm64 - - kernel-5.9.9-arm64-export + - kernel-5.19-arm64-export - qemu-system-aarch64-6.0.0-arm64-export artifacts: paths: diff --git a/automation/tests-artifacts/kernel/5.19-arm64v8.dockerfile b/au= tomation/tests-artifacts/kernel/5.19-arm64v8.dockerfile new file mode 100644 index 0000000000..e445c1f03a --- /dev/null +++ b/automation/tests-artifacts/kernel/5.19-arm64v8.dockerfile @@ -0,0 +1,37 @@ +FROM arm64v8/debian:unstable +LABEL maintainer.name=3D"The Xen Project" \ + maintainer.email=3D"xen-devel@lists.xenproject.org" + +ENV DEBIAN_FRONTEND=3Dnoninteractive +ENV LINUX_VERSION=3D5.19 +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 && \ + sed -i 's/CONFIG_IPV6=3Dm/CONFIG_IPV6=3Dy/g' .config && \ + sed -i 's/CONFIG_BRIDGE=3Dm/CONFIG_BRIDGE=3Dy/g' .config && \ + sed -i 's/# CONFIG_XEN_NETDEV_BACKEND is not set/CONFIG_XEN_NETDEV_BAC= KEND=3Dy/g' .config && \ + 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/* --=20 2.34.1 From nobody Fri May 3 12:09:08 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1659984025; cv=none; d=zohomail.com; s=zohoarc; b=OzjRUUCyrvmHBBCWVD82NPDPDPcwAnhphxUbL2ad6WILQXsFkIk3InLX6TcMZ7JglEFdsvKN9kqt5SyIN5cUZGTt5y57AzarP3zGWWCoRaxIOYYKTQ88tUsL9t88rpO1KXOHUcEIxVFmtcr4SctjfMqizBFengZe+IxIEK5TyJQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1659984025; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=vS8/1xdGBjOCQRHZYv0ZoPfKB9E5HWaT+XENlF5TNvc=; b=ZCBP369r+uXrnIM4piRo63G0yQqpsuNBh+fYsXJJw3cZa/x9KjHlYTfLiHQJfXVc7HBFXvci4EGsgsKMf9Oj5jdGyFD9cGQyBGL1F8WJ5mkdYyWobXEsK3I77bw5MpAWCOeoR/70UdWKsB3VdLHriOaMJbYanylbArdy7flWTVg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1659984025962782.8733763018831; Mon, 8 Aug 2022 11:40:25 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.382542.617506 (Exim 4.92) (envelope-from ) id 1oL7fW-0005T5-D6; Mon, 08 Aug 2022 18:40:02 +0000 Received: by outflank-mailman (output) from mailman id 382542.617506; Mon, 08 Aug 2022 18:40:02 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oL7fW-0005Se-9K; Mon, 08 Aug 2022 18:40:02 +0000 Received: by outflank-mailman (input) for mailman id 382542; Mon, 08 Aug 2022 18:40:01 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oL7fU-0004sh-Uc for xen-devel@lists.xenproject.org; Mon, 08 Aug 2022 18:40:01 +0000 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [2a00:1450:4864:20::52d]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 820943d2-1749-11ed-bd2e-47488cf2e6aa; Mon, 08 Aug 2022 20:40:00 +0200 (CEST) Received: by mail-ed1-x52d.google.com with SMTP id t5so12397047edc.11 for ; Mon, 08 Aug 2022 11:40:00 -0700 (PDT) Received: from uni.. ([2a02:587:ac16:4a00:f2e5:15e2:30fb:8a7e]) by smtp.googlemail.com with ESMTPSA id c16-20020aa7df10000000b0043cf2e0ce1csm4915221edy.48.2022.08.08.11.39.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 11:39:59 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: 820943d2-1749-11ed-bd2e-47488cf2e6aa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=vS8/1xdGBjOCQRHZYv0ZoPfKB9E5HWaT+XENlF5TNvc=; b=JHSbjPNvFEFFmFuRnDAqp8W61wx0kUHz+ZyyC49LeQLdVimzbCP78i/NIKRq25okSI Sf0He9+PrjioAvZ79UMhKz+A/HtD/JnW9VFmZ3KiK/WERvjiYPZ7+PuEwGd/0GNDUuw8 D8U+glxBxACvnOHwHlsDdLQbIuNeyBDlzIIckmoiGu+e2rJPSSLAyM57L7OupY3i0BXw 3nJzm4mOz60AgTL0qsRJ8ywv3XOmJjLT87e32+yypN8indiPvd3vHNP/S+K9+V86OOh/ yeNVTib18IqE1UyAXfLZjL55/GJDTJ1iO+sIaV/IoZ7XkefD1dUXJ+o1S5lGsqFGDYoQ CY7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=vS8/1xdGBjOCQRHZYv0ZoPfKB9E5HWaT+XENlF5TNvc=; b=FT5RPcW7wQEb+gwD/wqRv9o0Rif0VnICQaUvT1tZZjH426b1O+WwB8PyUNgFCSnS+M LmLBFNMJOS3Ustft52UNJBgGM96qu0pAiVviqhMwyLEtnyBkN14O9FuvEBnpt6VOew06 gVQyZxF4oCotiomMpYTPLz5VSx8PXRDKz/B3CXSHkQdqjydJ+N0iCp9kRu4bRz7J0apF 4S+pu4DIbJc5mlNZw1pyzHAFGc5oI9TyvtROO7sivz5LIjZswUu4h5j+Lv+kBIhQZ6++ dJSvHJp2Y5wWadKxgWN6U596Ult+U4J5zGexvLA3ET+LUyOTGlWRz0UB4gvmZC8WXegy ohYQ== X-Gm-Message-State: ACgBeo0XcUoFv+0EHGZ9PctnrRQ/iKE228kr52hTXtRCTx5SM2ddXEqN j/HOtL2HRB6Prlb9MSSPPKJ+CjG65zI= X-Google-Smtp-Source: AA6agR7AcCIHdKI9z+HaPQuPF1Pm/ozX+EhSXcVda8DLaN8FRkXsSiI7k3sFfUBl7h8sk9qaqFE2Ow== X-Received: by 2002:a05:6402:2691:b0:43d:ba10:854b with SMTP id w17-20020a056402269100b0043dba10854bmr18064425edd.158.1659983999430; Mon, 08 Aug 2022 11:39:59 -0700 (PDT) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Doug Goldstein , Stefano Stabellini Subject: [PATCH v2 2/2] automation: qemu-smoke-arm64: Run ping test over a pv network interface Date: Mon, 8 Aug 2022 21:39:52 +0300 Message-Id: <20220808183952.1888459-3-burzalodowa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220808183952.1888459-1-burzalodowa@gmail.com> References: <20220808183952.1888459-1-burzalodowa@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1659984027605100001 Content-Type: text/plain; charset="utf-8" This patch modified the test in the following way - Dom0 is booted with an alpine linux rootfs with the xen tools. - Once Dom0 is booted, it starts xenstored, calls init-dom0less to setup the xenstore interface for the dom0less Dom1, setups the bridged network and attaches a pv network interface to Dom1. - In the meantime, Dom1 in its init script tries to assign an ip to eth0 and ping Dom0, - If Dom1 manages to ping Dom0, it prints 'passed'. Signed-off-by: Xenia Ragiadakou Reviewed-by: Stefano Stabellini --- Changes in v2: - rebase against the latest changes on staging - search for 'Welcome to Alpine Linux' instead of 'Welcome to Alpine Linux = 3.12' so that the test is not bound to a specific Alpine Linux version - do not disable dom0less enhanced in the ImageBuilder script automation/gitlab-ci/test.yaml | 6 ++-- automation/scripts/qemu-smoke-arm64.sh | 44 +++++++++++++++++++++++--- 2 files changed, 43 insertions(+), 7 deletions(-) diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml index aa633fb655..2eb6c3866e 100644 --- a/automation/gitlab-ci/test.yaml +++ b/automation/gitlab-ci/test.yaml @@ -69,7 +69,8 @@ qemu-smoke-arm64-gcc: script: - ./automation/scripts/qemu-smoke-arm64.sh 2>&1 | tee qemu-smoke-arm64= .log needs: - - debian-unstable-gcc-arm64 + - alpine-3.12-gcc-arm64 + - alpine-3.12-arm64-rootfs-export - kernel-5.19-arm64-export - qemu-system-aarch64-6.0.0-arm64-export artifacts: @@ -87,7 +88,8 @@ qemu-smoke-arm64-gcc-staticmem: script: - ./automation/scripts/qemu-smoke-arm64.sh static-mem 2>&1 | tee qemu-= smoke-arm64.log needs: - - debian-unstable-gcc-arm64 + - alpine-3.12-gcc-arm64 + - alpine-3.12-arm64-rootfs-export - kernel-5.19-arm64-export - qemu-system-aarch64-6.0.0-arm64-export artifacts: diff --git a/automation/scripts/qemu-smoke-arm64.sh b/automation/scripts/qe= mu-smoke-arm64.sh index 497dbee15f..c80d9b2aee 100755 --- a/automation/scripts/qemu-smoke-arm64.sh +++ b/automation/scripts/qemu-smoke-arm64.sh @@ -4,8 +4,13 @@ set -ex =20 test_variant=3D$1 =20 -passed=3D"BusyBox" -check=3D"" +passed=3D"passed" +check=3D" +until ifconfig eth0 192.168.0.2 && ping -c 10 192.168.0.1; do + sleep 30 +done +echo \"${passed}\" +" =20 if [[ "${test_variant}" =3D=3D "static-mem" ]]; then # Memory range that is statically allocated to DOM1 @@ -68,6 +73,36 @@ cd initrd find . | cpio --create --format=3D'newc' | gzip > ../binaries/initrd cd .. =20 +# DOM0 rootfs +mkdir -p rootfs +cd rootfs +tar xzf ../binaries/initrd.tar.gz +mkdir proc +mkdir run +mkdir srv +mkdir sys +rm var/run +cp -ar ../binaries/dist/install/* . + +echo "#!/bin/bash + +export LD_LIBRARY_PATH=3D/usr/local/lib +bash /etc/init.d/xencommons start + +/usr/local/lib/xen/bin/init-dom0less + +brctl addbr xenbr0 +brctl addif xenbr0 eth0 +ifconfig eth0 up +ifconfig xenbr0 up +ifconfig xenbr0 192.168.0.1 + +xl network-attach 1 type=3Dvif +" > etc/local.d/xen.start +chmod +x etc/local.d/xen.start +echo "rc_verbose=3Dyes" >> etc/rc.conf +find . | cpio -H newc -o | gzip > ../binaries/dom0-rootfs.cpio.gz +cd .. =20 # ImageBuilder echo 'MEMORY_START=3D"0x40000000" @@ -76,14 +111,13 @@ MEMORY_END=3D"0x80000000" DEVICE_TREE=3D"virt-gicv2.dtb" XEN=3D"xen" DOM0_KERNEL=3D"Image" -DOM0_RAMDISK=3D"initrd" +DOM0_RAMDISK=3D"dom0-rootfs.cpio.gz" XEN_CMD=3D"console=3Ddtuart dom0_mem=3D512M" =20 NUM_DOMUS=3D1 DOMU_KERNEL[0]=3D"Image" DOMU_RAMDISK[0]=3D"initrd" DOMU_MEM[0]=3D"256" -DOMU_ENHANCED[0]=3D0 =20 LOAD_CMD=3D"tftpb" UBOOT_SOURCE=3D"boot.source" @@ -114,5 +148,5 @@ timeout -k 1 240 \ -bios /usr/lib/u-boot/qemu_arm64/u-boot.bin |& tee smoke.serial =20 set -e -(grep -q "^BusyBox" smoke.serial && grep -q "DOM1: ${passed}" smoke.serial= ) || exit 1 +(grep -q "^Welcome to Alpine Linux" smoke.serial && grep -q "DOM1: ${passe= d}" smoke.serial) || exit 1 exit 0 --=20 2.34.1