From patchwork Wed Mar 2 14:27:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12766193 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 0293AC433FE for ; Wed, 2 Mar 2022 14:29:13 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.282278.480927 (Exim 4.92) (envelope-from ) id 1nPPyM-0000aK-DS; Wed, 02 Mar 2022 14:28:58 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 282278.480927; Wed, 02 Mar 2022 14:28:58 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nPPyM-0000a1-8D; Wed, 02 Mar 2022 14:28:58 +0000 Received: by outflank-mailman (input) for mailman id 282278; Wed, 02 Mar 2022 14:28:57 +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 1nPPyL-0000Xm-AX for xen-devel@lists.xenproject.org; Wed, 02 Mar 2022 14:28:57 +0000 Received: from esa3.hc3370-68.iphmx.com (esa3.hc3370-68.iphmx.com [216.71.145.155]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 165621bb-9a35-11ec-8539-5f4723681683; Wed, 02 Mar 2022 15:28:55 +0100 (CET) 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: 165621bb-9a35-11ec-8539-5f4723681683 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1646231335; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=Uv6+k4P+pq/NsyHUUBb3gegl0iO3HUiZOvNvr/hkT1s=; b=EmHrMjtiumErP4dK43Z+n6EJpc8p5ropFmAmL/NLxaIZnhAz2bYK8vct dBElmz9ZkyeoyBfiYLLFdv0YcpIyzH2ABetqNf5+FXpRhyb+5cmLKqWxg JCwEeYVEkabeMqQBba0uVLxHk21/86f8uL3hZeZCWr19QOfD75Vm90bUt k=; Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com X-SBRS: 5.1 X-MesageID: 65302961 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:pxiJ26oHSCjSw/44ffkVUe3SPfdeBmIzZRIvgKrLsJaIsI4StFCzt garIBnVO/aJY2SkKNB+Po229B5XvMfRyNNiTQRlriBnEC5H8ZuZCYyVIHmrMnLJJKUvbq7GA +byyDXkBJppJpMJjk71atANlVEliefQAOCU5NfsYkidfyc9IMsaoU8lyrZRbrJA24DjWVvW4 Ymq+KUzBXf+s9JKGjNMg068gEsHUMTa4Fv0aXRnOJinFHeH/5UkJMp3yZOZdhMUcaENdgKOf M7RzanRw4/s10xF5uVJMFrMWhZirrb6ZWBig5fNMkSoqkAqSicais7XOBeAAKv+Zvrgc91Zk b1wWZKMpQgBHJfjv9hNWglhOR5aGvVU+bbpGHKurpnGp6HGWyOEL/RGCUg3OcsT+/ptAHEI/ vsdQNwPRknd3aTsmuv9E7QywJR4RCXoFNp3VnVI1zbWAOxgWZnea67L+cVZzHE7gcUm8fP2O ZdCMWA+Mk2ojxtnGg8qCasZge2RpFLbSzhYmmi7u7Y8/D2GpO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jcfnYXGsBBjYVWfl/y8Ew7puxx16 pNwiawq4dXJQmoplWz2/H4EzVR0makq3srluAey1ZFV5EFVbNXpYsDuGtIDZY7Gj7g4oxPKp gjMCjl3ocWTbqmVQGYgoE2q+bcHUjbXy32D3Tqg/blnQS/xxtCvgklLM92pAZ1yHtycegA2w 3+CNUaqFh/dL5nUUtDPpZyfSLOMB20ffvtChPlHb21LtBPB5ryw6SHlYndotvaPKA18A== X-IronPort-AV: E=Sophos;i="5.90,149,1643691600"; d="scan'208";a="65302961" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DoLDk55JAlb6DWt9Lc5jdbn3zekeMF3gnDdYE+ZZOrHyGWK1iWOpSo9By1jCvobYNTdMyncHxT5nt7YUumwfmwycwLR6mxE3PDx08neO2IAgGwJnGAA+MWJLBf+LUMLgYbGLEuEDyyg5e23s80/Uim7Qd4oGmBYD9+pgNCQExxkHs9Aup1wB1TRJCM71Sbe27ZdSeS8Hdk1SuuM4ghTscB7y1E/H9Zr1oFahTrA7Domf6W+rcswPH9SWQprt3b5VjQe/B61oK3/oamDKhIngQy0DOb48uq0hrVePBEXSLFt+FwqvuI2PWRGLYV6/t1D3693blDfKKvpZv5gQ7aM6hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=mXqJC3FYz1zgAzycpIM3RwRbyRXV+eqnGOl8ZN4IR7w=; b=mtXokVnSmQlbFSWEnVeVR/wd9R/tRfpI9LGLDEOAEZq7+qrRMNhBPT1YNoI8n7tFmmpw9IDluxazPAk/8Ezynl0v20RSzTws1w4lfrC7DgiyHRids5tqNY8sbRHsxAExtMPQSpXy+xDFB67sadcDl0DoF4F5bh8q4awGpOAbV5xYGGbwvEDqlFUKNCyChoeageLfhnEt5zYBoFgclJsUZxWWtW4iICyzV4na1MuSahAu/1n27I/rKFJBAqq9irtJXCcBGg9uN2RB5RswHQfQpKV6uP5CBOUIRl5Tqk2PvM5WHhAZ6a+c56v9WQ0FrGqYIi76Fjf5oCTZWKICtAAUAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mXqJC3FYz1zgAzycpIM3RwRbyRXV+eqnGOl8ZN4IR7w=; b=m7J2xEqvcnJb4RgQu2GQBgGEnY4hZ0sCLtqjRXwuCKhzrXBo/MqrvvmGK5d0kzsDzBwKyar0vI3zMQAD08pt6RWBtnSZkcT29XCTeV4WoDyeLKRD1aOCXub8lIfmFIgxzNOid8SBr485TaDjB/tv18OyTmoP3VC9PEnbqvIa0+Y= From: Roger Pau Monne To: CC: , , , , , Roger Pau Monne Subject: [PATCH 1/4] livepatch: update readme to mention --xen-depends Date: Wed, 2 Mar 2022 15:27:08 +0100 Message-ID: <20220302142711.38953-2-roger.pau@citrix.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220302142711.38953-1-roger.pau@citrix.com> References: <20220302142711.38953-1-roger.pau@citrix.com> X-ClientProxiedBy: LO2P265CA0125.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9f::17) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f516a324-02bf-45bd-1132-08d9fc58f815 X-MS-TrafficTypeDiagnostic: BN6PR03MB3330:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hX2dYJKiUMp6U8u9xSRYboAp0tZg1AvPN/1qN6dX1iZKUO7urCAsLCJCG71s7G4ONvTJhNVMeOmIUkUmz5RNl/DIVfClTwehihxAaXoRkzey3jFW09SZrodcD/JqzVMiTGH6u3oP2CV6o6QjeItgczQe+U4VciSg+U9x8kc9edblyBlweLaD31kO5dx47wnVUwbpPIrZLKgbhLInVxdSWaeJ9WEOiLzDm7yCrfJ8PfrJm18sQoMH2iiEruGqoQGU8uuNp8IkGWWVj1NDS+WEMdXsHwUmN/v+Z2r2UVEd3mPasoAM6wbDBZY+vc+LPbIAMREDb9nxFw2RYuLY3qFABkA5KuyiCI0q5RgxohjGyoh3zvUekZIT5Na2ip14bQ/AALh5Ao1fFFpfiVA5r6sU7ojN5VYb596KDpbzHVe3MpkkwwlbqHKFevYYCjlp2mW74mC231MD/RC4np99cj32BDtJox0jIzQ37FR08F2KUUblkdtFMav9J6egp116qs0+wlR32ywJ4UN2VryBfM/G4xCNjTRhBLN4b8zOg3ZPl0yEyx5fwitiri+NgFNzXyVm80Kg9pHu/HwLUb3iGGt5yzFDGiAH76ghCFQyV4hl+5kBI/BwiveY/BaPYFk0akX79k1Is60EnU1ZFmnja3IYOQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(6506007)(6512007)(6666004)(38100700002)(66476007)(66556008)(86362001)(66946007)(508600001)(316002)(6916009)(4744005)(82960400001)(5660300002)(6486002)(8936002)(8676002)(36756003)(2906002)(83380400001)(26005)(186003)(2616005)(1076003)(107886003)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?1PXoh7JU9/piay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i1aGVbDNYj1ebEI4?= =?utf-8?q?j4bkbJpXqq1D6oBE98AQsmw4ihoI/olHalAl3B7FcpYs9Z6kKzx5Ui/ESCTSekj+w?= =?utf-8?q?Ja8kKYsaQTkzB2QeCaKLUar+DXPdDJ/fnses7yWPSXk3mLItw5niZ5C5IdBBN7zxC?= =?utf-8?q?5B05A7boG0eOL4AkBvTSsjIFV/gbPdRFFnWD/YV9wfp5hFPCYorBcDJxj0L3oP/TC?= =?utf-8?q?JAJFKJicAaNP7826YeSRJ+4iCNHKrmKihzg2D8NkQoiCUWojFlbgC4w3qhiJHPtpu?= =?utf-8?q?3hw+ee+R+fYhlCn5lJXdgncrQfRc5RhjxktxTnTY9sQctwXPgaPJExx9RupWuGwaI?= =?utf-8?q?/lu29WJWh/OCo2OA+gA9J8EihxDa02YlOoRqjkYjoTe43OLbfALi4UEz4VjcHttaC?= =?utf-8?q?01wbXmllXnwTK2Uv/CXzEonRnnHx+/5G7zWUili9WzbjYYi3kYE6eP81zloQzAppl?= =?utf-8?q?KnFCftthbKmKS2sUD6tlCd8Qwy6cjofgc1dIuYjfxIf3HjqNVTcrUS2m3t90BwV0G?= =?utf-8?q?kvAKAjL53bCq+Hyf/uqO8687UsMlHtBG2qXNJxxiMYbBfbJ5kAKht9f0r625wChrx?= =?utf-8?q?3NYOxSbTcb5ip1mTdv0lV6XA/ZvB9oWHmc/quRcEHNMmbKFu9xx9H+HAxvpxGebhf?= =?utf-8?q?vF1rxAFewXPjr7SBii7RAaDWmXCF1ixYV29x7qL8cpwjQJW2VqXuj48=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: f516a324-02bf-45bd-1132-08d9fc58f815 X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2022 14:28:50.0280 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: U3N4Gy76DFa2vPVCOKFgb94DZ1fA8UEVonjjLzsIxcT4oJV8Byu68/sDv7nW6Ae+p3jG/uPk+5QNyHsadNoHjw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB3330 X-OriginatorOrg: citrix.com Fixes: b19df7b2c05e ('livepatch-build: Embed hypervisor build id into every hotpatch') Signed-off-by: Roger Pau Monné Reviewed-by: Bjoern Doebel Reviewed-by: Ross Lagerwall --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 653c624..b48a3df 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Next, build a live patch, using a patch and the source, build ID, and ``` $ cd ~/src/livepatch-build $ ./livepatch-build -s ~/src/xenbuild -p ~/src/xsa.patch -o out \ - -c ~/src/xen/xen/.config --depends $BUILDID + -c ~/src/xen/xen/.config --depends $BUILDID --xen-depends $BUILDID Building LivePatch patch: xsa Xen directory: /home/ross/src/xenbuild From patchwork Wed Mar 2 14:27:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12766191 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 C94B3C433EF for ; Wed, 2 Mar 2022 14:29:12 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.282279.480945 (Exim 4.92) (envelope-from ) id 1nPPyN-00012K-Km; Wed, 02 Mar 2022 14:28:59 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 282279.480945; Wed, 02 Mar 2022 14:28:59 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nPPyN-000122-GE; Wed, 02 Mar 2022 14:28:59 +0000 Received: by outflank-mailman (input) for mailman id 282279; Wed, 02 Mar 2022 14:28:58 +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 1nPPyM-0000Xm-3E for xen-devel@lists.xenproject.org; Wed, 02 Mar 2022 14:28:58 +0000 Received: from esa3.hc3370-68.iphmx.com (esa3.hc3370-68.iphmx.com [216.71.145.155]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 1807c870-9a35-11ec-8539-5f4723681683; Wed, 02 Mar 2022 15:28:57 +0100 (CET) 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: 1807c870-9a35-11ec-8539-5f4723681683 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1646231337; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=+2Ei8EBR9EXf62Akrk8b2opcb3IwuX8/9v9H3NAEkMw=; b=WI7WAmhK6GtvoM5e5DvoTWKt2tcUAKshQh0CQQ2XX0Sz6bb+QRgZLUkd LyL3230EwEzCRClrTMszUUXuxrlqMIZN33j7kda91o1ycvA+TBoh7i5i+ TeY2f/Mr4ivTZWyZjdUxJRcVrlHa7GVid6xlT0S31aYg16tFH8l5AcRwe I=; Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com X-SBRS: 5.1 X-MesageID: 65302964 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:5zgw/asgTawbLPKrt6yY5HsbuufnVJZeMUV32f8akzHdYApBsoF/q tZmKW+OOP7ZajOgeNB+a4izo0IHuMOAzYRmSVBqqC01Hykb+JbJXdiXEBz9bniYRiHhoOOLz Cm8hv3odp1coqr0/0/1WlTZhSAgk/nOHNIQMcacUsxLbVYMpBwJ1FQyw4bVvqYy2YLjW1jV4 4upyyHiEATNNwBcYzp8B52r8HuDjNyq0N/PlgVjDRzjlAa2e0g9VPrzF4noR5fLatA88tqBb /TC1NmEElbxpH/BPD8HfoHTKSXmSpaKVeSHZ+E/t6KK2nCurQRquko32WZ1he66RFxlkvgoo Oihu6BcRi8GBZ/3gsoFeSBSAiguL614x+bgMHKw5Jn7I03uKxMAwt1rBUAye4YZ5vx2ESdF8 vlwxDIlN07ZwbjsmfTiF7cq1p9LwMrDZevzvll6yj7UF7A+SI3rSKTW/95Imjw3g6iiGN6AO pFBM2sxMHwsZTVLZngMC5sxnNyxpX7/WmEJtAK/tYsotj27IAtZj+G2bYu9lsaxbcdImkeVo ErW8mK/BQsVXPSFzjWI6DS0j/LnliLnQpgTBPuz8fsCqFGUy2YeDDUfUFKppv//hkPWc8JSL QkY9zQjqYA29Ve3VZ/tUhugunmGsxUAHd1KHIUS6waL0KPYpRmYAmssSSRIY9gr8sQxQFQXO kShxo2zQ2Y16fvMFCzbpuz8QS6O1TY9AlQwXjUqVSE86cjq8JMzsC2WacdpH/vg5jHqIg3Yz zePpSk4orwci88Xyqm2lWz6byKQSovhFVBsuFiONo6xxkYgPdP+OdT0gbTOxasYdO6kok+9U G/ociR0xMQHFtmzmSOEW43h95n5tq/eYFUwbbOCdqTNFghBGVb+Jei8AxkkfS+F1/ronxezO ic/XisLufdu0IOCN/MfXm5II51CIVLcPdrkTOvISdFFf4J8cgSKlAk3OxLOhj61yBlyyPBlU Xt+TSpKJSxAYUiA5GDrL9rxLJdxnnxurY8tbcqTI+ubPUq2OyfOFOZt3KqmZeEl9qKUyDg5A P4EX/ZmPy53CbWkCgGOqNZ7BQlTcRATWMCnw+QKJ7XrClc3Rwkc5wr5nOpJl3pNxP8OyI8lP xiVBydl9bYIrSafeFXSNys6M+uHsFQWhStTABHA9G2AghALSY2u8L0eZ90we7wm//Zk1vl6U 78OfMDoPxiFYm2vF+g1BXUlkLFfSQ== IronPort-HdrOrdr: A9a23:niDfga5jbz13fQLliAPXwSqBI+orL9Y04lQ7vn2ZFiY7TiXIra yTdaoguCMc6AxxZJkh8erwXJVoJkmsiaKdgLNhQItKOTOJhILGFvAF0WKP+UyDJ8S6zJ8n6U 4CSdkONDSTNykCsS+S2mDReLxBsbq6GeKT9J3jJh9WPH9XgspbnmBE42igYyhLrF4sP+tHKH PQ3LsOmxOQPVAsKuirDHgMWObO4/XNiZLdeBYDQzoq8hOHgz+E4KPzV0Hw5GZVbxp/hZMZtU TVmQ3w4auu99m91x/nzmfWq7BbgsHoxNdvDNGFzuIVNjLvoAC1Y5kJYczIgBkF5MWUrHo6mt jFpBkte+x19nPqZ2mw5SDg3gHxuQxenEPK+Bu9uz/OsMb5TDU1B45qnoRCaCbU7EImoZVVzL 9L93jxjesZMTrw2ADGo/TYXRBjkUS55VA4l/QIsnBZWYwCLJdMsI0k+l9PGptoJlO31GkeKp guMCjg3ocXTbvDBEqp/VWHgebcE0jbJy32DHTr4aeuonprdHMQ9Tpt+CVQpAZEyHsHceg22w 31CNUZqFhwdL5lUUsEPpZ4fSKWMB26ffueChPaHbzYfJt3Tk4l7aSHpIkI2A== X-IronPort-AV: E=Sophos;i="5.90,149,1643691600"; d="scan'208";a="65302964" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PPV0nWT7i7y75krwemeZicgBtQF1mEe3PWNQglr/q/FJ1fsnJhtaJfsUvSah2mvRnfHHUIVxZQqznZ8zU3jTlPGWpCgb9vhuYhyDl8NMpDQuVdg6HiUJycoMh/jMPP0EnBm+FmSJ1iVyPpVrer7bp2CiHjr3iSQjs7c6OGrxg7UmxwlKmCnHcjGlR0v5gjbhe+eHrHpV74yST1y7wqgFr6Gph9n2KZb9mr3ePRT8ARXzVVVUqrQ+AvyEuXkhgwnHaAchSII0wplUgkeIwpDn/C+0FVkihwK81imopDHsgleCVm09DruV4dDJ9yWu4OU44AEBF7X3maJXnMcSsul13Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=UVs0N4lrLYXtidMdZMljGcSKcwUkd/vbtt8k48wXfUA=; b=oKUI65qG/dP+o/mz5NhWujjQ9uJwLtAtyErfytgAC+TWjuW4KaD5ZYeCCfMFIhhREJNLEMSrQfawQ0WdxYbXFh+NnsOVtVubTyOmFvDwopX/H2LGqXPjCQSgyG3XmH9rzhrMAuIQgJVXRLw8g6xBE/nWefQkzklzwrIHvzfHn+ZvDVHJ8WUAQYoNCarlbJRG519VHt7+Aqa0sYVN8GuOEwiCcDfUEZIT4yqaMuht3VPfFs42tmS+d4kJLSPsRijdSc7sgVLu34stnnHSp6KIRQ2KIxzcbk6s3VrY82GXqeGbj8QjDRTq9RXfhxZyfUw/kDlclrscP6m2eJFcV8F+wQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UVs0N4lrLYXtidMdZMljGcSKcwUkd/vbtt8k48wXfUA=; b=ij3Y8I/ggRgq8NQSGNeGQK1s9zrOK5FDDgD+rKr3OqYlR4ISSADi18H24SQzngr76kgd6W49RXX9JdASnBi+YH+OOz77MS5QL8gArS4fgFq5FeC1UdRXexTSpGYQ2YFx4imtcM7vgooKtSZ12rh7ASF+XplkdiPrxL6ty2daP9E= From: Roger Pau Monne To: CC: , , , , , Roger Pau Monne , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Subject: [PATCH 2/4] livepatch: improve rune for fetching of Build ID Date: Wed, 2 Mar 2022 15:27:09 +0100 Message-ID: <20220302142711.38953-3-roger.pau@citrix.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220302142711.38953-1-roger.pau@citrix.com> References: <20220302142711.38953-1-roger.pau@citrix.com> X-ClientProxiedBy: LO2P265CA0027.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:61::15) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2e0fd313-af34-4a09-514a-08d9fc58fa85 X-MS-TrafficTypeDiagnostic: BN6PR03MB3330:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GHxr/jeYeXBVgkmZf2KqO+MKOrRLQaY2KLg7oSCQjiuRN2PLPcZyItshcg0OSn0C7ppDBfGSUWvkTAHChc4/byvM/8tZJOjdJeMUn/ObVJno0io2NnG2GZATJpLIlW/j7a06/hSvcY1EK50PcmsV5Ky23iJmws5iJKDdsMPGdNxgT5YMvXUeP5K1yq4gG210TCCdpjIdFSr7SD271AqbWQ5J03lwUCusydoiEDg82u5qQffXecu9WeG6olrQIov+66dLVR/pgTuQrBh1nfUdeIWyF6DI3MAmct0tBqgRWKLMrhrV24KRcBF8NrebbBYl/C6Ckh5P/9V2slEuBizuSSxPFsThncjD79GK6fmdkts+j5pjj2nsCQ8JfUuxkvj+N+EQuRAfJN8K+dqcfZrt1V1YyQqbUPGmMx0XceMCaRzcXX+jvctHJl/KvHjt9/mcbCg/aXXLp86q72/BUPsWKojhlQ1N127QReXskXbngiUAFM/7r5AviRxmTSUROUw71Y6rPN+P8rMZm5zgZ+P2kW64Wu3CDgth9n5Mb30E6C0Jz9txXajKC/y24yB0EoqbkZ7m/dYxKlZgUZSvEUtnF+eIVdKESofFLAUR4JHjO/Yf8OuRGXt9YYi6MH/kLlB/Z6kX7tgmhNlWuFnNqHRNoQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(6506007)(6512007)(6666004)(38100700002)(66476007)(66556008)(86362001)(66946007)(508600001)(54906003)(316002)(6916009)(4744005)(82960400001)(5660300002)(6486002)(8936002)(8676002)(36756003)(2906002)(83380400001)(26005)(186003)(2616005)(1076003)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?TIlZBCnjuXtY2VDKxtXnrwtAoEAo?= =?utf-8?q?Xx8nSfjdrM29Y2vsKLm6+FoHFyAoj5zUo84SGNRwYHdwbVRxIi9dtXhdpXaq9qQuy?= =?utf-8?q?ZYhlQONNgo+MNrPWSlg53gg8KZgmEN15RQaseSO7i96Vh15Zyp6HNYRhdFWCYvqUB?= =?utf-8?q?kHY3B5BR2tdRaH39vw+0VV6ULzgLpSfepMWISK4IaVJVijuuJkunYlh5GSc6nh1BJ?= =?utf-8?q?alIR11/mIJNQl8GjQkYfzrIGDI7zGr2JSP5l5d2tm+0n/qyVXOkVCAk/M0i3y0ats?= =?utf-8?q?7Ob9CCzfLkPNJAVNqwrY/g10RFded5HHPPFElmgOeAdbX7wFynSfT2u+gOs/9O0T4?=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5wr7+iezOd55ERXfzNDyWnUQG6S6mq+0W6V02zU3bpm3I4HIiiVX4uWYP8T5mTqD?= =?utf-8?q?IiYGO04+pAdnLxreMEGRXAMy981T18d8A8Uv/Nk1o0gRL8NThFNT3OACX6qCdW4lH?= =?utf-8?q?TUx7X27UVkCGgwTALVSWuoo4lLC4a5pzAYKmMTNVKgQ4MNSkB3uYDXlFx/SQ45R3r?= =?utf-8?q?BN6E3tfC933sOq4DokfBcNNdEYhEDlqEj/uMTNQ8DOCcj9Om2rlAGR8mMB9IDGj5G?= =?utf-8?q?Cpatm5DB9Lenu6zRVNsHsAPQFneI0vpMM7dUHyXhRU05KTLLH0Ql5lW6vqVD9q3/A?= =?utf-8?q?H53PLsQXzXKpFmNOfnvDuPnvcH+Y+4TnoprTZ5Go66GW/lgWyfWWSo8=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 2e0fd313-af34-4a09-514a-08d9fc58fa85 X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2022 14:28:54.1092 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QaSaXaRePQGkcG0cwoIQKEJyGsOB7kqo+W2a6RYpSzDq/xsBLtnRsQTeQsqaz/D2BKwGO6dTYj62YzPgWl4g7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB3330 X-OriginatorOrg: citrix.com The current one is broken with my version of readelf and returns 'NT_GNU_BUILD_ID'. Signed-off-by: Roger Pau Monné Reviewed-by: Bjoern Doebel Reviewed-by: Ross Lagerwall --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b48a3df..948a7de 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ $ cp -r ~/src/xen ~/src/xenbuild $ cd ~/src/xen/xen $ make nconfig # Make sure to set CONFIG_LIVEPATCH=y $ make -$ BUILDID=$(readelf -Wn xen-syms | awk '/Build ID:/ {print $3}') +$ BUILDID=$(readelf -Wn xen-syms | sed -n -e 's/^.*Build ID: //p') ``` Next, build a live patch, using a patch and the source, build ID, and From patchwork Wed Mar 2 14:27:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12766194 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 18DA3C433EF for ; Wed, 2 Mar 2022 14:29:25 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.282280.480956 (Exim 4.92) (envelope-from ) id 1nPPyc-0001f3-2i; Wed, 02 Mar 2022 14:29:14 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 282280.480956; Wed, 02 Mar 2022 14:29:14 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nPPyb-0001eu-V1; Wed, 02 Mar 2022 14:29:13 +0000 Received: by outflank-mailman (input) for mailman id 282280; Wed, 02 Mar 2022 14:29:12 +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 1nPPyZ-0000Xg-WC for xen-devel@lists.xenproject.org; Wed, 02 Mar 2022 14:29:12 +0000 Received: from esa6.hc3370-68.iphmx.com (esa6.hc3370-68.iphmx.com [216.71.155.175]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 1f7b23bb-9a35-11ec-8eba-a37418f5ba1a; Wed, 02 Mar 2022 15:29:10 +0100 (CET) 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: 1f7b23bb-9a35-11ec-8eba-a37418f5ba1a DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1646231350; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=vvgWKbFjweSwkWyBIVjjASKWnZeI8HuMMPIGjeUSkdE=; b=TloQHp67806FwFFWCBveOXgvAJQR/hSBOOn7RLSGhCm9thEhPrSh+jnv S5UfWgOM2XaJX5eLFiN0h4M1O9XG5LqoZMN/PuA5plaEp7ivxvqXIKNQr w989gdAhHNuNE4auT4Jisg0Ah2rGqWdcD09ZkOwk9jXoS51drLuNXMzPL 8=; Authentication-Results: esa6.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com X-SBRS: 5.1 X-MesageID: 65219557 X-Ironport-Server: esa6.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:VB5y/q0IUXyr+BAHrvbD5fhxkn2cJEfYwER7XKvMYLTBsI5bpzYCn 2NNDWHUPfuNY2Hyfo1zYdzn80tVupTdzdQ3TQRppC1hF35El5HIVI+TRqvS04J+DSFhoGZPt Zh2hgzodZhsJpPkjk7xdOCn9xGQ7InQLlbGILes1htZGEk1EE/NtTo5w7Rj2tUw24Dia++wk YiaT/P3aQfNNwFcagr424rbwP+4lK2v0N+wlgVWicFj5DcypVFMZH4sDfjZw0/DaptVBoaHq 9Prl9lVyI97EyAFUbtJmp6jGqEDry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RZDzrd3GfE2J9dOUE/d enl4J6jgvlXU5SQtWwB3EDUeSGj9rXlKj+aRpDIxI88gGBgR6h9ba/SnGjr10jegIK5Y1n3X nOkgT/6Knmm/anyiXE32uWy5hNgtPuxvZKGcTJoMkILTfHjBquee1aKva/lQFwhNvqxEchkd HKrRtlF8Nv60nJdmXwmhfp0xmI6kdY11bSjXujxVfzq83wQzw3T+Bbg5hCTxff4008+Plhza NixQuixtVqJCKFuB64y8nDVhlsmEbxi2Eli/Qvg3tWVpZbQKNNrLYY4FheHP47bW7HAbgcYa hT5fznlbZrmQvwVQGbgoAv+q3gYp0LJGbJfqBY0fblkQS/nxhCvj8lLYIk7zI9HakGOup5Dt T/Q9RVfY51P70rhNpGdZ88qOuMexrwqEH3QSuvyWqOLtBzB5uKke+y3IkI X-IronPort-AV: E=Sophos;i="5.90,149,1643691600"; d="scan'208";a="65219557" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N7Vr0xe4o12UfpVQba+JI38TboFa2i/hR+M8r2Gppz8QrUuvoEK69T+sFmrZHNjY9t2fxjtn9U9gTRHLmDyYzV3uVKxa322wPS5bBocIe+ZgNdkqxjrlU7vIYi3/bEVFiU/HkhvyLH6sZXcFoZ/P0OfN0mC+SZjhCej7bgcBt2+7s8gGJA4QOU4QfiiZm5gIh1rUez5iyESc+VFLKJkNRiI+Il4FJbgLwhkR6ew1LkuzdOdq03YW4NZTg16XSMcMLh6ZpYl/GBM+UgbInVtqLmm2RgL/5QemJxXIUK1eqp8tLRwZM9sBQCuglek2HmTolFXd7mCbfJA9Bk30qGVmFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=C6+tPn3Vtw/33Pu7XLEt/wmcadDGaOE9Qo6ldxTFLMU=; b=KMH6IhoQv7iETFGZ50psbSW6ZOu16x2MgyazNFB53MxDszlSE6b8pVMxFsMrOCFvfkx8WKf8MrMJm0gjEu/cQ6PAB17kfglhYbqwiwUnWijsywbH5bsIWcr6ztXb6kjj+Wou2TqxFcAskUwf03l+4oW366TvtXvYX2H1CDaTPK1yJWz3YI5vP/wxQRhOkAp7m8+WeAW2oyuIskGgS2lRhsHg5nk4stajvB4jQlvKtiKuMhRu3Taa6gE5dAqdgBhEkxPWvR0xV2oW2/dg0CNF+cyCpG9OpNa6cJX1qf5hepH1xNo9OE4FDSv/x0o1Q0biFVoIRybtY5bru8RzBwYarA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C6+tPn3Vtw/33Pu7XLEt/wmcadDGaOE9Qo6ldxTFLMU=; b=gma+6fRBGnqAl0A/XmKPzaMFqm12DwqacJ7Yb+34C9t1mQ1Y2UBz5SEB9D82lvpU2FMYCZu6WF2c9lWCPWmkE0ovZ4IpMGK7wRqwpS1Z98dC190IxBKhaFMmF5VAKpbpdGE3ZhtsdXvBmv19SDJ5e+NqnajPfmCdFPgyl3dlYWc= From: Roger Pau Monne To: CC: , , , , , Roger Pau Monne Subject: [PATCH 3/4] livepatch: do the initial build using CROSS_COMPILE Date: Wed, 2 Mar 2022 15:27:10 +0100 Message-ID: <20220302142711.38953-4-roger.pau@citrix.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220302142711.38953-1-roger.pau@citrix.com> References: <20220302142711.38953-1-roger.pau@citrix.com> X-ClientProxiedBy: LNXP265CA0033.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5c::21) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7747fad1-8cbd-4cb2-77f1-08d9fc58fe52 X-MS-TrafficTypeDiagnostic: BY5PR03MB5111:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VJUI8FLpJ7Gm84ir5cFBTrE1DnyrV0pGnI6GjsoEs1J+p2/G/SECqQ6pzLfO1K76mFM1mJl3mFbu/GYgnvUNQXmN1j0F6stdGO6+2TZ/Z5SURvpIBYRA1w0JMrqjUMmange1nCajirTsKO41tQCOxg1OFrWwIRWpsee8kFo3T/VRBH48BPigETGz7x/o2wIauR7OUKaq3bsAa15a0EnUYpu/ZMt+fY5NdnkoJJSRvzA5K5kKGYbB5ahAPDT1G8uWVhAaZdFh2wHSLKIS74usKnLWcOH3pAYt38hgEJqdFpGRUMka6M+ZcARePEuzGTVMhZG+Zv6ag08Vol9IWDpMCAlT7hDH2Dzxv3M1jq6knD5typnL5E60TMPTA9AUCrSoYTen8E8gEGklP3yw9xazTMSu0AAn1Ak3OszKNYjYk8/9I+UT+lnxyQfZ1F6/Wxt5tQfuOQXuBcrqCssRpZjssrrHQI2eKOB/WkYXtnOs0ct9yI1f5AYJJC6830reSoOCFU6rbZ9AxKxgXVX3qwX/KuMTxz2Gr23cqTRJWhOPGCz1ho9bY21kmuARCPX1iZn3copaP7xy/iEVGWHFEf7utr8jVNPqBzLG929GDrTflJ/G4QbT2HTrua24lQXdwcpofJXJdUqS5D1wh+pyO1h+gA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(38100700002)(2906002)(6512007)(6506007)(82960400001)(83380400001)(186003)(2616005)(26005)(107886003)(6486002)(1076003)(36756003)(508600001)(4326008)(6916009)(316002)(86362001)(8936002)(8676002)(66476007)(66946007)(66556008)(6666004)(5660300002)(4744005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?lsEuHAzDdxyjx1bMW24pWhWm8mQk?= =?utf-8?q?SkbwUrUmzQvxLKXEPAr6mp5L/OiFsaIaHiprwsjZQ5HvBoEuPEfxix7xidZ1xbpQH?= =?utf-8?q?Jjd3mCenmmlTvVCCeUBSvHh6bsLzMS+9ozEM9rnr+GjsS0YL0MsDiCgsU1wKHfYW2?= =?utf-8?q?7f1K2kn5XhZLyKiuF5ZJuqEg3DFnmzwUBrVVj2Mw2glFredCjaMhsLTChZzA436RO?= =?utf-8?q?Tq7wRZJRtYWsfuLsi3LxQwQqOEVAPm79Wv9E9eRdHax/KzopuxbY19UrziWoqgmZq?= =?utf-8?q?BDi8pKmfz3+W2FJXmMYHN4REDEBsRiWqO2JDGabAYL0a/ChwsS2VKvB/XbAba4qCx?= =?utf-8?q?EBIbQZI+Z2HHMsS7KFNp8I3rwe5qjnY8IbojHMZvs/K78c5KDLSO2A3BUJjYvEASf?= =?utf-8?q?445WXjVd09eN89tmtjlM9SYsZWMd60ghGU3Cn00n2U/spK18oEO1GtK3SxVQ5ifqw?= =?utf-8?q?6XdCNdhc3gBgAGdMasPHBFBmUOCbYME1OkAnMITKD+/H98QK2QEyGhuKnphTBbnZi?= =?utf-8?q?VWI4Ic0lrdZf6yVKuxYbLT+1k/CL8rxuCrzm7UYD8zpnFyPTBG2sJ81a0XrixwwqC?= =?utf-8?q?F2lL7NWpmNXfSNp/+vtg1D+79UNCD809+UUA1CQJQC0K37N/TVpxKCvgaJMQywpfh?= =?utf-8?q?w7jVEElw8nM6hQT/ZD0thpbTTePZZC1cwaXp8mbc/is5kokhGhayZRcEq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aY1GJ4uvxQ4Rhw=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 7747fad1-8cbd-4cb2-77f1-08d9fc58fe52 X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2022 14:29:00.5649 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ziIp2zxFGKWMBLwuSvzJ42amWF8rK6Osd/fcZFTBC/CmPg2CpAFubxWdzm6cDRg9vq9nRkY6zF3jSYH5NGuArQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR03MB5111 X-OriginatorOrg: citrix.com Setting it afterwards for further builds will cause the build logic to detect a change and thus force a rebuild of all sources. Signed-off-by: Roger Pau Monné Reviewed-by: Bjoern Doebel Reviewed-by: Ross Lagerwall --- livepatch-build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/livepatch-build b/livepatch-build index e1715ea..38a92be 100755 --- a/livepatch-build +++ b/livepatch-build @@ -92,7 +92,6 @@ function build_special() cd "${SRCDIR}" || die # Capture .o files from the patched build - export CROSS_COMPILE="${TOOLSDIR}/livepatch-gcc " export LIVEPATCH_BUILD_DIR="$(pwd)/" export LIVEPATCH_CAPTURE_DIR="$OUTPUT/${name}" mkdir -p "$LIVEPATCH_CAPTURE_DIR" @@ -408,6 +407,8 @@ if [ "${SKIP}" != "build" ]; then XEN_DEBUG="debug=$XEN_DEBUG" fi + export CROSS_COMPILE="${TOOLSDIR}/livepatch-gcc " + echo "Perform full initial build with ${CPUS} CPU(s)..." build_full From patchwork Wed Mar 2 14:27:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12766195 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 61D0DC433EF for ; Wed, 2 Mar 2022 14:29:44 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.282300.480967 (Exim 4.92) (envelope-from ) id 1nPPyv-0002VN-Cv; Wed, 02 Mar 2022 14:29:33 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 282300.480967; Wed, 02 Mar 2022 14:29: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 1nPPyv-0002VG-9O; Wed, 02 Mar 2022 14:29:33 +0000 Received: by outflank-mailman (input) for mailman id 282300; Wed, 02 Mar 2022 14:29: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 1nPPyu-0000Xm-Aw for xen-devel@lists.xenproject.org; Wed, 02 Mar 2022 14:29:32 +0000 Received: from esa1.hc3370-68.iphmx.com (esa1.hc3370-68.iphmx.com [216.71.145.142]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 2b7d3436-9a35-11ec-8539-5f4723681683; Wed, 02 Mar 2022 15:29:31 +0100 (CET) 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: 2b7d3436-9a35-11ec-8539-5f4723681683 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1646231371; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=F212JEjE8ExwUhiwnl1J2kabdh8N5NeS+VZ3pk+r8zo=; b=bLlF2pyyxeLHpuqIPZWdGIi24F0wDHdE/8hfv+LwYQDgpYVgcP4SxSzL /eH+Qx4FJe8lAhr1uLlJcDK8n+mFRO/Khub5rO5OhbHxNWDQhRCrhn2g0 7XAraAYhrbM+uJFij1kd1A669twZ+lU13i84pEjGqJYLi8swUy8QYdHT0 E=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com X-SBRS: 5.1 X-MesageID: 65714265 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:lj14xKvZPaFo725k3SNvI1tLtOfnVHxeMUV32f8akzHdYApBsoF/q tZmKWqEParbMGL0KNB3bti/pEoGuJ/Uz4A1Sgc4/y4zRCMU+JbJXdiXEBz9bniYRiHhoOOLz Cm8hv3odp1coqr0/0/1WlTZhSAgk/nOHNIQMcacUsxLbVYMpBwJ1FQyw4bVvqYy2YLjW1jV4 4upyyHiEATNNwBcYzp8B52r8HuDjNyq0N/PlgVjDRzjlAa2e0g9VPrzF4noR5fLatA88tqBb /TC1NmEElbxpH/BPD8HfoHTKSXmSpaKVeSHZ+E/t6KK2nCurQRquko32WZ1he66RFxlkvgoo Oihu6BcRi8UJo7Cp8lFDyVfFjhTM4Rl5bzEHnaW5Jn7I03uKxMAwt1rBUAye4YZ5vx2ESdF8 vlwxDIlN07ZwbjsmfTiF7cq1p9LwMrDZevzvll6yj7UF7A+SI3rSKTW/95Imjw3g6iiGN6AO pVANWAxMXwsZTV3GWgnV7sdtdyti1PvKx9AqleR/ZIOtj27IAtZj+G2bYu9lsaxbclSk0yVo krP+m3rBRdcONH34TiY9nOhgMffkCW9X5gdfJWo+/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oMYdft4sZEfxkVIC50NdRiKp7zPKN MeTP002cwmMm9zNxvizytSKZ2XLzgO9y69Mwk/Upf/6UkSoJh7p3Fos/D30E1wsK7VcKM0ld gsAp4Y542mcfVmGJ6VfN1xOvdfKla9CC4kY1jiaWgOKsk8SgbwQtjMkfII2N0= X-IronPort-AV: E=Sophos;i="5.90,149,1643691600"; d="scan'208";a="65714265" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TRW+ahLuRH0wQAbwrnfdTFFqYrpkmDWxASA2uB825eLaCdboj3tQsJmd0QoxdVUCaIX3xK19RcvTdETXJJFDR1et7+tUiBs28sV0FIijI3oWRkkHSmDIsnkUtUwiK/VKQYDvxAIS/jYTLmPeTR5SyKewh8t3qjrtFwYmdrJ1aq0JCv5yO2nQkF8BW1LZHCTOJatHYXvoHv+sXesoyamWY8ZPyR6Tt2Bj8Wh8F3dCBr4fV+/QiKCbwKE8Dz1SZreuhwBJAh1QPGF2iwgTUNkjGf5OKU5AG1eufnWXjRCYJe5g10DTr2LSeI5gdgPZdeSt9RXzsUlUUKkL9sUjNUDmUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=Ju2JmzDTMXMnNqshHl/210cGfKHE694TMbi1tFP55XY=; b=NyB64aYXGKLnKkx+C2kzmiRtLDNJ4ii1w9rKRK5mQchD2wEVoZ6WhaMtBPumvbE5fh0aR8gOPwilNjT70qvvict84fhPm3Lkgcalqd4ZM4SfrLqVTMoodcPUZaIwrmSNSGsQqM9yxpPiEjbBZqrRq/p3wVAcRNS3xaPiHLahKVArB9GBWlZlEwM6WcjahNYCa+qpWeZ7xHth6VrftRAuuaWpJQTVHs5Tcp6O/7JvFbmOjfyHLNxcP6PnMpuZyUX7zCRtWIBn9T1qR0T0ZwW/Zceva7n5rh5XHGcxPXmIbrh4ofZHb0mMCQSObxQBBHpP+tOR8iNn0CNTv2boqxeaVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ju2JmzDTMXMnNqshHl/210cGfKHE694TMbi1tFP55XY=; b=QNc2Q0GbP7TEKhy4HBRVKhpZYkQy/0SeXUgFcDwbE5C4mt73DxyIqKrCzcdB4EniEnoYpsgNa3bbZvYxv667L/aTmw3TiHLWyhjfSlAo2PJoLiKQEEeqOuvgXHZbB83PlIq2kGI9HYH6UKp7a10j9dkanVb5E4fLMKjMn59wswo= From: Roger Pau Monne To: CC: , , , , , Roger Pau Monne Subject: [PATCH 4/4] livepatch: differentiate between old and new build systems Date: Wed, 2 Mar 2022 15:27:11 +0100 Message-ID: <20220302142711.38953-5-roger.pau@citrix.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220302142711.38953-1-roger.pau@citrix.com> References: <20220302142711.38953-1-roger.pau@citrix.com> X-ClientProxiedBy: LO2P123CA0086.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:138::19) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2ca53acc-a8a0-4fc0-4ac5-08d9fc590189 X-MS-TrafficTypeDiagnostic: BY5PR03MB5111:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PBi1/X1DU4N/wu046ziwigGuxdf4LUwvJr4s8SyJR5wxuzreL7c16TTH0Bww3qJxGks/9tCFNui8Psiu2Z287Pgbbeu/g2UykZ8SMG65Q7dpxjm6MxblnGh2/LnbITVvax8M06wu9zJdr7SSYaRuyYbPx8aRHeH+71yeVISOdt8/bjTkganefUA4HQGb9eLUJeIwnTPcTddJq7dvIuADupfa4j37ZziQtyb3BhuKA0APD5x0+oUGflDEPu0BlU7I78irxEDs/NlIHOVjX8iNnprHtTFV9Ivx3OUk9RvJOdHSg/CQwZlf5FqC9KKIjJ4CZ6x4cUqbwSxaB8WZw/IEXtdUR7n4duFUhLxNvQpoQ8nuPY2QW3erNghk3Jz8SMmBkySGlQITX2eqMUFt/Y/4dPPfoC1XvZ9l+iLTLyACi6dJQWti76wqRow6sBJODD1OCkCr/txZ96kOmcrl/jfmDhXo/5QJvRhEcsdqyW8uUAcSf/MRJ/LLRtRfRH6GS7/zMNUiSwJc+nOQR7jdMzbKbPWViyITkBuH4brIUgAkX513bFJAmjpZwkRfjlwHV/LiR/fsKvhbNx9hk3Wig6JvnbIHhLi/afjRnoaT4CiXe3yq1W4Z2Ka4PfzvG+zNdPMZWlGVDt0maLL3q5nkV1v/xQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(38100700002)(2906002)(6512007)(6506007)(82960400001)(83380400001)(186003)(2616005)(26005)(107886003)(6486002)(1076003)(36756003)(508600001)(4326008)(6916009)(316002)(86362001)(8936002)(8676002)(66476007)(66946007)(66556008)(6666004)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?IStDO1FwrXZnBHMQp8WqpqQqLXxr?= =?utf-8?q?oqTvZkd6YeaJmGCyeiBvRuwnPcVOa3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oNwnva0dE9l9+XnVsKeQwMPv53WppaDTvorxFW?= =?utf-8?q?PtRGmyGpsyr2+1rt8ZLzqM2MhKB+OssAys2ERoEcB+GE62/2TywGQHT3HK4C/gYJt?= =?utf-8?q?WpKpApnt8aDFmdUpdi1tGnTsLhmbv0Ah3hXTSzuGP7xReim31T6z8k8/C7/5htLHT?= =?utf-8?q?FsvZdTA0H+YxyOVXuz5c/wqh+Lb4cKnfkv1mrpep/dxL9iGlsbH6+7M7zhtmzUC//?= =?utf-8?q?3KvR52iYy12frK8XKB2bpu5PF6Xg1/oBnEgs+dLOSbjYY1OCyS0/U6AT1uwgklH/C?= =?utf-8?q?MCkKB0XPslXwwUeHegrNA1Cyvn6IENbIbRZbN2JdtVm0VEJCod55M//C78Tglw3yx?= =?utf-8?q?JStLcQ8ABI6cEHrDBnN3FTnvLr5gadIolngm3QBhTynqRNSfLow2jxM8wybKNo4X1?= =?utf-8?q?yWkAtW37Qb+/CeNj2UZ3ml6D6dpNWsunSjT2eJolI4gHSOHadHAcwtwGVEPkxbeB6?= =?utf-8?q?ZyvTBuejX8m6Fb1fhzGK/BDRSdN2WAiINAtajoT94HIqRxukU0Pux1YrRnx4yHrBK?= =?utf-8?q?z36QhrjbUE23lz+guxKRKMtSWeTPqa8NzbCtIp6qhNc9x++oTHklA7cAGwyoJ77yp?= =?utf-8?q?lPZmmdZzXG/xZ8HEKcTp9358sZeVK41++Rvq3IVCIylmN2BvQEWKOBc=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 2ca53acc-a8a0-4fc0-4ac5-08d9fc590189 X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2022 14:29:07.0533 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LjS7dSGqpEwBJn5id195MVJBByNLwPl0f7nY7yYVWw/v3RytnRUYeFkwdgcs2iox0+xhgM1wiPyjdVgocipsfQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR03MB5111 X-OriginatorOrg: citrix.com Do not attempt to modify the build system if CFLAGS are not set in Rules.mk, and instead rely on CONFIG_LIVEPATCH already setting -f{function,data}-sections. Signed-off-by: Roger Pau Monné Reviewed-by: Bjoern Doebel Reviewed-by: Ross Lagerwall --- This depends on getting the patch to add -f{function,data}-sections when using CONFIG_LIVEPATCH accepted. --- livepatch-build | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/livepatch-build b/livepatch-build index 38a92be..656cdac 100755 --- a/livepatch-build +++ b/livepatch-build @@ -98,14 +98,20 @@ function build_special() # Build with special GCC flags cd "${SRCDIR}/xen" || die - sed -i 's/CFLAGS += -nostdinc/CFLAGS += -nostdinc -ffunction-sections -fdata-sections/' Rules.mk - cp -p arch/x86/Makefile arch/x86/Makefile.bak - sed -i 's/--section-alignment=0x200000/--section-alignment=0x1000/' arch/x86/Makefile - # Restore timestamps to prevent spurious rebuilding - touch --reference=arch/x86/Makefile.bak arch/x86/Makefile - make "-j$CPUS" $XEN_DEBUG &> "${OUTPUT}/build_${name}_compile.log" || die - sed -i 's/CFLAGS += -nostdinc -ffunction-sections -fdata-sections/CFLAGS += -nostdinc/' Rules.mk - mv -f arch/x86/Makefile.bak arch/x86/Makefile + if grep -q 'nostdinc' Rules.mk; then + # Support for old build system, attempt to set -f{function,data}-sections and rebuild + sed -i 's/CFLAGS += -nostdinc/CFLAGS += -nostdinc -ffunction-sections -fdata-sections/' Rules.mk + cp -p arch/x86/Makefile arch/x86/Makefile.bak + sed -i 's/--section-alignment=0x200000/--section-alignment=0x1000/' arch/x86/Makefile + # Restore timestamps to prevent spurious rebuilding + touch --reference=arch/x86/Makefile.bak arch/x86/Makefile + make "-j$CPUS" $XEN_DEBUG &> "${OUTPUT}/build_${name}_compile.log" || die + sed -i 's/CFLAGS += -nostdinc -ffunction-sections -fdata-sections/CFLAGS += -nostdinc/' Rules.mk + mv -f arch/x86/Makefile.bak arch/x86/Makefile + else + # -f{function,data}-sections set by CONFIG_LIVEPATCH + make "-j$CPUS" $XEN_DEBUG &> "${OUTPUT}/build_${name}_compile.log" || die + fi unset LIVEPATCH_BUILD_DIR unset LIVEPATCH_CAPTURE_DIR