WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-4.1-testing] x86/intel: Fix CPUID leaf 7 detection

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.1-testing] x86/intel: Fix CPUID leaf 7 detection
From: Xen patchbot-4.1-testing <patchbot@xxxxxxx>
Date: Wed, 01 Jun 2011 03:15:11 +0100
Delivery-date: Tue, 31 May 2011 19:16:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Yang, Wei <wei.y.yang@xxxxxxxxx>
# Date 1306570975 -3600
# Node ID dbe9e02a1f75ea88e93e0f154feb01c570f0195d
# Parent  3f2f2543e9434268b7b5c89b1420383d73003b4a
x86/intel: Fix CPUID leaf 7 detection

Must set subleaf to 0 (input ECX==0).

Signed-off-by: Yang, Wei <wei.y.yang@xxxxxxxxx>
Signed-off-by: Li, Xin <xin.li@xxxxxxxxx>
xen-unstable changeset:   23436:f6ce871e5689
xen-unstable date:        Sat May 28 08:57:12 2011 +0100
---


diff -r 3f2f2543e943 -r dbe9e02a1f75 xen/arch/x86/cpu/common.c
--- a/xen/arch/x86/cpu/common.c Sat May 28 09:17:15 2011 +0100
+++ b/xen/arch/x86/cpu/common.c Sat May 28 09:22:55 2011 +0100
@@ -316,9 +316,11 @@
                }
 
                /* Intel-defined flags: level 0x00000007 */
-               if ( c->cpuid_level >= 0x00000007 )
-                       c->x86_capability[X86_FEATURE_FSGSBASE / 32]
-                               = cpuid_ebx(0x00000007);
+               if ( c->cpuid_level >= 0x00000007 ) {
+                       u32 dummy, ebx;
+                       cpuid_count(0x7, 0, &dummy, &ebx, &dummy, &dummy);
+                       c->x86_capability[X86_FEATURE_FSGSBASE / 32] = ebx;
+               }
        }
 
        early_intel_workaround(c);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.1-testing] x86/intel: Fix CPUID leaf 7 detection, Xen patchbot-4 . 1-testing <=