From patchwork Thu Oct 17 17:18:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lira, Victor M" X-Patchwork-Id: 13840497 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B8B5D3C526 for ; Thu, 17 Oct 2024 17:19:25 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.820980.1234747 (Exim 4.92) (envelope-from ) id 1t1U9Y-0007kd-9s; Thu, 17 Oct 2024 17:19:12 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 820980.1234747; Thu, 17 Oct 2024 17:19:12 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t1U9Y-0007jU-2k; Thu, 17 Oct 2024 17:19:12 +0000 Received: by outflank-mailman (input) for mailman id 820980; Thu, 17 Oct 2024 17:19:10 +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 1t1U9W-0007JO-7Y for xen-devel@lists.xenproject.org; Thu, 17 Oct 2024 17:19:10 +0000 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on20601.outbound.protection.outlook.com [2a01:111:f403:2416::601]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id e890d483-8cab-11ef-99a3-01e77a169b0f; Thu, 17 Oct 2024 19:19:05 +0200 (CEST) Received: from MW4PR03CA0038.namprd03.prod.outlook.com (2603:10b6:303:8e::13) by MN2PR12MB4192.namprd12.prod.outlook.com (2603:10b6:208:1d5::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.20; Thu, 17 Oct 2024 17:19:00 +0000 Received: from SJ1PEPF000023D0.namprd02.prod.outlook.com (2603:10b6:303:8e:cafe::46) by MW4PR03CA0038.outlook.office365.com (2603:10b6:303:8e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18 via Frontend Transport; Thu, 17 Oct 2024 17:18:59 +0000 Received: from SATLEXMB04.amd.com (165.204.84.17) by SJ1PEPF000023D0.mail.protection.outlook.com (10.167.244.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8069.17 via Frontend Transport; Thu, 17 Oct 2024 17:18:59 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 17 Oct 2024 12:18:58 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 17 Oct 2024 12:18:58 -0500 Received: from xsjwoods50.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Thu, 17 Oct 2024 12:18:58 -0500 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: e890d483-8cab-11ef-99a3-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jdmJL0/wYW1Y56oRBoNi7c3jubLHR8UHUw0P3j99GAxvlEGKGEGlPYDWsnP9+K7HmD+s9vGdtA4Nj3w8E9jIUtSqY1ji4fYKMrQ7EzoYsk0XRm6OatwjCgzfd9JjsZrh+yn9OI/IfmGKkJAf4+tNfG8nGp+VZOXEIsiL1tu17aw5/536k20XVwWisXEBAdRCL5T5sIr1lQa+2JQVmqVNEqOWziyXnI4xCBEQlPhkuCAVYRzbNkLTWt/JYBMkOQr0Z2xdh78ei+MmXb15SKI0VBBi2pLCZ7hQi9BhEJErV86YaKXyjLDVhoDirQd4m07hMqyiRyfKlLVXk7AIV0zqCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mxvXkgc+im7eck3YggvnFHTjF0jIAu8u4EX91lFkEiA=; b=W7/3S+PQbihLOP5h332+G/t93c6psSGkvnS4HWe8+FbQhLDWV+ePohIn2XVsivMhkdwmHEfDNA3wN7JXU2H91T3UnOIdx/1y2Kr9Fjv22S+14+OKbUZ6YqGOhZH1ZPvBVa2F2UQBQ2kvN3Pk9oPTU21W797B4Qd5SRHPhLcT9roPF+8aXW82wVvkfTKZdbbmUVw3Dkf28o9u+hF4dISPKufpNg0X2xRioVhep/zZKzuQbUzlslwKMJSV68o1HikPdB9zhIS2AvwXwom0ROeKgGPCJXpYCvfbOrNGjqUs3shsuGuuaMe4calN7DZEgvWACoHQ6fx9/GtooQfSXoZ49Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mxvXkgc+im7eck3YggvnFHTjF0jIAu8u4EX91lFkEiA=; b=wTBtOWu5cR0FgFnGlzIIyeRVY5jMpRlkwmMbY+suaQzoJ2JkyEjwu+2N3NlQ/cK5/9ypwOpPP8dJDKC5jdqy0cQJbOGU/lKaPLfo5A89zUAbrEmQWwdhr8/yW/SS4/Yx3JByB2Zk7QESXRCP9HougaBtzezGrtyQtDW1gucvtbo= X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C From: To: CC: Victor Lira , Doug Goldstein , Stefano Stabellini Subject: [XEN PATCH v1 1/3] automation: add linux 6.6.56 artifact Date: Thu, 17 Oct 2024 10:18:26 -0700 Message-ID: <15562cef1631443695d5ddab64c0737a327eb849.1729183051.git.victorm.lira@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: None (SATLEXMB05.amd.com: victorm.lira@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF000023D0:EE_|MN2PR12MB4192:EE_ X-MS-Office365-Filtering-Correlation-Id: 9df8027b-6815-4369-72ba-08dceecfca40 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: m3Kndkitza9RkcqlsSuLk0m0boDRqal2GrfSFnKsIP642c3RKc9uKUFkAWdlHZN6gt9MU6T9nylS9zdFWbOJbCdC2wBX0nbc351MSaRA5arV8H0pJgS9WYvWBZ9btut5iMRsMzcalFyYq04uP81YTIr3ClK3s4TR+/GjYZPhLBViNkSAhovQqKKMPsqcf2nUinMt8NsxaKYy/uuWYHjN0yrmxUb802wUaxTEkt4VCQLwkuH4D3UhYoYwEe9tYIZiTTW5pKbBH3PG/I9fZxyUlyH+2kTJTwRgy4WgRn/9NdYOhdtLIHrNphS8AyhMWfcxQJpFuifnx8lW5yUMAgcLW5et/P8Cc8tX4cRm4yHDynGBFEQ4mVummB1lTjGq9hO7gmMuin85cSjDHsgQP9PQ3+MNAH1qHGCPudGfiqjWWhbiMSlZCx5vZ9YO+7sHQVIzbcDW1B/zJostuq3NggcUihUyKdA7bANii0XHrdWs34sSN+QpAz5mFkBRcHcS2wcevl5GHX3n7zV8EPnxLusqg7lwEkJw1LJk6g0t+Kgb8VBaQ3UMG/LL00XcJWtp3ZCe1T5qDm3pdw2Mse5mML6WF+QWAft4TnzV80C79ju4axMdPE4zY+Ev+o7NPRmH5xcP8jxoNawe3E9t6cC5K7vb1t5oLcWeDMDvcSKHibgVKFnpgOsrw9QpnC2z/lmpYczmzc5JDD8S5Q021XzHG67lbSYYAThvPazYYbOSrZhcy4sUgy3rYftXmyJQry1GbFYcmfDswf6shwzM+u/UD+TvdvdVvJUHjOI5VqwoQwToI5sa9ke3hMCM6GB7cXRlQs08gWvkLdysJU+cwvyKaggmxkaFX39JSVI4M3dewxWY1OrJ4M22BFYwzsGxGrrpT+XYG4sNrZl1sDgGlHtpPU7n0g2zDc8eiLTcgcL6wAdfajpRMAyo4juy8ttQNfF5yRCoeQSnd0Ex5X8Nguxe6upLGkZMCgwg6bprF+5LJVMxHIbx3cLEQvBbzbN1KYh8FI8GnpXbMxHDX/G7cO84Z/7r9VrqzCV5TPUYJMSHQtVCCfYtZ2n0KZIk5F6jAkEA2efUaNysYuXys3K+HOciEUuVEBqsyycEHwjr7y9tJoztK5u4hb+sSiEEsytqggU3UtOpxhszeAulNFzPOl2xQe3+qSE8Wply1sKMszNUKchDVRlS5lI4w4EEXsauwGWHpn7zc9Zrsp8ITnKDyIku8H9LoFDx8HXTccoLIBBb503RDhHWKBlvGUSkMe2kGw0JyHBp7cqhBZzh+1qWlX5JMwJpeT4hwDZlDUz08q3JdLriRSTbhMMHBsjJgD8U97f++9wuMQXbFZXf3WqBmGJ7NpjRapIpOsMdF9TidnQrHJDGClY= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2024 17:18:59.7067 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9df8027b-6815-4369-72ba-08dceecfca40 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF000023D0.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4192 From: Victor Lira Add dockerfile for building container image that holds linux 6.6.56 bzImage for x86_64, using the same build process as the current 6.1.19 image Signed-off-by: Victor Lira --- Cc: Doug Goldstein Cc: Stefano Stabellini Cc: xen-devel@lists.xenproject.org --- .../tests-artifacts/kernel/6.6.56.dockerfile | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 automation/tests-artifacts/kernel/6.6.56.dockerfile -- 2.25.1 diff --git a/automation/tests-artifacts/kernel/6.6.56.dockerfile b/automation/tests-artifacts/kernel/6.6.56.dockerfile new file mode 100644 index 0000000000..5b6f2fe527 --- /dev/null +++ b/automation/tests-artifacts/kernel/6.6.56.dockerfile @@ -0,0 +1,54 @@ +# syntax=docker/dockerfile:1 +FROM --platform=linux/amd64 debian:bookworm +LABEL maintainer.name="The Xen Project" \ + maintainer.email="xen-devel@lists.xenproject.org" + +ENV DEBIAN_FRONTEND=noninteractive +ENV LINUX_VERSION=6.6.56 +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 \ + libelf-dev \ + && \ + apt-get autoremove -y && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/* && \ + \ + # Build the kernel + curl -fsSLO https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-"$LINUX_VERSION".tar.xz && \ + tar xvJf linux-"$LINUX_VERSION".tar.xz && \ + cd linux-"$LINUX_VERSION" && \ + make defconfig && \ + make xen.config && \ + scripts/config --enable BRIDGE && \ + scripts/config --enable IGC && \ + scripts/config --enable TUN && \ + cp .config .config.orig && \ + cat .config.orig | grep XEN | grep =m |sed 's/=m/=y/g' >> .config && \ + make -j$(nproc) bzImage && \ + cp arch/x86/boot/bzImage / && \ + cd /build && \ + rm -rf linux-"$LINUX_VERSION"* && \ + \ + # Clean up + apt-get --yes purge \ + build-essential \ + libssl-dev \ + bc \ + curl \ + flex \ + bison \ + libelf-dev \ + && \ + apt-get autoremove -y From patchwork Thu Oct 17 17:18:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lira, Victor M" X-Patchwork-Id: 13840502 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D08D3D3C526 for ; Thu, 17 Oct 2024 17:19:54 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.821003.1234792 (Exim 4.92) (envelope-from ) id 1t1U9t-0001dA-Ix; Thu, 17 Oct 2024 17:19:33 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 821003.1234792; Thu, 17 Oct 2024 17:19:33 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t1U9t-0001cU-Dr; Thu, 17 Oct 2024 17:19:33 +0000 Received: by outflank-mailman (input) for mailman id 821003; Thu, 17 Oct 2024 17:19:32 +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 1t1U9s-0007JO-52 for xen-devel@lists.xenproject.org; Thu, 17 Oct 2024 17:19:32 +0000 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2061c.outbound.protection.outlook.com [2a01:111:f403:2408::61c]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id f71c1d23-8cab-11ef-99a3-01e77a169b0f; Thu, 17 Oct 2024 19:19:29 +0200 (CEST) Received: from CH0PR04CA0110.namprd04.prod.outlook.com (2603:10b6:610:75::25) by DS0PR12MB7583.namprd12.prod.outlook.com (2603:10b6:8:13f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17; Thu, 17 Oct 2024 17:19:08 +0000 Received: from CH1PEPF0000AD83.namprd04.prod.outlook.com (2603:10b6:610:75:cafe::5d) by CH0PR04CA0110.outlook.office365.com (2603:10b6:610:75::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.19 via Frontend Transport; Thu, 17 Oct 2024 17:19:04 +0000 Received: from SATLEXMB03.amd.com (165.204.84.17) by CH1PEPF0000AD83.mail.protection.outlook.com (10.167.244.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8069.17 via Frontend Transport; Thu, 17 Oct 2024 17:19:03 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 17 Oct 2024 12:19:02 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 17 Oct 2024 12:19:02 -0500 Received: from xsjwoods50.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Thu, 17 Oct 2024 12:19:02 -0500 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: f71c1d23-8cab-11ef-99a3-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IqPhtnWtyeq8ejdG0iy2u53JbKgz7WitO14SiC3WtBFDHX+snDUFTTHItEjJfiULlMiMHESif/I11R9AD3P1aVolK7hui10O70QmKlOCyo8jlao2hznu+v2uNwtONmjsYPgj17NU6oBZt4XBMj/ohIA0tsil5Qe0gykaDu65NESzdYcLuXF0swsrMVauLx53uF79sGCzyjqy1a5LcBimNKCl6IFPlWhvQMV+ji91UnGi7LVvLEWYk9hqp0k5bAw1OzvevhvcoVdL1YXYeyOlXMrYUZ6mIEcp9hP6bRwx9q58D/8lr7mCVcKVQ3aVPg02KB85OJZhS1DRUXxOBCGN+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1zaVyoOUYBX6WPASuaE/d8keX1X2ko5PNA11fHB6pyo=; b=a81lmu8FRsgGOadZhtQQl1UFRQhnRBZwSLq+xAHFSdHUx2GM0gL/MfSrEIlzgJi/GojdE+OlT66PEKrJ/5fSulO+yck8IdQD2MRxdPgI4iWc+l6lZL4mH13IvK/z6CXfIx1EuiofWBUYzR72yC3czj9w7dRV0in6qBxhxMpxD0Pehmc6Ebll85mW7utpejI/jylHGH8zGI0My0756IScbUqGkZEBizc5nFhyDu83vgyIHixL6sHxrEBvK6g3K7ZmUHTaHMhj7ZdUyY8808FaIOxraT98zyzA69jc5IMjslo4rWzPuXEY4mdVIHiFNhnY5SCXikSbyM+amie+Vetryw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1zaVyoOUYBX6WPASuaE/d8keX1X2ko5PNA11fHB6pyo=; b=b6ifowMXu7LAe0AmNI3huEfrYwCDT/4EPvJeAlDIAi8c0l7ddw2/jM5E+KObmseqfifQUSAuS+ilLJGa3DpxgWKUPujUxnk0PeI3T+Ex7SWu4ol47ouZR3HU68aJy8F2pg5URg/OUJHT7bvGCDn9qjKNAVPi+vLoa6vQiju8/mg= X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C From: To: CC: Victor Lira , Doug Goldstein , Stefano Stabellini Subject: [XEN PATCH v1 2/3] automation: add linux argo test artifacts Date: Thu, 17 Oct 2024 10:18:27 -0700 Message-ID: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: None (SATLEXMB05.amd.com: victorm.lira@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000AD83:EE_|DS0PR12MB7583:EE_ X-MS-Office365-Filtering-Correlation-Id: cb0b346e-ae11-4431-ebf7-08dceecfccb1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|1800799024|376014|36860700013; X-Microsoft-Antispam-Message-Info: e73IPiKkOsAWd0wIc0wYdx8kaotxC92KFjJXmNQuBSnqZ7LnhL3SsNnNT72KlfS79nunwYOsSlrZ3AJ5oKNJ551ymVSE2nHSKs0rWlI5pICJeWrMSK7pfar3JzLhm177a2zctEHVIQ0rUxcNyHxic2qQAK7POK65WLJxJkrGbiwi81lIUYAb+8DXgKdAYe7Evae+H1y/i9VGCdBAFfH1bKHNApdhUnRWiCCeufcejagrk/JToz0c0nejOTFP1GzvL/qA9n3mwUXZzI+X33z2JiC9tYOgf2dMW1W2fGdsFVy+46/1jpGK1hNBwcnUBW3EnoOhRZlLIi1wbgza8aH99W502/PCP/xsI14Vt0hxPW0E+RhSxCLdvu10sbgvH3+nCHqrAZ/PABWHDu5OR5syj35BxSDpSy1uoCCdKKisXAlhwnLzo6YJeg6QqLujjC7LzjCHV7VszwhqRzAI6Kp47eue/+G28vUoq42xQ5qbmWovaYBDucnmg79N6w+hSC6lzNd+vtbM8YUdkzfcrWGHO/pyngVVfBkb3TEj2xQVS36eAVvvRXca93ZnibeV1vNpUZ7BUd+Zeb+Qjo76NiVZsUsvsjvVU7Sg9sr6AZp96DVB3wIxTOlTpcyK+/ck2JP4nrKyYwLKHfA0ey9v4z/54Ej6r7LcSGOtdxszQZjYdoPjkDDuWu47coBFePaKfV8qVmdplfVpeuHBtNeeaipDKA5OZ2UFbwKh9KA6v7OYyIBB1yCwqMw2gMgz4xP+7lVH29CoofZ9BndI3dERV1iei7mONmGT619P2WxTArfgiSmVTIEqen/Wia0EhbrrkGeTQju6T6GMNQQykkPEj56Mn3fz3aHoTnbcMh1TVSIiXdngzGDcK4JS12pQJHfg5i9URUt8zvmrFckaTQlw+QDUCkq3Uu9RGPRCpHdJmYcXa9kulK+kwSMbmVV987FVjtoNGZnlAR/TA36BAHfZekveXjjSIowVbiuC8Sdi9lZ34e0qAvUjwCblqWZFA2Q0elt9ItMOe2TNJfYDpUEZuELG/JNh8USGce6V4aEY86n9ddblkfhcITm1nv2o5DsjhJD7wiO8qzleTIjQgSkFI8jACmCIOlrk/5gH5MD1ctF/nUksnOjHWNH4vQhKZrxN//rzuzzkBHC7dd6ulHpTjAJ/2KaDbFmesToMcPT99kjKtLB6lyflfnSwfgET9P80soMtoh1qgNjodQG7NwLzzyiJ3EIdnN0fUqA234BX6cXMVa4dJl+kLr8ODb4WSOy62Fn0TYHUXWC7JoIZqUMwVDWIjtsC0W5YS9L8uFGGSMbEew+kLw39KijdNXOGymHzX+j2pPoS5+3ArdCpy2g83393pF1SEjB8C5rsKogC9bQ2Gds= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(1800799024)(376014)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2024 17:19:03.8683 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cb0b346e-ae11-4431-ebf7-08dceecfccb1 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000AD83.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7583 From: Victor Lira Add dockerfile for building container image that holds test binaries for Xen Argo test on Linux 6.6.56 x86_64 The build produces the following: - xen-argo.ko Linux kernel module - lib/libargo* Linux shared library - argo-exec Linux user test program Signed-off-by: Victor Lira --- Cc: Doug Goldstein Cc: Stefano Stabellini Cc: xen-devel@lists.xenproject.org --- .../tests-artifacts/argo/6.6.56.dockerfile | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 automation/tests-artifacts/argo/6.6.56.dockerfile -- 2.25.1 diff --git a/automation/tests-artifacts/argo/6.6.56.dockerfile b/automation/tests-artifacts/argo/6.6.56.dockerfile new file mode 100644 index 0000000000..a8e199ad3b --- /dev/null +++ b/automation/tests-artifacts/argo/6.6.56.dockerfile @@ -0,0 +1,95 @@ +# syntax=docker/dockerfile:1 +FROM --platform=linux/amd64 alpine:3.18 +LABEL maintainer.name="The Xen Project" \ + maintainer.email="xen-devel@lists.xenproject.org" + +ENV LINUX_VERSION=6.6.56 +ENV USER root + +RUN mkdir /build /artifacts +WORKDIR /build +ENV BUILDDIR=/build/ +ENV COPYDIR=/artifacts/ +ENV ARGO_SHA="705a7a8a624b42e13e655d3042059b8a85cdf6a3" +ENV ARGOEXEC_SHA="d900429f6640acc6f68a3d3a4c945d7da60625d8" + +RUN apk --no-cache add \ + \ + musl-dev \ + build-base \ + libc6-compat \ + linux-headers \ + bash \ + git \ + curl \ + flex \ + bison \ + elfutils-dev \ + autoconf \ + automake \ + libtool && \ + \ + # Prepare Linux sources + curl -fsSLO https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-"$LINUX_VERSION".tar.xz && \ + tar xJf linux-"$LINUX_VERSION".tar.xz && \ + cd linux-"$LINUX_VERSION" && \ + make ARCH=x86 defconfig && \ + make ARCH=x86 xen.config && \ + ./scripts/config --enable BRIDGE && \ + ./scripts/config --enable IGC && \ + ./scripts/config --enable TUN && \ + cp .config .config.orig && \ + cat .config.orig | grep XEN | grep =m |sed 's/=m/=y/g' >> .config && \ + make ARCH=x86 olddefconfig && \ + make ARCH=x86 modules_prepare && \ + \ + # Build Linux kernel module for Xen Argo + cd "${BUILDDIR}" && \ + git clone \ + --depth=1 --branch=master \ + https://github.com/OpenXT/linux-xen-argo.git && \ + git -C "${BUILDDIR}/linux-xen-argo" switch --detach "${ARGO_SHA}" && \ + make -C "linux-${LINUX_VERSION}" M="${BUILDDIR}/linux-xen-argo/argo-linux" \ + CFLAGS_MODULE="-Wno-error" KBUILD_MODPOST_WARN=1 && \ + cp "linux-xen-argo/argo-linux/xen-argo.ko" "${COPYDIR}/xen-argo.ko" && \ + \ + # Build Linux libargo shared library, applying fixes to build in Alpine + cd "${BUILDDIR}/linux-xen-argo/libargo" && \ + sed -i "s|AM_INIT_AUTOMAKE|AC_CONFIG_AUX_DIR(.)\nAM_INIT_AUTOMAKE|" configure.ac && \ + sed -i "s/__SOCKADDR_COMMON (sxenargo_)/sa_family_t sxenargo_family/" src/libargo.h && \ + sed -i "s/__SOCKADDR_COMMON_SIZE/(sizeof (unsigned short int))/" src/libargo.h && \ + autoreconf --install && \ + ./configure --prefix="${COPYDIR}" CPPFLAGS="-I${PWD}/../argo-linux/include" && \ + make && \ + make install && \ + \ + # Build Linux user program, modifying for xilinx argo test + cd "${BUILDDIR}" && \ + wget "https://raw.githubusercontent.com/OpenXT/xenclient-oe/${ARGOEXEC_SHA}/recipes-openxt/argo-exec/argo-exec/argo-exec.c" && \ + sed -i "s|#include ||" argo-exec.c && \ + sed -i "s|ret = shuffle(s, fds\[0\], fds\[1\]);|ret = shuffle(s, 0, 1);|" argo-exec.c && \ + gcc -I"${BUILDDIR}/linux-xen-argo/libargo/src" \ + -I"${BUILDDIR}/linux-xen-argo/argo-linux/include" \ + -L"${COPYDIR}/lib/" \ + -o argo-exec argo-exec.c -largo && \ + cp argo-exec "${COPYDIR}" && \ + \ + # Clean up + cd /build && \ + rm -fr linux-"$LINUX_VERSION"* linux-xen-argo argo-exec.c && \ + \ + apk del \ + \ + musl-dev \ + build-base \ + libc6-compat \ + linux-headers \ + bash \ + git \ + curl \ + flex \ + bison \ + elfutils-dev \ + autoconf \ + automake \ + libtool From patchwork Thu Oct 17 17:18:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lira, Victor M" X-Patchwork-Id: 13840500 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0AAF3D3C526 for ; Thu, 17 Oct 2024 17:19:42 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.820988.1234762 (Exim 4.92) (envelope-from ) id 1t1U9d-0008Ts-KJ; Thu, 17 Oct 2024 17:19:17 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 820988.1234762; Thu, 17 Oct 2024 17:19:17 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t1U9d-0008T3-Fn; Thu, 17 Oct 2024 17:19:17 +0000 Received: by outflank-mailman (input) for mailman id 820988; Thu, 17 Oct 2024 17:19:16 +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 1t1U9c-0007JO-Ki for xen-devel@lists.xenproject.org; Thu, 17 Oct 2024 17:19:16 +0000 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2062e.outbound.protection.outlook.com [2a01:111:f403:2414::62e]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id eeea65ec-8cab-11ef-99a3-01e77a169b0f; Thu, 17 Oct 2024 19:19:14 +0200 (CEST) Received: from CH0PR04CA0087.namprd04.prod.outlook.com (2603:10b6:610:74::32) by DS0PR12MB7897.namprd12.prod.outlook.com (2603:10b6:8:146::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.19; Thu, 17 Oct 2024 17:19:09 +0000 Received: from CH1PEPF0000AD83.namprd04.prod.outlook.com (2603:10b6:610:74:cafe::8d) by CH0PR04CA0087.outlook.office365.com (2603:10b6:610:74::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.19 via Frontend Transport; Thu, 17 Oct 2024 17:19:09 +0000 Received: from SATLEXMB03.amd.com (165.204.84.17) by CH1PEPF0000AD83.mail.protection.outlook.com (10.167.244.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8069.17 via Frontend Transport; Thu, 17 Oct 2024 17:19:09 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 17 Oct 2024 12:19:06 -0500 Received: from xsjwoods50.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Thu, 17 Oct 2024 12:19:06 -0500 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: eeea65ec-8cab-11ef-99a3-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RSQwTVDn3dJDpvs1vHDnvGmFXyMMIaqkl/ljZMUhyUAVjKoEG3ak2QUg9zmsza2Eo6aJki8Pqd9Y07+Gemg+Wr84rRCItmciCQJZ+LIHvveg53xocSW0gYU5U/RmxqVatBKNr8guJGoOi/WqSD35UEX2zP6ZmaSiOP74d2ummAnjMsCDk5zMYUUYm0I1S1Edow9EK/PZW/t2Lm/VzDvhCFLGR36TY8kHGfKVXWVz8cR1is/MlbHVNOYLu+L4INA7COlvFxJBXfn4pHeGPqKOY5nhQx+A+8T2ZXacTKYC6YyQvavD1nna+uXB6TRQ9ZatdaMDfyo/uQ0J8pzyGIMf6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gy3iCM2Pj8XFgiDVlyvkp+6fDd0KZqSJ0q+Uj82o+6g=; b=Vrvri066MB3HFwGUKJZHbalJUuygx6jPNjFCi+iOAlz7Yr0Z2AIqvlSxzCT0y35s4I6QRiIXxuq7vXShtdtRAAtbQ12sWXX74deHGieo83JCCU3sJUJMC1RxB84+KT0DciGw9m2fFJiCU4vu/OBFF9BkHN2xC5gD/YCHVvnC53eJ7e3GRO+wwXobz6S4a5Sgwi3GcmrOJ5ZWi6CkdRg58bGe/39EUVDpLrNn9vpr5Icy8J7FKl2X4V59QnnFUbfqTiEd/S0wtmBmX8sYftY8OJ90t9YQUbB3Az5ATe8o+UtEi3HX8Pxb0BxzoMJzSHx2dyluh0y3k+TWxap9tlJagA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gy3iCM2Pj8XFgiDVlyvkp+6fDd0KZqSJ0q+Uj82o+6g=; b=YUfZ6jH385NEPZ24RHyCP7+nzntyhsZda3O/DzwC/WLD/QnVx5nVcotb+B+PeH50tEuyCHbaNW7B0jNWV1ATldvmB8Ex3QqcO7UGEd/piE9soh1QVIaic0KcaLfo3yYezFkKY7FxgbAR/0fWP90iomIW/saBSJKSGp+Hcn7DziU= X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C From: To: CC: Victor Lira , Doug Goldstein , Stefano Stabellini Subject: [XEN PATCH v1 3/3] automation: add x86_64 test (linux argo) Date: Thu, 17 Oct 2024 10:18:28 -0700 Message-ID: <59ac55effa57b2046576b01bd4bc279369735e05.1729183051.git.victorm.lira@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: None (SATLEXMB03.amd.com: victorm.lira@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000AD83:EE_|DS0PR12MB7897:EE_ X-MS-Office365-Filtering-Correlation-Id: 8b6129b2-dfa9-4fcd-b2cb-08dceecfd021 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: e2njL6VdiYCxtDQvHgBGTNieKhkt/EIlru23Oo5/+DWQCdaspL7Pae6UVAhIn3Vxe2LjVznj+5Sd1mhnCbbaMgpfDi860WySEsIxthElNVuhvfsUI8PRqrD0nSsTXKHpyaD/pE7/LdMMH44h+USZTNqh5xyBInlxkzgpGGpUNhlq+0X7RmkJeuEXrPGIuhE9wHONFllW7Ko3ocrPP61MYf59I8YrsBexxe7iJW/5UoJECMQUa+h2NV8KPdlswven6lPjrmHV3I16OnowWCbNUztvbuont3x7Zb8ZiEgywXEpNAG8feXk5fInHOPcKHSOKjG1DTRswR89zd7PIP1JzpHY8gUC4A5SZeC6vAArz1M0wQtGcfSAdZxvwP6tWzePElAs37Lhj2/O59fFyR24wxEhInHu9BaiNQoayu5s635a3dkvljJd1Swzi76AgQLiYu8p5BB4dg2VOk+kdANQZjvoVDM7FtSJqkhPkGBFIhIGn4NrlmOFmvdxNkNBYkypzujmDVspjbn2NlXK+CkTM7D/xsR+7PcA2eHFN1oM2x+95c/exN1umCEGDZD+3918JtJGdQfTDNiEMhYgcA4HmzzbCCpfFU3VjdrC4Eps3bLWvYBhKJAYUPbObyMBayhUpUBhVmpOQubi6uFmAtjKf2TaK7dHYoZQx9PDhIgjGuW5ybzaL3hIQY/kRgZsStNWnBFY14gd1vZ6Ztc8x9DGm6t0rTkht9M8X0RIsbWArkH0S2KCeBiAtlm6hYkG1eH05s4xqDqhIcvAB7B3g5rNnshUJzAAcnTJDP0QOEdTDHYbu/7cLx7KQ5YLIX16Xvo982q/PuYhpgqPPKTLEXJDJZeqqMS0P15cIgEcJ4e0EHwEnDw13DKS8/RMp8HH6v96NnU5CTZO1Bob6ULwQgLEdC72AERYku4hf6XTA1D6sCyAkZG2fHn7zHfnxmIChrzqMbQ5SXW7Hz1uwiVR8YmToFttaayuUYd8qsMMimsVZOGxEHu2skJy9sr+sRxdLWYavTB52ECnP5pUaPM7mF64GLLWe2+OKhLKH61eqfcLuBFUwwjwHFDzejfqzOzRH8k5OUgNufaz+PysrXKNu4OWoHNMPmVYaq3iBZLalTxOZa4T1+J9IaS4C18p9rEFHsNR0L0gvNmIYJL70vhkmFTRE27BEMZH9YySK+5K0ZfCciJZga8vKbyePkhhQ30xGaaYMikhrsWJwXtYK6wPhr3VCRmytZbkvgoREt3dGIIoAe4WjUzPCE1LWwM0cJjX2GtRsH4bUIth0ZVii2mR/2pfGt1hyCXqifb76vIDb1oVmT0gNG16FakIwOopZHrHucOaeyJvBSs3U6tKLWXuqEVGuDTn2XylLYMqhlD5b9nlfak= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(1800799024)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2024 17:19:09.6340 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8b6129b2-dfa9-4fcd-b2cb-08dceecfd021 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000AD83.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7897 From: Victor Lira Add x86_64 hardware test that creates a Xen Argo communication connection between two PVH domains. In the test, dom0 creates a domU and listens for messages sent by the domU through Argo. To accomplish this, add Xen build jobs to export Linux and argo artifacts, and build Xen with CONFIG_ARGO=y. Update the xilinx x86_64 test script to support the new test, and add "sync_console" to command line to avoid an issue with console messages being lost. Signed-off-by: Victor Lira --- Cc: Doug Goldstein Cc: Stefano Stabellini Cc: xen-devel@lists.xenproject.org --- automation/gitlab-ci/build.yaml | 34 +++++++++ automation/gitlab-ci/test.yaml | 10 +++ .../scripts/xilinx-smoke-dom0-x86_64.sh | 76 +++++++++++++------ 3 files changed, 95 insertions(+), 25 deletions(-) -- 2.25.1 diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml index c2db69ecf8..827759fb7b 100644 --- a/automation/gitlab-ci/build.yaml +++ b/automation/gitlab-ci/build.yaml @@ -326,6 +326,30 @@ kernel-6.1.19-export: tags: - x86_64 +kernel-6.6.56-export: + extends: .test-jobs-artifact-common + image: registry.gitlab.com/xen-project/xen/tests-artifacts/kernel:6.6.56 + script: + - mkdir binaries && cp /bzImage binaries/bzImage + artifacts: + paths: + - binaries/bzImage + tags: + - x86_64 + +argo-6.6.56-export: + extends: .test-jobs-artifact-common + image: registry.gitlab.com/xen-project/xen/tests-artifacts/argo:6.6.56 + script: + - mkdir binaries && cp -ar /artifacts/* binaries + artifacts: + paths: + - binaries/xen-argo.ko + - binaries/lib/ + - binaries/argo-exec + tags: + - x86_64 + # Jobs below this line # Build jobs needed for tests @@ -341,6 +365,16 @@ alpine-3.18-gcc-debug: CONTAINER: alpine:3.18 BUILD_QEMU_XEN: y +alpine-3.18-gcc-debug-argo: + extends: .gcc-x86-64-build-debug + variables: + CONTAINER: alpine:3.18 + EXTRA_XEN_CONFIG: | + CONFIG_EXPERT=y + CONFIG_UNSUPPORTED=y + CONFIG_ARGO=y + BUILD_QEMU_XEN: n + debian-bookworm-gcc-debug: extends: .gcc-x86-64-build-debug variables: diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml index b27c2be174..849860627d 100644 --- a/automation/gitlab-ci/test.yaml +++ b/automation/gitlab-ci/test.yaml @@ -192,6 +192,16 @@ xilinx-smoke-dom0-x86_64-gcc-debug: - *x86-64-test-needs - alpine-3.18-gcc-debug +xilinx-smoke-dom0-x86_64-gcc-debug-argo: + extends: .xilinx-x86_64 + script: + - ./automation/scripts/xilinx-smoke-dom0-x86_64.sh argo 2>&1 | tee ${LOGFILE} + needs: + - alpine-3.18-gcc-debug-argo + - kernel-6.6.56-export + - alpine-3.18-rootfs-export + - argo-6.6.56-export + adl-smoke-x86-64-gcc-debug: extends: .adl-x86-64 script: diff --git a/automation/scripts/xilinx-smoke-dom0-x86_64.sh b/automation/scripts/xilinx-smoke-dom0-x86_64.sh index 7027f083ba..f70cfdc155 100755 --- a/automation/scripts/xilinx-smoke-dom0-x86_64.sh +++ b/automation/scripts/xilinx-smoke-dom0-x86_64.sh @@ -9,6 +9,8 @@ fatal() { exit 1 } +WORKDIR="${PWD}" + # Test parameter defaults. TEST="$1" PASS_MSG="Test passed: ${TEST}" @@ -24,9 +26,10 @@ kernel = "/boot/vmlinuz" ramdisk = "/boot/initrd-domU" extra = "root=/dev/ram0 console=hvc0" memory = 512 -vif = [ "bridge=xenbr0", ] -disk = [ ] ' +DOMU_CFG_EXTRA="" +copy_domU_files () { :; } +copy_dom0_files () { :; } # Select test variant. if [ "${TEST}" = "ping" ]; then @@ -39,6 +42,14 @@ done echo \"${DOMU_MSG}\" " DOM0_CMD=" +brctl addbr xenbr0 +brctl addif xenbr0 eth0 +ifconfig eth0 up +ifconfig xenbr0 up +ifconfig xenbr0 192.168.0.1 +# get domU console content into test log +tail -F /var/log/xen/console/guest-domU.log 2>/dev/null | sed -e \"s/^/(domU) /\" & +xl create /etc/xen/domU.cfg set +x until grep -q \"${DOMU_MSG}\" /var/log/xen/console/guest-domU.log; do sleep 1 @@ -46,6 +57,34 @@ done set -x echo \"${PASS_MSG}\" " + DOMU_CFG_EXTRA=' +vif = [ "bridge=xenbr0", ] +disk = [ ] +' +elif [ "${TEST}" = "argo" ] +then + PASS_MSG="TEST: Message from DOMU" + XEN_CMD_EXTRA="argo=1,mac-permissive=1" + DOMU_CMD=" +insmod /root/xen-argo.ko +until false +do + echo \"${PASS_MSG}\" + sleep 1 +done | argo-exec -p 28333 -d 0 -- /bin/echo +" + DOM0_CMD=" +insmod /root/xen-argo.ko +xl create /etc/xen/domU.cfg +argo-exec -l -p 28333 -- /bin/echo +" +copy_dom0_files () +{ + cp "${WORKDIR}/binaries/xen-argo.ko" "root/" + cp -ar "${WORKDIR}/binaries/lib/"* "usr/local/lib/" + cp "${WORKDIR}/binaries/argo-exec" "usr/local/bin/" +} +copy_domU_files () { copy_dom0_files; } else fatal "Unknown test: ${TEST}" fi @@ -54,18 +93,18 @@ fi mkdir -p rootfs cd rootfs tar xzf ../binaries/initrd.tar.gz -mkdir proc -mkdir run -mkdir srv -mkdir sys +mkdir proc run srv sys rm var/run echo "#!/bin/sh - +set -x +export LD_LIBRARY_PATH=/usr/local/lib +PATH=/usr/local/bin:/usr/local/sbin:\$PATH ${DOMU_CMD} " > etc/local.d/xen.start chmod +x etc/local.d/xen.start echo "rc_verbose=yes" >> etc/rc.conf sed -i -e 's/^Welcome/domU \0/' etc/issue +copy_domU_files find . | cpio -H newc -o | gzip > ../binaries/domU-rootfs.cpio.gz cd .. rm -rf rootfs @@ -74,37 +113,24 @@ rm -rf rootfs mkdir -p rootfs cd rootfs tar xzf ../binaries/initrd.tar.gz -mkdir boot -mkdir proc -mkdir run -mkdir srv -mkdir sys +mkdir boot proc run srv sys rm var/run cp -ar ../binaries/dist/install/* . echo "#!/bin/bash - +set -x export LD_LIBRARY_PATH=/usr/local/lib bash /etc/init.d/xencommons start - -brctl addbr xenbr0 -brctl addif xenbr0 eth0 -ifconfig eth0 up -ifconfig xenbr0 up -ifconfig xenbr0 192.168.0.1 - -# get domU console content into test log -tail -F /var/log/xen/console/guest-domU.log 2>/dev/null | sed -e \"s/^/(domU) /\" & -xl create /etc/xen/domU.cfg ${DOM0_CMD} " > etc/local.d/xen.start chmod +x etc/local.d/xen.start -echo "${DOMU_CFG}" > etc/xen/domU.cfg +echo "${DOMU_CFG}${DOMU_CFG_EXTRA}" > etc/xen/domU.cfg echo "rc_verbose=yes" >> etc/rc.conf echo "XENCONSOLED_TRACE=all" >> etc/default/xencommons echo "QEMU_XEN=/bin/false" >> etc/default/xencommons mkdir -p var/log/xen/console cp ../binaries/bzImage boot/vmlinuz cp ../binaries/domU-rootfs.cpio.gz boot/initrd-domU +copy_dom0_files find . | cpio -H newc -o | gzip > ../binaries/dom0-rootfs.cpio.gz cd .. @@ -116,7 +142,7 @@ cp -f binaries/bzImage ${TFTP}/${TEST_BOARD}/vmlinuz cp -f binaries/dom0-rootfs.cpio.gz ${TFTP}/${TEST_BOARD}/initrd-dom0 echo " net_default_server=10.0.6.1 -multiboot2 (tftp)/${TEST_BOARD}/xen ${XEN_CMDLINE} +multiboot2 (tftp)/${TEST_BOARD}/xen ${XEN_CMDLINE} sync_console module2 (tftp)/${TEST_BOARD}/vmlinuz console=hvc0 root=/dev/ram0 earlyprintk=xen module2 (tftp)/${TEST_BOARD}/initrd-dom0 boot