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

[PATCH v v2 6/7] x86: Remove x86 prefixed names from cpuinfo


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Kevin Lampis <kevin.lampis@xxxxxxxxxx>
  • Date: Thu, 12 Mar 2026 20:43:38 +0000
  • 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
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=7fJg8okjUbsXwQL72YI3Ef64Z5xJVF476Y9inw/GDl0=; b=Lc5qX6Y6lasGmrf3EWGg4V6TUPWIqtvOie1MkT1bA+tPc88WJkn2w38Nbvd4YkHtUS03QCWwG2YhjSPaSZpuWC2cK1XS0AWPEFag2ijYWXwORU3LcCcP0pkm0GciB9BmB9XIPJgACbx/+SFoJTN92CYpxSH8tcix56pXk4kxSzTP6SQQOmgK3SS8uqVuaL1NatVCTzCKA3c3DgsqFTwHEUtje4dKjdxezUWR4orLZRTu3TKfwtghKLykdk8SLNoiJ/wHLscr0CF2u3cw28sQ1fT7W1QV6NhcAmIMlMez1TWFnu0hdfgW1l5yCAPzbM7+VLxjj1OeRRlsGXKFrt6/Qw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RSye53M99Gu5WnsdM3B1OI2RnrAVDbjQBM2XAJuKdj0yPEnZAtRC251x2PifeQhFjyCpVtQueSIfpppCmzQEVE2OEKCD8mZ595L5KA/dD88+9YmO35KW7PMkXww3C3wv2UVShV8VGTp22OaKbkxHLbY6DQw6OrcNlsaMnog2JwaRREZMORfDhZW/Tl0jkz6lzvr0e75rtHW+huLToV8ao3sNCDVMngbcRw2FyFE1PJMVI2yI+PfyowJ8g2rCZlcmw66xYSHPZSSHddQ+c2H7tvTfldvRzO3SE/bGMxkxInF6MIkPLzwnwWUaLt0sb4E4vg6S/Yz5gAzzLg/So5HBHA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: jbeulich@xxxxxxxx, andrew.cooper3@xxxxxxxxxx, roger.pau@xxxxxxxxxx, Kevin Lampis <kevin.lampis@xxxxxxxxxx>
  • Delivery-date: Thu, 12 Mar 2026 20:44:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Signed-off-by: Kevin Lampis <kevin.lampis@xxxxxxxxxx>
---
Changes in v2:
- Remove the unneeded unions
---
 xen/arch/x86/include/asm/cpufeature.h | 21 ++++-----------------
 1 file changed, 4 insertions(+), 17 deletions(-)

diff --git a/xen/arch/x86/include/asm/cpufeature.h 
b/xen/arch/x86/include/asm/cpufeature.h
index dcd223d84f..11661a114f 100644
--- a/xen/arch/x86/include/asm/cpufeature.h
+++ b/xen/arch/x86/include/asm/cpufeature.h
@@ -43,29 +43,16 @@
 #ifndef __ASSEMBLER__
 
 struct cpuinfo_x86 {
-    /* TODO: Phase out the x86 prefixed names. */
     union {
         struct {
-            union {
-                uint8_t x86_model;
-                uint8_t model;
-            };
-            union {
-                uint8_t x86;
-                uint8_t family;
-            };
-            union {
-                uint8_t x86_vendor;
-                uint8_t vendor;
-            };
+            uint8_t model;
+            uint8_t family;
+            uint8_t vendor;
             uint8_t _rsvd;             /* Use of this needs coordinating with 
VFM_MAKE() */
         };
         uint32_t vfm;                  /* Vendor Family Model */
     };
-    union {
-        uint8_t x86_mask;
-        uint8_t stepping;
-    };
+    uint8_t stepping;
 
     unsigned int cpuid_level;          /* Maximum supported CPUID level */
     unsigned int extended_cpuid_level; /* Maximum supported CPUID extended 
level */
-- 
2.51.1




 


Rackspace

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