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

[Xen-changelog] [xen-unstable] x86 xsave: Fix 64bit xsave_feature support for set_xcr0().



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1293179854 0
# Node ID a71729704d4b53d6802dc7582328ca8ebbc5a855
# Parent  a0228a0f3fd223dcc4260bd5824ac5b86ef6f09a
x86 xsave: Fix 64bit xsave_feature support for set_xcr0().

Signed-off-by: Wei Huang <wei.huang2@xxxxxxx>
---
 xen/arch/x86/i387.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r a0228a0f3fd2 -r a71729704d4b xen/arch/x86/i387.c
--- a/xen/arch/x86/i387.c       Fri Dec 24 08:32:43 2010 +0000
+++ b/xen/arch/x86/i387.c       Fri Dec 24 08:37:34 2010 +0000
@@ -187,7 +187,7 @@ void xsave_init(void)
      * Set CR4_OSXSAVE and run "cpuid" to get xsave_cntxt_size.
      */
     set_in_cr4(X86_CR4_OSXSAVE);
-    set_xcr0(eax & XCNTXT_MASK);
+    set_xcr0((((u64)edx << 32) | eax) & XCNTXT_MASK);
     cpuid_count(XSTATE_CPUID, 0, &eax, &ebx, &ecx, &edx);
 
     if ( cpu == 0 )

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


 


Rackspace

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