From nobody Fri Nov 22 03:59:11 2024 Delivered-To: importer@patchew.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; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass(p=quarantine dis=none) header.from=amd.com ARC-Seal: i=2; a=rsa-sha256; t=1729185611; cv=pass; d=zohomail.com; s=zohoarc; b=INuH0f2ziacXPRW4N4zxafHk6L0+vwXlx1bOtU+EIWxOWBLGeYlRdvKPO3oyDyBqSquAUO8oSWaVuUjlr4w72jnvIaZUCp/vThSF/5lFtLW6UMQx/+1R4RIrJIj3lXzK4wUBl6PMUaFpRNkQszIA5P0Sl5J8glmeHh5MuHK87yo= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1729185611; 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=1zaVyoOUYBX6WPASuaE/d8keX1X2ko5PNA11fHB6pyo=; b=ehgJL/YPY6XeY+vink9pTmcTv2FyexdVoGoopWxHUL/YYtBTbvD9G2FsWA6M2SaWrCePUehDiNoQv4mQBW/QwTzPjJYQGCsrdYvTtHfMuHrkBpqZCHzMsPDA0mb77MS0SSfk0aQwV2T7DIIWK995l6zUzb1clvikuicbqAbIqTA= ARC-Authentication-Results: i=2; 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; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1729185611911269.313167998219; Thu, 17 Oct 2024 10:20:11 -0700 (PDT) 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 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-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: 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 (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; 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 Content-Transfer-Encoding: quoted-printable 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: =?us-ascii?Q?e73IPiKkOsAWd0wIc0wYdx8kaotxC92KFjJXmNQuBSnqZ7LnhL3SsNnNT72K?= =?us-ascii?Q?lfS79nunwYOsSlrZ3AJ5oKNJ551ymVSE2nHSKs0rWlI5pICJeWrMSK7pfar3?= =?us-ascii?Q?JzLhm177a2zctEHVIQ0rUxcNyHxic2qQAK7POK65WLJxJkrGbiwi81lIUYAb?= =?us-ascii?Q?+8DXgKdAYe7Evae+H1y/i9VGCdBAFfH1bKHNApdhUnRWiCCeufcejagrk/JT?= =?us-ascii?Q?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NH4?= =?us-ascii?Q?vQhKZrxN//rzuzzkBHC7dd6ulHpTjAJ/2KaDbFmesToMcPT99kjKtLB6lyfl?= =?us-ascii?Q?fnSwfgET9P80soMtoh1qgNjodQG7NwLzzyiJ3EIdnN0fUqA234BX6cXMVa4d?= =?us-ascii?Q?Jl+kLr8ODb4WSOy62Fn0TYHUXWC7JoIZqUMwVDWIjtsC0W5YS9L8uFGGSMbE?= =?us-ascii?Q?ew+kLw39KijdNXOGymHzX+j2pPoS5+3ArdCpy2g83393pF1SEjB8C5rsKogC?= =?us-ascii?Q?9bQ2Gds=3D?= 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 X-ZohoMail-DKIM: pass (identity @amd.com) X-ZM-MESSAGEID: 1729185613278116600 Content-Type: text/plain; charset="utf-8" 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 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=3Ddocker/dockerfile:1 +FROM --platform=3Dlinux/amd64 alpine:3.18 +LABEL maintainer.name=3D"The Xen Project" \ + maintainer.email=3D"xen-devel@lists.xenproject.org" + +ENV LINUX_VERSION=3D6.6.56 +ENV USER root + +RUN mkdir /build /artifacts +WORKDIR /build +ENV BUILDDIR=3D/build/ +ENV COPYDIR=3D/artifacts/ +ENV ARGO_SHA=3D"705a7a8a624b42e13e655d3042059b8a85cdf6a3" +ENV ARGOEXEC_SHA=3D"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_V= ERSION".tar.xz && \ + tar xJf linux-"$LINUX_VERSION".tar.xz && \ + cd linux-"$LINUX_VERSION" && \ + make ARCH=3Dx86 defconfig && \ + make ARCH=3Dx86 xen.config && \ + ./scripts/config --enable BRIDGE && \ + ./scripts/config --enable IGC && \ + ./scripts/config --enable TUN && \ + cp .config .config.orig && \ + cat .config.orig | grep XEN | grep =3Dm |sed 's/=3Dm/=3Dy/g' >> .config = && \ + make ARCH=3Dx86 olddefconfig && \ + make ARCH=3Dx86 modules_prepare && \ + \ + # Build Linux kernel module for Xen Argo + cd "${BUILDDIR}" && \ + git clone \ + --depth=3D1 --branch=3Dmaster \ + https://github.com/OpenXT/linux-xen-argo.git && \ + git -C "${BUILDDIR}/linux-xen-argo" switch --detach "${ARGO_SHA}" && \ + make -C "linux-${LINUX_VERSION}" M=3D"${BUILDDIR}/linux-xen-argo/argo-li= nux" \ + CFLAGS_MODULE=3D"-Wno-error" KBUILD_MODPOST_WARN=3D1 && \ + 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|" conf= igure.ac && \ + sed -i "s/__SOCKADDR_COMMON (sxenargo_)/sa_family_t sxenargo_family/" sr= c/libargo.h && \ + sed -i "s/__SOCKADDR_COMMON_SIZE/(sizeof (unsigned short int))/" src/lib= argo.h && \ + autoreconf --install && \ + ./configure --prefix=3D"${COPYDIR}" CPPFLAGS=3D"-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_S= HA}/recipes-openxt/argo-exec/argo-exec/argo-exec.c" && \ + sed -i "s|#include ||" argo-exec.c && \ + sed -i "s|ret =3D shuffle(s, fds\[0\], fds\[1\]);|ret =3D 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 -- 2.25.1