From nobody Sat May 18 04:30:17 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=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1683941380; cv=none; d=zohomail.com; s=zohoarc; b=Ohfb/ZS+2Qvk2L2eNjHiJqIjA85fqsVyhFSCVpBglDLI6nTcr+dDR2Zng7ZwZH2IPAcHHOY0A8VrJzr9irHYIrBx7YaFsWLeVAnKpdS2GgbkRTPpZhFZeTWPuHeWcLmQkuXOe2qULgX1+FGXDuuLmXRrvl4l1iJFdygCPSB7YLg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683941380; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=8rfXVi2029u9kbZ10+tWFLmb//6K1WUYmhh/u0F8igo=; b=E9GGrzUSlp/IqV0GG7VEhVmPIj1zg1EVE1ZLKdJide3qs+IPgWmdXLn90GNasAn+YHPe3bhZ67DG9c7f+NaQUjGlQlaerLreQvme4mNo8ipIMp2t52ul1pUCn9XMMpUxIS2IPRRnP68UgkjR7gGyeG8F8OesZO5kVCCK1Ye6oFc= 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 1683941380300298.9755424772326; Fri, 12 May 2023 18:29:40 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.534103.831339 (Exim 4.92) (envelope-from ) id 1pxe3u-0003ZW-GV; Sat, 13 May 2023 01:28:42 +0000 Received: by outflank-mailman (output) from mailman id 534103.831339; Sat, 13 May 2023 01:28:42 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pxe3u-0003ZP-CC; Sat, 13 May 2023 01:28:42 +0000 Received: by outflank-mailman (input) for mailman id 534103; Sat, 13 May 2023 01:28:41 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pxe3t-0003ZH-99 for xen-devel@lists.xenproject.org; Sat, 13 May 2023 01:28:41 +0000 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 7c5dfdff-f12d-11ed-8611-37d641c3527e; Sat, 13 May 2023 03:28:38 +0200 (CEST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AF48761DBC; Sat, 13 May 2023 01:28:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57E94C433EF; Sat, 13 May 2023 01:28:36 +0000 (UTC) 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: 7c5dfdff-f12d-11ed-8611-37d641c3527e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683941317; bh=g8o3uwylLBuE9F/y1l0IWZ3FGGtPG9MdJzEjSOTO+vI=; h=From:To:Cc:Subject:Date:From; b=QSyBF95jB/W1K3LaL71FEECsNrzKHfyzHIMPNMJy70rk3edF5aF+K4TYWyfN9woHH 705Ujnj5CeckOLx698n/tG7jlM9vBffwHwnMqnBwfTUDR5ceIirtkszrZOnA6CZ5Ch qUyJEyg1d0dnfhmiM2Lollr1Jy84sjk7dPZBW5SkZc335+kYmyjVQKAhwM1E+8Geih 3D1a/uP0HRXMYd7EWU3BWVSWw1tDH+EDZfgaCWz2Xv0VCBFahSW0+uW5L2i1LWItHA xD4sH2PTH+SdlpVRZGN7i1vlKSs5Dp1l/7Nsd/p4C7SBzvPspKH28FZvAN3BwNDkVp aDoakhUviDg5A== From: Stefano Stabellini To: xen-devel@lists.xenproject.org Cc: marmarek@invisiblethingslab.com, cardoe@cardoe.com, sstabellini@kernel.org, Stefano Stabellini Subject: [PATCH] automation: add a Dom0 PVH test based on Qubes' runner Date: Fri, 12 May 2023 18:28:33 -0700 Message-Id: <20230513012833.3980872-1-sstabellini@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1683941382251100001 Content-Type: text/plain; charset="utf-8" From: Stefano Stabellini Straightforward Dom0 PVH test based on the existing basic Smoke test for the Qubes runner. Signed-off-by: Stefano Stabellini --- automation/gitlab-ci/test.yaml | 8 ++++++++ automation/scripts/qubes-x86-64.sh | 14 +++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml index 55ca0c27dc..9c0e08d456 100644 --- a/automation/gitlab-ci/test.yaml +++ b/automation/gitlab-ci/test.yaml @@ -149,6 +149,14 @@ adl-smoke-x86-64-gcc-debug: - *x86-64-test-needs - alpine-3.12-gcc-debug =20 +adl-smoke-x86-64-dom0pvh-gcc-debug: + extends: .adl-x86-64 + script: + - ./automation/scripts/qubes-x86-64.sh dom0pvh 2>&1 | tee ${LOGFILE} + needs: + - *x86-64-test-needs + - alpine-3.12-gcc-debug + adl-suspend-x86-64-gcc-debug: extends: .adl-x86-64 script: diff --git a/automation/scripts/qubes-x86-64.sh b/automation/scripts/qubes-= x86-64.sh index 056faf9e6d..35b9386e5d 100755 --- a/automation/scripts/qubes-x86-64.sh +++ b/automation/scripts/qubes-x86-64.sh @@ -5,6 +5,7 @@ set -ex test_variant=3D$1 =20 ### defaults +dom0pvh=3D wait_and_wakeup=3D timeout=3D120 domU_config=3D' @@ -18,8 +19,8 @@ vif =3D [ "bridge=3Dxenbr0", ] disk =3D [ ] ' =20 -### test: smoke test -if [ -z "${test_variant}" ]; then +### test: smoke test & smoke test PVH +if [ -z "${test_variant}" ] || [ "${test_variant}" =3D "dom0pvh" ]; then passed=3D"ping test passed" domU_check=3D" ifconfig eth0 192.168.0.2 @@ -36,6 +37,9 @@ done tail -n 100 /var/log/xen/console/guest-domU.log echo \"${passed}\" " +if [ "${test_variant}" =3D "dom0pvh" ]; then + dom0pvh=3D"dom0=3Dpvh" +fi =20 ### test: S3 elif [ "${test_variant}" =3D "s3" ]; then @@ -184,11 +188,11 @@ cd .. TFTP=3D/scratch/gitlab-runner/tftp CONTROLLER=3Dcontrol@thor.testnet =20 -echo ' -multiboot2 (http)/gitlab-ci/xen console=3Dcom1 com1=3D115200,8n1 loglvl=3D= all guest_loglvl=3Dall dom0_mem=3D4G +echo " +multiboot2 (http)/gitlab-ci/xen console=3Dcom1 com1=3D115200,8n1 loglvl=3D= all guest_loglvl=3Dall dom0_mem=3D4G $dom0pvh module2 (http)/gitlab-ci/vmlinuz console=3Dhvc0 root=3D/dev/ram0 module2 (http)/gitlab-ci/initrd-dom0 -' > $TFTP/grub.cfg +" > $TFTP/grub.cfg =20 cp -f binaries/xen $TFTP/xen cp -f binaries/bzImage $TFTP/vmlinuz --=20 2.25.1