From patchwork Tue Aug 15 21:06:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Cooper X-Patchwork-Id: 13354331 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 81454C001E0 for ; Tue, 15 Aug 2023 21:07:33 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.584057.914520 (Exim 4.92) (envelope-from ) id 1qW1Fx-0006OD-EZ; Tue, 15 Aug 2023 21:07:13 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 584057.914520; Tue, 15 Aug 2023 21:07:13 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qW1Fx-0006MY-1k; Tue, 15 Aug 2023 21:07:13 +0000 Received: by outflank-mailman (input) for mailman id 584057; Tue, 15 Aug 2023 21:07:11 +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 1qW1Fv-0004ge-FK for xen-devel@lists.xenproject.org; Tue, 15 Aug 2023 21:07:11 +0000 Received: from esa5.hc3370-68.iphmx.com (esa5.hc3370-68.iphmx.com [216.71.155.168]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id b19ffeec-3baf-11ee-9b0c-b553b5be7939; Tue, 15 Aug 2023 23:07:09 +0200 (CEST) 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: b19ffeec-3baf-11ee-9b0c-b553b5be7939 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1692133629; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=t9pwPtJaxOY2AoSDfaabseyGopwlTK4SCWzM4uvG2Xw=; b=OUBYpU7tW0Dr92jGcMvG3AFGUlYufGLAb0AfINwVp8CCHA0rnYifqfMM Ki2sj62I1ChtXWMp0kyXqAyRgJGHze86qGkMZbyp5KFyF/CQ8Crm/cm6p abGazJxqdtd1mlRsIv/cEGpP3pRoJmJdlxtsLGeW/LJ4yAnWd9M6WYCOw 8=; Authentication-Results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none X-SBRS: 4.0 X-MesageID: 118253077 X-Ironport-Server: esa5.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.123 X-Policy: $RELAYED IronPort-Data: A9a23:zbibmqwLDi3/72PY/wZ6t+cdwSrEfRIJ4+MujC+fZmUNrF6WrkVSx 2ceWT+FPKmDNmD0fd11atu38xsCvJPXyt41HFA9/iAxQypGp/SeCIXCJC8cHc8wwu7rFxs7s ppEOrEsCOhuExcwcz/0auCJQUFUjP3OHfykTrafYEidfCc8IA85kxVvhuUltYBhhNm9Emult Mj75sbSIzdJ4RYtWo4vw/zF8EoHUMja4mtC5QRuPK0T5jcyqlFOZH4hDfDpR5fHatE88t6SH 47r0Ly/92XFyBYhYvvNfmHTKxBirhb6ZGBiu1IOM0SQqkEqSh8ai87XAME0e0ZP4whlqvgqo Dl7WT5cfi9yVkHEsLx1vxC1iEiSN4UekFPMCSDXXcB+UyQq2pYjqhljJBheAGEWxgp4KWtJ1 b8cFjlKVFOGjPqr/by8EbJQo+12eaEHPKtH0p1h5TTQDPJgSpHfWaTao9Rf2V/chOgXQ6yYP ZBAL2MyMlKZOUYn1lQ/UfrSmM+BgHXlfiIeg1WSvactuEDYzRBr0airO93QEjCPbZwMzhzF/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7IE80lqQFkrX5Q43SPjUO0VHAROtfBODZsl7d8kPFh4tgPa wJSdkANDWZZ2IXsS6QijPWLz7uquPrzImYwd77i1NRZUVSbadkhj0JeDpy0CdNNXd77V5SLu vt2iKDzQDQCEj/Ff7LYkUtbqz4vtjWk5CjSQcebiRXkTWmvHeT8bvnFBrd9QsfVj4n+8ZezU H11zbh47mlsbWdwhvRvlWjiKh+qZ/a095eA87JrNYTJi6EsHfPWK1RH4eauSwzoqWUyHtCqq i1nz4Qe/5r7m/XfCWOrQDz1xLG2DIjgkWSsmOwsD/YuMnkQzB/NMZbn4JedXLimjAdgO0= X-Talos-CUID: 9a23:ktlbiG2PrzOnP4l0sFAFsLxfEMcFMXnjxTDqYEqzEXtURrrOEmO10fYx X-Talos-MUID: 9a23:Zsr5ZAxs3poDoR7asFzGXr9RmY+aqK2KDGEkj5kEh9WVCnJ5FBifsyWZGaZyfw== X-IronPort-AV: E=Sophos;i="6.01,175,1684814400"; d="scan'208";a="118253077" From: Andrew Cooper To: Xen-devel CC: Andrew Cooper , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Wei Liu , Stefano Stabellini , Julien Grall , Volodymyr Babchuk , Bertrand Marquis , Oleksii Kurochko , Shawn Anastasio , Henry Wang , "Daniel De Graaf" , Daniel Smith , Jason Andryuk , "Anthony PERARD" , Juergen Gross , Christian Lindig , David Scott , Edwin Torok , Rob Hoes Subject: [PATCH v3 for-4.18 00/10] Non-truncating XENVER_* subops Date: Tue, 15 Aug 2023 22:06:40 +0100 Message-ID: <20230815210650.2735671-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/968728976 https://cirrus-ci.com/build/6741556116324352 Posting both parts, as there has been minor rebasing in all of them. Andrew Cooper (10): xen/version: Calculate xen_capabilities_info once at boot xen/version: Introduce non-truncating deterministically-signed XENVER_* subops xen/version: Fold build_id handling into xenver_varbuf_op() xen/version: Misc style fixes tools/libxc: Move xc_version() out of xc_private.c into its own file tools: Introduce a non-truncating xc_xenver_extraversion() tools: Introduce a non-truncating xc_xenver_capabilities() tools: Introduce a non-truncating xc_xenver_changeset() tools: Introduce a non-truncating xc_xenver_cmdline() tools: Introduce a xc_xenver_buildid() wrapper tools/include/xenctrl.h | 10 ++ tools/libs/ctrl/Makefile.common | 1 + tools/libs/ctrl/xc_private.c | 66 --------- tools/libs/ctrl/xc_private.h | 7 - tools/libs/ctrl/xc_version.c | 206 ++++++++++++++++++++++++++++ tools/libs/light/libxl.c | 61 +------- tools/ocaml/libs/xc/xenctrl_stubs.c | 46 ++++--- xen/arch/arm/setup.c | 20 +-- xen/arch/x86/setup.c | 31 ++--- xen/common/kernel.c | 119 ++++++++++------ xen/common/version.c | 4 +- xen/include/public/version.h | 68 ++++++++- xen/include/xen/hypercall.h | 2 - xen/include/xen/version.h | 2 + xen/include/xlat.lst | 1 + xen/include/xsm/dummy.h | 3 + xen/xsm/flask/hooks.c | 4 + 17 files changed, 425 insertions(+), 226 deletions(-) create mode 100644 tools/libs/ctrl/xc_version.c