From patchwork Mon Apr 17 13:53:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Dyasli X-Patchwork-Id: 13214048 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 CB6CEC77B77 for ; Mon, 17 Apr 2023 13:54:10 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.522145.811361 (Exim 4.92) (envelope-from ) id 1poPIz-000494-EQ; Mon, 17 Apr 2023 13:54:05 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 522145.811361; Mon, 17 Apr 2023 13:54:05 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1poPIz-00048v-Bd; Mon, 17 Apr 2023 13:54:05 +0000 Received: by outflank-mailman (input) for mailman id 522145; Mon, 17 Apr 2023 13:54:04 +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 1poPIy-00047e-Ip for xen-devel@lists.xenproject.org; Mon, 17 Apr 2023 13:54:04 +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 4def2296-dd27-11ed-8611-37d641c3527e; Mon, 17 Apr 2023 15:54:01 +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: 4def2296-dd27-11ed-8611-37d641c3527e DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1681739641; h=from:to:cc:subject:date:message-id:mime-version; bh=PgPnbMZmAtpUANOitlWrq21FjsYwMoYfOaJIFf4YOcw=; b=CvLmJ+HGOBFfrtLyVMnFdWMJ6rrlXAP0qkAv3tv91sa2j0OZjhY7s2RA lJxkQfnb96TScofw4pFj8+ydD4dKTkoVspn8WnITbM81hYCNNbHEFRkl6 jbWqK/BJDBHWvaSmIw5oVRcsnj4yPHMHdM/co6r6c3ZmUKabusmch+jia U=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none X-SBRS: 4.0 X-MesageID: 106220666 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.123 X-Policy: $RELAYED IronPort-Data: A9a23:JkgybKAVXgW+qRVW/x7jw5YqxClBgxIJ4kV8jS/XYbTApDolhTEPm GNLW2HSP/6OZmSjeopwO9i1pB9Sv57dm9IxQQY4rX1jcSlH+JHPbTi7wuUcHAvJd5GeExg3h yk6QoOdRCzhZiaE/n9BCpC48T8nk/nOHuGmYAL9EngZbRd+Tys8gg5Ulec8g4p56fC0GArIs t7pyyHlEAbNNwVcbyRFuspvlDs15K6p4G9B4QRnDRx2lAS2e0c9Xcp3yZ6ZdxMUcqEMdsamS uDKyq2O/2+x13/B3fv8z94X2mVTKlLjFVDmZkh+AsBOsTAbzsAG6Y4pNeJ0VKtio27hc+ada jl6ncfYpQ8BZsUgkQmGOvVSO3kW0aZuoNcrLZUj2CA6IoKvn3bEmp1T4E8K0YIwo7pMHlpE9 eYkNCEKLTfAoPDq0L6+Y7w57igjBJGD0II3v3hhyXfSDOo8QICFSKLPjTNa9G5u3IYUR6+YP pdHL2M1N3wsYDUWUrsTIIkzhuillz/zYjRDrFO9rqsr+WnDigd21dABNfKMIoLQH50LwBjwS mTu+lSmGx9GEOWllGCU43jxxc+IvHqrcddHfFG/3qEz2wDCroAJMzUGWF3+rfSnh0qWX9NEN 1dS6icotbI19kGgUp/6RRLQiHyOswMYWtFQO/Yn8wzLwa3Riy6GAkAUQzgHb8Yp3Oc0SiYtz UShhM7yCHpkt7j9YXCA8raZqxuiNC5TKnUNDQcfVhcM6dTnpIA1jzrMQ8xlHarzicf6cQwc2 BjT8nJ43e9Ky5dWiePipwuvby+QSobhF1IO+T7dXniZ8hJ+J6nmQJ70+VTexKMVRGqGdWVtr EToiuDHsrBXUcrcyX3RKAkeNOr3vqjYaVUwlXYqRsB8rGr1phZPaKgKuFlDyFFV3tHokNMDS Gvaoktv6ZBaJxNGhocnMtvqW6zGIUUNfOkJt8w4jfIUOPCdjCfdoElTibe4hggBanQEn6AlI ou8es2xF3scAqkP5GPoF75Djudzm31hnT+7qXXHI/OPiOP2WZJoYe1dbAvmgh4Rt8toXzk5A /4AbpDXmn2zocX1YzXN8J57EG3m2UMTXMisw+QOL77rH+aTMD15YxMn6e97KtMNcmU8vrugw 0xRrWcCkAKl2iafeVvTAp2hAZu2NatCQbsAFXREFT6VN7ILP+5DMI93m0MLQIQa IronPort-HdrOrdr: A9a23:SpMJWqqFQNsMS5y66q00PjcaV5o/eYIsimQD101hICG8cqSj+P xG/c5rsSMc5wxxZJhNo7290cq7MBbhHPxOgbX5VI3KNGKNhILBFvAB0WKI+VPd8kPFmtK1rZ 0QEJRDNA== X-Talos-CUID: 9a23:B6aS52PlugfumO5DAXVc63UeGtoZbmzaj1CTBF3kGWpsYejA X-Talos-MUID: 9a23:r6IPVQaZznoZjuBTsg+znT8+EP5Svv6/GUpQ0rVBmpDUHHkl X-IronPort-AV: E=Sophos;i="5.99,204,1677560400"; d="scan'208";a="106220666" From: Sergey Dyasli To: CC: Jan Beulich , Andrew Cooper , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Wei Liu , Anthony PERARD , Juergen Gross , George Dunlap , Julien Grall , Stefano Stabellini , Sergey Dyasli Subject: [PATCH v5 0/3] xen-ucode: print information about currently loaded ucode Date: Mon, 17 Apr 2023 14:53:32 +0100 Message-ID: <20230417135335.17176-1-sergey.dyasli@citrix.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Currently it's impossible to get CPU's microcode revision from Xen after late loading without looking into Xen logs which is not always convenient. Add an option to xen-ucode tool to print the currently loaded ucode revision. Sergey Dyasli (3): tools/xenctrl: add xc_get_cpu_version() x86/platform: introduce XENPF_get_ucode_revision tools/xen-ucode: print information about currently loaded ucode tools/include/xenctrl.h | 3 + tools/libs/ctrl/xc_misc.c | 35 ++++++++++ tools/misc/xen-ucode.c | 85 +++++++++++++++++++++--- xen/arch/x86/platform_hypercall.c | 29 ++++++++ xen/arch/x86/x86_64/platform_hypercall.c | 4 ++ xen/include/public/platform.h | 11 +++ xen/include/xlat.lst | 1 + 7 files changed, 158 insertions(+), 10 deletions(-)