[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tools/xen-cpuid: drop "amd-" prefixes from strings


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 27 Jan 2022 10:33:26 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • 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=e2G6HEvqgyZzbhWrZsOHHJdpAi/p7XJLGVvl/WIrZNs=; b=WbtCroGrRbgEeEPvllovmQprbhEwMsISpI8nq5uNizc09yGOq5kk71XI7n4aYiSUdfi/GmPSEXQ/Dy2+ob9p8Tbl8gvZ2ZXQI1a4JdmThDlHUN2hBJM80AXifioMGKW9mI6gf/APrXtWF3a1xROi1U1v0MoprmcdMj7AsijOm6bfgHMhOQf7/WUCc1H7myLMApcqZJqNohXiyxRwtFzBwdTY+mNAaKwTJV02tEAFtPS4R3jNxeubfE3DL4OZ/YJc2/hN+7I2wuz95S0uAOxZT67GfB1tkoO2JRrbRmf5tAAm0r4JViAIWu9Kdqgg3O7wXuJNOhlhZCxPQ6gIznhhzA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZfcmPqcLxcQqGMtf3HZ4j+tro6dXrfs3fFgcqp36uk8EU67ARKwA43GBwM7aNHbXP5jUUUXPblG1ZK+3bXzP7rWdg/QjD5u+woGRXZL+y2PL5H8Avxo8cMj9s124CPl6/PRYZk8KpESW6B6pZFCO1Edop9e3/h/lr6DHMaopzlG6g0W5hvyT/GNqcy7Q9TflqqmW1SZS8MdWKY+DGHHZbHD+oamVAwxpWtozGwG59EeoyF7TxKmI0lyZmM6b/sqTxwqyh5X+RthBxuDT0uMFRWnZPQy0jXjulvcxXOUdmVGoL5zeO6fkQRF5G9CKIi2GhfWAYlX2DEoFASmAY0Bvuw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Thu, 27 Jan 2022 09:33:37 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Andrew says "Given the AMD MSR_SPEC_CTRL series just posted, use of
CPUID bits will often be symmetrical and it's awkward to have one or
with a prefix and the other without." Let's drop the two prefixes of
this kind that we have.

Requested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
v3: New.

--- a/tools/misc/xen-cpuid.c
+++ b/tools/misc/xen-cpuid.c
@@ -152,13 +152,13 @@ static const char *const str_e8b[32] =
     /* [ 8] */                 [ 9] = "wbnoinvd",
 
     [12] = "ibpb",
-    [14] = "ibrs",             [15] = "amd-stibp",
+    [14] = "ibrs",             [15] = "stibp",
     [16] = "ibrs-always",      [17] = "stibp-always",
     [18] = "ibrs-fast",        [19] = "ibrs-same-mode",
 
     [20] = "no-lmsl",
     /* [22] */                 [23] = "ppin",
-    [24] = "amd-ssbd",         [25] = "virt-ssbd",
+    [24] = "ssbd",             [25] = "virt-ssbd",
     [26] = "ssb-no",
     [28] = "psfd",
 };




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.