From nobody Thu Nov 21 21:13:33 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=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1729521371; cv=none; d=zohomail.com; s=zohoarc; b=heO/1UvYfoDd+ufuTkW/I0HYeV5HOD4lVfomoo1govkudGbCX8TIQJ53cxIYZXPSogYD2I3AZDGRwSOAfF/iJMcE+XuPuOULUT1HFEkMr+7QVxB++DlkH8anH8EV/yIIeh+WaHB9JzsLcl3/kBwoIu5xtnOSLV+uehqBkdzou/4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1729521371; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=PPCHulRaSrD9EnHHmG1DTpUULk+3NsrkYOUB7K+zHIQ=; b=guPhK9ULNkRTrDUiL3+MI7JcEFkGDL2E/jpzwIfj52lARew2VQTVEZmn1m76JTpkCe0huP6+8oi5JMx7+Yqri4Dw5LKJ27LVY7yzLxlPMes552vMfx71oo+IfaK3voI6kfpyUdiCDQQx2L78dDt6V9wEZjfHa5gNgKoRS0wYwTM= 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=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1729521371491832.8784552922832; Mon, 21 Oct 2024 07:36:11 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.823578.1237598 (Exim 4.92) (envelope-from ) id 1t2tVb-00045M-Fm; Mon, 21 Oct 2024 14:35:47 +0000 Received: by outflank-mailman (output) from mailman id 823578.1237598; Mon, 21 Oct 2024 14:35:47 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t2tVb-00045F-BA; Mon, 21 Oct 2024 14:35:47 +0000 Received: by outflank-mailman (input) for mailman id 823578; Mon, 21 Oct 2024 14:35:46 +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 1t2tVa-0003qm-Si for xen-devel@lists.xenproject.org; Mon, 21 Oct 2024 14:35:46 +0000 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [2a00:1450:4864:20::635]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id c0fb9749-8fb9-11ef-99a3-01e77a169b0f; Mon, 21 Oct 2024 16:35:44 +0200 (CEST) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a99fa009adcso251164566b.0 for ; Mon, 21 Oct 2024 07:35:44 -0700 (PDT) Received: from andrewcoop.eng.citrite.net ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5cb66c6b1d8sm1999394a12.72.2024.10.21.07.35.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 07:35:42 -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: c0fb9749-8fb9-11ef-99a3-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1729521343; x=1730126143; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PPCHulRaSrD9EnHHmG1DTpUULk+3NsrkYOUB7K+zHIQ=; b=nnsgEdalGKTRAagQOv+viymd557Ppeaqi5QrtObVJoOSasuKqFqOlwAod7DFROc2uR lnaWXXEPab/sTgy0FdfUPW+G8vRgcBRCPzqRN7KLvd0ONZEgK0JIgl6Gz2mkvnmXasv7 gHfuCgSVO4e1EwG4NzMNwkllInuOO+eKbujXQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729521343; x=1730126143; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PPCHulRaSrD9EnHHmG1DTpUULk+3NsrkYOUB7K+zHIQ=; b=VrnqZjiB8YahuPatTHWaB8z/pm29rFMCShhiXpnM50H0judhdLZZVMt55Ntrt3YMeq WKQH7o38mNFYNvlUYAdls0tM0sQEG0MiG6fEdxXE+1xb4fqzC1GXfmYb0ImeOIpkgkkd qRcTZDdLx87mchPG5yof4JrZKCweeUQry/eMU3giTPL4fAmT+2INGVEbLLZXpA2G67Om JpPK2UEuziWtPjH48eyo7i5Kbr1P2yZiFXHD0TMbadjVsZk4/DAddd7FGYgi9MwRQWFy JKoaNvQWHu/D9ehj+XUnRdl/dBZSXfWWlV19W6Xo9qeCVEj0zyblzRuOqgiW7zw+uC67 VpDA== X-Gm-Message-State: AOJu0YyrIpnpVK7a6fnAPgvYiOVOKVLBjBpUKn91rgynudIwGVNw0BsO 1VR1/dWY4BE8wd2DaM8PqQxSXojsSkrwHOkr0dhMxV7smd8atG5JlAcUvub/dDMua9XB4AU69k4 g X-Google-Smtp-Source: AGHT+IF/YKBje1/sjQyLcv3cwySNfu272LXfSKucSlUmr6D4l1TBu+bJ4V3sTFepZXPB8g7FfCCWKQ== X-Received: by 2002:a05:6402:5412:b0:5cb:6841:ede5 with SMTP id 4fb4d7f45d1cf-5cb6841ee4emr7993078a12.28.1729521343064; Mon, 21 Oct 2024 07:35:43 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= , "Daniel P . Smith" , Anthony PERARD , Stefano Stabellini , Michal Orzel , Doug Goldstein Subject: [PATCH 1/3] CI: Minor cleanup to qubes-x86-64.sh Date: Mon, 21 Oct 2024 15:35:37 +0100 Message-Id: <20241021143539.3898995-2-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241021143539.3898995-1-andrew.cooper3@citrix.com> References: <20241021143539.3898995-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1729521372757116600 * List all the test_variants and summerise what's going on * Use case rather than an if/else chain for $test_variant * Fix indentation inside the case block No functional change. Signed-off-by: Andrew Cooper Reviewed-by: Stefano Stabellini --- CC: Marek Marczykowski-G=C3=B3recki CC: Daniel P. Smith CC: Anthony PERARD CC: Stefano Stabellini CC: Michal Orzel CC: Doug Goldstein --- automation/scripts/qubes-x86-64.sh | 84 ++++++++++++++++++------------ 1 file changed, 50 insertions(+), 34 deletions(-) diff --git a/automation/scripts/qubes-x86-64.sh b/automation/scripts/qubes-= x86-64.sh index bfa60c912a64..306304e9219f 100755 --- a/automation/scripts/qubes-x86-64.sh +++ b/automation/scripts/qubes-x86-64.sh @@ -2,6 +2,13 @@ =20 set -ex =20 +# One of: +# - "" PV dom0, PVH domU +# - dom0pvh PVH dom0, PVH domU +# - dom0pvh-hvm PVH dom0, HVM domU +# - pci-hvm PV dom0, HVM domU + PCI Passthrough +# - pci-pv PV dom0, PV domU + PCI Passthrough +# - s3 PV dom0, S3 suspend/resume test_variant=3D$1 =20 ### defaults @@ -19,17 +26,18 @@ vif =3D [ "bridge=3Dxenbr0", ] disk =3D [ ] ' =20 -### test: smoke test & smoke test PVH & smoke test HVM -if [ -z "${test_variant}" ] || [ "${test_variant}" =3D "dom0pvh" ] || [ "$= {test_variant}" =3D "dom0pvh-hvm" ]; then - passed=3D"ping test passed" - domU_check=3D" +case "${test_variant}" in + ### test: smoke test & smoke test PVH & smoke test HVM + ""|"dom0pvh"|"dom0pvh-hvm") + passed=3D"ping test passed" + domU_check=3D" ifconfig eth0 192.168.0.2 until ping -c 10 192.168.0.1; do sleep 1 done echo \"${passed}\" " - dom0_check=3D" + dom0_check=3D" set +x until grep -q \"${passed}\" /var/log/xen/console/guest-domU.log; do sleep 1 @@ -37,12 +45,12 @@ done set -x echo \"${passed}\" " -if [ "${test_variant}" =3D "dom0pvh" ] || [ "${test_variant}" =3D "dom0pvh= -hvm" ]; then - extra_xen_opts=3D"dom0=3Dpvh" -fi + if [ "${test_variant}" =3D "dom0pvh" ] || [ "${test_variant}" =3D = "dom0pvh-hvm" ]; then + extra_xen_opts=3D"dom0=3Dpvh" + fi =20 -if [ "${test_variant}" =3D "dom0pvh-hvm" ]; then - domU_config=3D' + if [ "${test_variant}" =3D "dom0pvh-hvm" ]; then + domU_config=3D' type =3D "hvm" name =3D "domU" kernel =3D "/boot/vmlinuz" @@ -52,17 +60,18 @@ memory =3D 512 vif =3D [ "bridge=3Dxenbr0", ] disk =3D [ ] ' -fi - -### test: S3 -elif [ "${test_variant}" =3D "s3" ]; then - passed=3D"suspend test passed" - wait_and_wakeup=3D"started, suspending" - domU_check=3D" + fi + ;; + + ### test: S3 + "s3") + passed=3D"suspend test passed" + wait_and_wakeup=3D"started, suspending" + domU_check=3D" ifconfig eth0 192.168.0.2 echo domU started " - dom0_check=3D" + dom0_check=3D" until grep 'domU started' /var/log/xen/console/guest-domU.log; do sleep 1 done @@ -79,19 +88,20 @@ xl dmesg | grep 'Finishing wakeup from ACPI S3 state' |= | exit 1 ping -c 10 192.168.0.2 || exit 1 echo \"${passed}\" " + ;; =20 -### test: pci-pv, pci-hvm -elif [ "${test_variant}" =3D "pci-pv" ] || [ "${test_variant}" =3D "pci-hv= m" ]; then + ### test: pci-pv, pci-hvm + "pci-pv"|"pci-hvm") =20 - if [ -z "$PCIDEV" ]; then - echo "Please set 'PCIDEV' variable with BDF of test network adapte= r" >&2 - echo "Optionally set also 'PCIDEV_INTR' to 'MSI' or 'MSI-X'" >&2 - exit 1 - fi + if [ -z "$PCIDEV" ]; then + echo "Please set 'PCIDEV' variable with BDF of test network ad= apter" >&2 + echo "Optionally set also 'PCIDEV_INTR' to 'MSI' or 'MSI-X'" >= &2 + exit 1 + fi =20 - passed=3D"pci test passed" + passed=3D"pci test passed" =20 - domU_config=3D' + domU_config=3D' type =3D "'${test_variant#pci-}'" name =3D "domU" kernel =3D "/boot/vmlinuz" @@ -104,7 +114,7 @@ pci =3D [ "'$PCIDEV',seize=3D1" ] on_reboot =3D "destroy" ' =20 - domU_check=3D" + domU_check=3D" set -x -e interface=3Deth0 ip link set \"\$interface\" up @@ -115,22 +125,28 @@ echo domU started pcidevice=3D\$(basename \$(readlink /sys/class/net/\$interface/device)) lspci -vs \$pcidevice " - if [ -n "$PCIDEV_INTR" ]; then - domU_check=3D"$domU_check + if [ -n "$PCIDEV_INTR" ]; then + domU_check=3D"$domU_check lspci -vs \$pcidevice | fgrep '$PCIDEV_INTR: Enable+' " - fi - domU_check=3D"$domU_check + fi + domU_check=3D"$domU_check echo \"${passed}\" " =20 - dom0_check=3D" + dom0_check=3D" tail -F /var/log/xen/qemu-dm-domU.log & until grep -q \"^domU Welcome to Alpine Linux\" /var/log/xen/console/guest= -domU.log; do sleep 1 done " -fi + ;; + + *) + echo "Unrecognised test_variant '${test_variant}'" >&2 + exit 1 + ;; +esac =20 # DomU mkdir -p rootfs --=20 2.39.5 From nobody Thu Nov 21 21:13:33 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=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1729521363; cv=none; d=zohomail.com; s=zohoarc; b=OpRGqzNhTPf9mjxSzeA7nLfZJxG45aCQJJtlFMnbQiKibVfpO6T1o0F/Cmn93YuLpJSyiki1+pJ89IKhoAoEw7w8wIwdKVmKoCJ5L4SR23KWuBbPsFigYhLObEPRZimiwDlFmGBya23cWjRHNfQi2rkZmjUs3lH5mI+JOLpvE08= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1729521363; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=wx4DxoEGK87IzCRHyCD3oOn3pSGeacIwAEqwfo4eKqM=; b=CSBaJPXeGf2yVRbkqd1ajl4GGvAZHuWpmHMqadxNTCybS92SpCV3V5WzUdaxsvwSqKQpYfTUhBmk97706sjVCj/CDQqZBu2lOBpOVspfuxgXLOh6YN1No+wMboF8mloMsfxZqJcggcIXOY8KtkHSGQKB54DEucmFNxMxW8Suw58= 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=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1729521363823968.4674056177136; Mon, 21 Oct 2024 07:36:03 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.823579.1237609 (Exim 4.92) (envelope-from ) id 1t2tVc-0004KP-O3; Mon, 21 Oct 2024 14:35:48 +0000 Received: by outflank-mailman (output) from mailman id 823579.1237609; Mon, 21 Oct 2024 14:35:48 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t2tVc-0004KG-Ik; Mon, 21 Oct 2024 14:35:48 +0000 Received: by outflank-mailman (input) for mailman id 823579; Mon, 21 Oct 2024 14:35:47 +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 1t2tVb-0003qm-Lj for xen-devel@lists.xenproject.org; Mon, 21 Oct 2024 14:35:47 +0000 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [2a00:1450:4864:20::22f]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id c228474e-8fb9-11ef-99a3-01e77a169b0f; Mon, 21 Oct 2024 16:35:46 +0200 (CEST) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2fb58980711so46566931fa.0 for ; Mon, 21 Oct 2024 07:35:46 -0700 (PDT) Received: from andrewcoop.eng.citrite.net ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5cb66c6b1d8sm1999394a12.72.2024.10.21.07.35.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 07:35:43 -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: c228474e-8fb9-11ef-99a3-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1729521345; x=1730126145; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wx4DxoEGK87IzCRHyCD3oOn3pSGeacIwAEqwfo4eKqM=; b=Pk4ebvSvOIdMK5KNDulYR8mHvWz41vFAxe9t78E7bkqOhdLDFDLICTTsR6Reek3BCO begwut4Oi94hSAXy4lvivMSeWKGNvN3SnC+I8p39w8Fb8ZXommYzcLN0BciKY9SwJ7Ls TVQgkcYGnaan0sGRBcsUB9QJDWTYigR53htYM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729521345; x=1730126145; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wx4DxoEGK87IzCRHyCD3oOn3pSGeacIwAEqwfo4eKqM=; b=LgBRfmAyuF2ufpe5kM8CbevUv/lfR3oea0uYO35BHSwnN9P46VdIbswG6kAinSalc1 8NiH462espZoCZwFFe8InP5sajL8V0ky3pItp5eZJ5cCStC9bIZdmwm2zrnxzWZK9vuY zTiAphgBVSSDp++W0VSsxA5ABDzAnYUHKRY1lSJ5yU/5AlJAiPlmaY00i7+M487iEd7s AqU+C604Yr5dcJOW6YVRD4ZssAAHBElG1NN2GlEiaHfE872Rz1g+a32XTjqQoltrRYa5 lVp0ikpRjuk+k8Bp3ckKt7YNTDWOEDt8x8J69+TBz0bPrLEGlv0A9yd2lPxff7jhDa6w wz0Q== X-Gm-Message-State: AOJu0YziErSzl4930pMEGQOnRnOmZiAUBBQVNmqBJSNXcO1j3aSWjtSU CJ3rU64LFynfOWdUBfInLEFkk5JpCvrFwYpLkoiOhL/QQvxQsSoQECKy5rmlXkpXezSdrQ2Dluk i X-Google-Smtp-Source: AGHT+IGse2dyV0E/absSWns3VWnI+Id9CbrtOfQF+0l232rU5Hw81dKAt8o1eL90madGy4MeeaNP/w== X-Received: by 2002:a2e:4e02:0:b0:2fa:ded3:f6aa with SMTP id 38308e7fff4ca-2fb831df580mr42160181fa.20.1729521344684; Mon, 21 Oct 2024 07:35:44 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= , "Daniel P . Smith" , Anthony PERARD , Stefano Stabellini , Michal Orzel , Doug Goldstein Subject: [PATCH 2/3] CI: Rework domU_config generation in qubes-x86-64.sh Date: Mon, 21 Oct 2024 15:35:38 +0100 Message-Id: <20241021143539.3898995-3-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241021143539.3898995-1-andrew.cooper3@citrix.com> References: <20241021143539.3898995-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1729521364881116600 Right now, various blocks rewrite domU_config=3D as a whole, even though it= is largely the same. * dom0pvh-hvm does nothing but change the domain type to hvm * *-pci sets the domain type, clears vif=3D[], appends earlyprintk=3Dxen t= o the cmdline, and adds some PCI config. Refactor this to be domU_type (defaults to pvh), domU_vif (defaults to xenbr0), and domU_extra_cfg (defaults to empty) and use these variables to build domU_config=3D once. Of note, the default domU_config=3D now sets cmdline=3D, and extra=3D is in= tended for inclusion via domU_extra_cfg as necessary. No practical change. Signed-off-by: Andrew Cooper Reviewed-by: Stefano Stabellini --- CC: Marek Marczykowski-G=C3=B3recki CC: Daniel P. Smith CC: Anthony PERARD CC: Stefano Stabellini CC: Michal Orzel CC: Doug Goldstein --- automation/scripts/qubes-x86-64.sh | 50 +++++++++++++----------------- 1 file changed, 21 insertions(+), 29 deletions(-) diff --git a/automation/scripts/qubes-x86-64.sh b/automation/scripts/qubes-= x86-64.sh index 306304e9219f..4b6311efffa8 100755 --- a/automation/scripts/qubes-x86-64.sh +++ b/automation/scripts/qubes-x86-64.sh @@ -15,16 +15,9 @@ test_variant=3D$1 extra_xen_opts=3D wait_and_wakeup=3D timeout=3D120 -domU_config=3D' -type =3D "pvh" -name =3D "domU" -kernel =3D "/boot/vmlinuz" -ramdisk =3D "/boot/initrd-domU" -extra =3D "root=3D/dev/ram0 console=3Dhvc0" -memory =3D 512 -vif =3D [ "bridge=3Dxenbr0", ] -disk =3D [ ] -' +domU_type=3D"pvh" +domU_vif=3D"'bridge=3Dxenbr0'," +domU_extra_cfg=3D =20 case "${test_variant}" in ### test: smoke test & smoke test PVH & smoke test HVM @@ -50,16 +43,7 @@ echo \"${passed}\" fi =20 if [ "${test_variant}" =3D "dom0pvh-hvm" ]; then - domU_config=3D' -type =3D "hvm" -name =3D "domU" -kernel =3D "/boot/vmlinuz" -ramdisk =3D "/boot/initrd-domU" -extra =3D "root=3D/dev/ram0 console=3Dhvc0" -memory =3D 512 -vif =3D [ "bridge=3Dxenbr0", ] -disk =3D [ ] -' + domU_type=3D"hvm" fi ;; =20 @@ -101,15 +85,11 @@ echo \"${passed}\" =20 passed=3D"pci test passed" =20 - domU_config=3D' -type =3D "'${test_variant#pci-}'" -name =3D "domU" -kernel =3D "/boot/vmlinuz" -ramdisk =3D "/boot/initrd-domU" -extra =3D "root=3D/dev/ram0 console=3Dhvc0 earlyprintk=3Dxen" -memory =3D 512 -vif =3D [ ] -disk =3D [ ] + domU_type=3D"${test_variant#pci-}" + domU_vif=3D"" + + domU_extra_config=3D' +extra =3D "earlyprintk=3Dxen" pci =3D [ "'$PCIDEV',seize=3D1" ] on_reboot =3D "destroy" ' @@ -148,6 +128,18 @@ done ;; esac =20 +domU_config=3D" +type =3D '${domU_type}' +name =3D 'domU' +kernel =3D '/boot/vmlinuz' +ramdisk =3D '/boot/initrd-domU' +cmdline =3D 'root=3D/dev/ram0 console=3Dhvc0' +memory =3D 512 +vif =3D [ ${domU_vif} ] +disk =3D [ ] +$domU_extra_config +" + # DomU mkdir -p rootfs cd rootfs --=20 2.39.5 From nobody Thu Nov 21 21:13:33 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=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1729521368; cv=none; d=zohomail.com; s=zohoarc; b=GKWLhXeWJopWEFGDMNIkucpL+GshtU8gB0mJt1wjxfEqMxU6GuyLT/H/QULxR4DhkUsLGtZ7+XCJzheR+XktwAYDfOZknEkki8Nf3fcqA6iNe4VVY8ExBv+iRkyjEzShbsL6k6sVtHxfpVwVnVoUJ/KCdzOmrRtggVlU3/fMyjM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1729521368; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ffY1VjEznp41YMioLn3WaQGjvM4SloKJ+MSKOS4FI5c=; b=XialIlqEIcaFSCh6fw3rB6C36AWDpdJV4XuB7WyFai3OcBvV3bPBWIpdQDsT7WxYhXK/old/jIsB6QYbCjGc1lQ4tofPMO3Ks0Nj9OsizpbZP4FpShx3EXUeVuKzvC7HMEZbwCZbLIAPxmo2M0d/ZUzcL5CeFE77jPwMfgTRrXo= 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=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1729521368218936.4460595479878; Mon, 21 Oct 2024 07:36:08 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.823580.1237618 (Exim 4.92) (envelope-from ) id 1t2tVd-0004Zp-Ub; Mon, 21 Oct 2024 14:35:49 +0000 Received: by outflank-mailman (output) from mailman id 823580.1237618; Mon, 21 Oct 2024 14:35:49 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t2tVd-0004Zg-R1; Mon, 21 Oct 2024 14:35:49 +0000 Received: by outflank-mailman (input) for mailman id 823580; Mon, 21 Oct 2024 14:35:48 +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 1t2tVc-0003qm-Gz for xen-devel@lists.xenproject.org; Mon, 21 Oct 2024 14:35:48 +0000 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [2a00:1450:4864:20::635]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id c2b49f58-8fb9-11ef-99a3-01e77a169b0f; Mon, 21 Oct 2024 16:35:47 +0200 (CEST) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a99ea294480so302582966b.2 for ; Mon, 21 Oct 2024 07:35:47 -0700 (PDT) Received: from andrewcoop.eng.citrite.net ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5cb66c6b1d8sm1999394a12.72.2024.10.21.07.35.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 07:35:45 -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: c2b49f58-8fb9-11ef-99a3-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1729521345; x=1730126145; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ffY1VjEznp41YMioLn3WaQGjvM4SloKJ+MSKOS4FI5c=; b=XQoey2hS5D7JsRE/DAJwkmqoZyqM7q7Ol/ryp8QBV0sFXXx2cXwQJNCQYHMFx+Cql0 XjlUiy5Lu/G+E2RDZrnFu1yt2YCYOhau4Cl48eOLnu9LweWE+smtMeaKwfzPyrRqkEEi T41iRsyatKz84mNVYgLzs50BQCqqE8muALggs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729521345; x=1730126145; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ffY1VjEznp41YMioLn3WaQGjvM4SloKJ+MSKOS4FI5c=; b=JiyYtZWrctu5PpUpUvCR6A/katfIxk8P3RidYfXogrhqSJgWQkREYD19xadfQANcoj aiBCNgg84kIeTLbwlM1pssKI0URny1kwhrupZQK6eEzla0sZtE9R91uJZ24BjO/6MA+/ k8wROZQAAmaN6G7ee44JmtpD3huZDRqhrX7mHqbbjxSx9s2mvLJN+cD7OTfNIDmaD12E 8E/GVn7IOZ/jm8lm5WMYWd7J2wqB62IOnAG+kzAUuFTl2qRikNIUijFoA7pQcQhW1zUN LObgEWc8+mjWKc1Ge+iul+II/2qe0y0nPCYlJlxlKcKhYbdU4R4CapjBW4ujCoI/8y2x stYw== X-Gm-Message-State: AOJu0YzX0IH2QUqxk4MtSfVS2WDWiWcz3h/XcAQ5iiknBVURud3xVhY+ dWGA9RR3UPtyj2xnLSmJdCTQ4fYNBwS6S1H3rsnRqBWc3tfQQ22aNCSk2Otr9klWqE8w/g7yAVL V X-Google-Smtp-Source: AGHT+IF1gehkVz+JmHowBFH/HTU2wVxXLlX6vyPnlnAgzAPNv8+U9MrIWNbFyrjfCj5LBrOMmDqQEA== X-Received: by 2002:a05:6402:1d52:b0:5cb:65f4:7d91 with SMTP id 4fb4d7f45d1cf-5cb65f47da5mr6763403a12.29.1729521345457; Mon, 21 Oct 2024 07:35:45 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= , "Daniel P . Smith" , Anthony PERARD , Stefano Stabellini , Michal Orzel , Doug Goldstein Subject: [PATCH 3/3] CI: Add {adl,zen3p}-pvshim-* tests Date: Mon, 21 Oct 2024 15:35:39 +0100 Message-Id: <20241021143539.3898995-4-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241021143539.3898995-1-andrew.cooper3@citrix.com> References: <20241021143539.3898995-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1729521368667116600 GitlabCI has no testing of Xen's PVH entrypoint. Fix this. Signed-off-by: Andrew Cooper Reviewed-by: Marek Marczykowski-G=C3=B3recki --- CC: Marek Marczykowski-G=C3=B3recki CC: Daniel P. Smith CC: Anthony PERARD CC: Stefano Stabellini CC: Michal Orzel CC: Doug Goldstein OSSTest (which is disappearing imminently) found a pvshim bug in the hyperlaunch series, and I found a second shortly after while trying to take more of the series. https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/1505518838 --- automation/gitlab-ci/test.yaml | 16 ++++++++++++++++ automation/scripts/qubes-x86-64.sh | 10 ++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml index b27c2be17487..e76a37bef32d 100644 --- a/automation/gitlab-ci/test.yaml +++ b/automation/gitlab-ci/test.yaml @@ -240,6 +240,14 @@ adl-pci-hvm-x86-64-gcc-debug: - *x86-64-test-needs - alpine-3.18-gcc-debug =20 +adl-pvshim-x86-64-gcc-debug: + extends: .adl-x86-64 + script: + - ./automation/scripts/qubes-x86-64.sh pvshim 2>&1 | tee ${LOGFILE} + needs: + - *x86-64-test-needs + - alpine-3.18-gcc-debug + zen3p-smoke-x86-64-gcc-debug: extends: .zen3p-x86-64 script: @@ -272,6 +280,14 @@ zen3p-pci-hvm-x86-64-gcc-debug: - *x86-64-test-needs - alpine-3.18-gcc-debug =20 +zen3p-pvshim-x86-64-gcc-debug: + extends: .zen3p-x86-64 + script: + - ./automation/scripts/qubes-x86-64.sh pvshim 2>&1 | tee ${LOGFILE} + needs: + - *x86-64-test-needs + - alpine-3.18-gcc-debug + qemu-smoke-dom0-arm64-gcc: extends: .qemu-arm64 script: diff --git a/automation/scripts/qubes-x86-64.sh b/automation/scripts/qubes-= x86-64.sh index 4b6311efffa8..ace494b938d8 100755 --- a/automation/scripts/qubes-x86-64.sh +++ b/automation/scripts/qubes-x86-64.sh @@ -8,6 +8,7 @@ set -ex # - dom0pvh-hvm PVH dom0, HVM domU # - pci-hvm PV dom0, HVM domU + PCI Passthrough # - pci-pv PV dom0, PV domU + PCI Passthrough +# - pvshim PV dom0, PVSHIM domU # - s3 PV dom0, S3 suspend/resume test_variant=3D$1 =20 @@ -20,8 +21,8 @@ domU_vif=3D"'bridge=3Dxenbr0'," domU_extra_cfg=3D =20 case "${test_variant}" in - ### test: smoke test & smoke test PVH & smoke test HVM - ""|"dom0pvh"|"dom0pvh-hvm") + ### test: smoke test & smoke test PVH & smoke test HVM & smoke test PV= SHIM + ""|"dom0pvh"|"dom0pvh-hvm"|"pvshim") passed=3D"ping test passed" domU_check=3D" ifconfig eth0 192.168.0.2 @@ -44,6 +45,11 @@ echo \"${passed}\" =20 if [ "${test_variant}" =3D "dom0pvh-hvm" ]; then domU_type=3D"hvm" + elif [ "${test_variant}" =3D "pvshim" ]; then + domU_type=3D"pv" + domU_extra_cfg=3D' +pvshim =3D 1 +' fi ;; =20 --=20 2.39.5