From patchwork Thu Jan 2 08:45:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tu Dinh X-Patchwork-Id: 13924337 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 619F0E77188 for ; Thu, 2 Jan 2025 08:46:10 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.863732.1275120 (Exim 4.92) (envelope-from ) id 1tTGpw-0005XR-3R; Thu, 02 Jan 2025 08:45:48 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 863732.1275120; Thu, 02 Jan 2025 08:45:48 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tTGpv-0005WT-Sr; Thu, 02 Jan 2025 08:45:47 +0000 Received: by outflank-mailman (input) for mailman id 863732; Thu, 02 Jan 2025 08:45:46 +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 1tTGpu-0004rS-39 for xen-devel@lists.xenproject.org; Thu, 02 Jan 2025 08:45:46 +0000 Received: from mail180-50.suw31.mandrillapp.com (mail180-50.suw31.mandrillapp.com [198.2.180.50]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id f31ba6ce-c8e5-11ef-99a4-01e77a169b0f; Thu, 02 Jan 2025 09:45:43 +0100 (CET) Received: from pmta11.mandrill.prod.suw01.rsglab.com (localhost [127.0.0.1]) by mail180-50.suw31.mandrillapp.com (Mailchimp) with ESMTP id 4YP0fD21KZzCfD7Mc for ; Thu, 2 Jan 2025 08:45:40 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 8f8814d4b30a41adb33ecc6a9e833b61; Thu, 02 Jan 2025 08:45:40 +0000 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: f31ba6ce-c8e5-11ef-99a4-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1735807540; x=1736068040; bh=pAHxWdtF5F+VmVe6AG5QRFQ7htoBqzkaXnBayvRsH38=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=sCGaJGcFBppRgs03cEtlCOCLOHlzZKqwDj4/K/CHee3G4z7HS3zIxXzCNS6U4wvmL fH2QJw5ie5V0aiFoRNWQ0NgWWg/CqYT/kdcoKtM24AUHkXR/hSq6AHTXBDBMLD6P23 FdTgDZQce6mZybN3ZUWUqlgLxjiOMkyAtTi6D+YU8pXo/F3AxLUBbXBPnVRdCEBfDK 5QQJJqHLCYUz1FRrqnEOgKEts5s/n94/cBn42guFOJ8Us6kRTiGiyLTUBO0udj2+AK pIhcMq3GeqyLKuFdD7cAmtBO/YeCx94iMO0wRekz4Qb1/4/oINWOieNoUfdhyU0bs5 e5ind8mh0o73g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1735807540; x=1736068040; i=ngoc-tu.dinh@vates.tech; bh=pAHxWdtF5F+VmVe6AG5QRFQ7htoBqzkaXnBayvRsH38=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=wKVy2yAvNOjQbLmYOqN5D9dTy5JW3Hcmw4706h6l5wzpo78PK4184mbr2qyVcNWr0 0DahWdqVMf+l8fHJtJ/+a8chQgLF+DksU0fbZBvMYnbobPd/flZMa6vS1dyLbXf8rU i68vgWz10wVPucpBPDbimnP68jzdimdurL8oeU7OmalPubBI7sviN2VIySQZZ6uZz1 ebU0Cci3u5Qp8p2hHs7Wy5eHBJZbkIJ60pUE5KuE7IdI3nEMYDzw9xWZKqwysNhlfC y72QZBp1h7qhFYxZX6nS5EuIfQl8Yc9RsziZRgRHbnYESgbB5ye58zARaQMA8ik2vY xvZuaZOpQPByg== From: "Tu Dinh" Subject: =?utf-8?q?=5BRFC_PATCH_v2_03/10=5D_tools=3A_Add_arch_LBR_feature_bi?= =?utf-8?q?ts?= X-Mailer: git-send-email 2.43.0 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1735807539448 To: xen-devel@lists.xenproject.org Cc: "Tu Dinh" , "Anthony PERARD" , "Juergen Gross" , "Jan Beulich" , "Andrew Cooper" , " =?utf-8?q?Roger_Pau_Monn?= =?utf-8?q?=C3=A9?= " Message-Id: <20250102084413.102-4-ngoc-tu.dinh@vates.tech> In-Reply-To: <20250102084413.102-1-ngoc-tu.dinh@vates.tech> References: <20250102084413.102-1-ngoc-tu.dinh@vates.tech> X-Native-Encoded: 1 X-Report-Abuse: =?utf-8?q?Please_forward_a_copy_of_this_message=2C_including?= =?utf-8?q?_all_headers=2C_to_abuse=40mandrill=2Ecom=2E_You_can_also_report_?= =?utf-8?q?abuse_here=3A_https=3A//mandrillapp=2Ecom/contact/abuse=3Fid=3D30?= =?utf-8?q?504962=2E8f8814d4b30a41adb33ecc6a9e833b61?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20250102:md Date: Thu, 02 Jan 2025 08:45:40 +0000 MIME-Version: 1.0 Signed-off-by: Tu Dinh --- tools/libs/light/libxl_cpuid.c | 3 +++ tools/misc/xen-cpuid.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tools/libs/light/libxl_cpuid.c b/tools/libs/light/libxl_cpuid.c index 063fe86eb7..05be36f258 100644 --- a/tools/libs/light/libxl_cpuid.c +++ b/tools/libs/light/libxl_cpuid.c @@ -342,6 +342,9 @@ int libxl_cpuid_parse_config(libxl_cpuid_policy_list *policy, const char* str) CPUID_ENTRY(0x00000007, 1, CPUID_REG_EDX), MSR_ENTRY(0x10a, CPUID_REG_EAX), MSR_ENTRY(0x10a, CPUID_REG_EDX), + CPUID_ENTRY(0x0000001C, NA, CPUID_REG_EAX), + CPUID_ENTRY(0x0000001C, NA, CPUID_REG_EBX), + CPUID_ENTRY(0x0000001C, NA, CPUID_REG_ECX), #undef MSR_ENTRY #undef CPUID_ENTRY }; diff --git a/tools/misc/xen-cpuid.c b/tools/misc/xen-cpuid.c index 4c4593528d..4f0fb0a6ea 100644 --- a/tools/misc/xen-cpuid.c +++ b/tools/misc/xen-cpuid.c @@ -37,6 +37,9 @@ static const struct { { "CPUID 0x00000007:1.edx", "7d1" }, { "MSR_ARCH_CAPS.lo", "m10Al" }, { "MSR_ARCH_CAPS.hi", "m10Ah" }, + { "CPUID 0x0000001c.eax", "1Ca" }, + { "CPUID 0x0000001c.ebx", "1Cb" }, + { "CPUID 0x0000001c.ecx", "1Cc" }, }; #define COL_ALIGN "24"