All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][SVM] remove FFXSR CPUID bit for AMD-V HVM guests
@ 2007-01-31 23:06 Woller, Thomas
  2007-02-01  8:20 ` Jan Beulich
  0 siblings, 1 reply; 8+ messages in thread
From: Woller, Thomas @ 2007-01-31 23:06 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 397 bytes --]

Remove visibility of the FFXSR CPUID bit to an HVM guest.
This patch allows HVM Windows x64 to install/boot on AMD-V platforms.

This patches applies cleanly to xen-unstable 13743.

Please apply to xen-unstable/3.0.5.
If possible, pls apply to xen-3.0.4-testing. 

 
  --Tom

thomas.woller@amd.com
AMD Corporation
5204 E. Ben White Blvd. UBC1
Austin, Texas 78741
+1-512-602-0059


[-- Attachment #2: svm_cpuid_ffxsr_13743.patch --]
[-- Type: application/octet-stream, Size: 1221 bytes --]

diff -r 54678a99e102 xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c	Wed Jan 31 12:23:35 2007 +0000
+++ b/xen/arch/x86/hvm/svm/svm.c	Wed Jan 31 16:52:42 2007 -0600
@@ -1189,6 +1189,8 @@ static void svm_vmexit_do_cpuid(struct v
         /* So far, we do not support 3DNow for the guest. */
         clear_bit(X86_FEATURE_3DNOW & 31, &edx);
         clear_bit(X86_FEATURE_3DNOWEXT & 31, &edx);
+        /* no FFXSR instructions feature. */
+        clear_bit(X86_FEATURE_FFXSR & 31, &edx);
     }
     else if ( input == 0x80000007 || input == 0x8000000A )
     {
diff -r 54678a99e102 xen/include/asm-x86/cpufeature.h
--- a/xen/include/asm-x86/cpufeature.h	Wed Jan 31 12:23:35 2007 +0000
+++ b/xen/include/asm-x86/cpufeature.h	Wed Jan 31 16:52:21 2007 -0600
@@ -92,6 +92,7 @@
 #define X86_FEATURE_LAHF_LM	(6*32+ 0) /* LAHF/SAHF in long mode */
 #define X86_FEATURE_CMP_LEGACY	(6*32+ 1) /* If yes HyperThreading not valid */
 #define X86_FEATURE_SVME        (6*32+ 2) /* Secure Virtual Machine */
+#define X86_FEATURE_FFXSR       (6*32+25) /* FFXSR instruction optimizations */
 
 #define cpu_has(c, bit)		test_bit(bit, (c)->x86_capability)
 #define boot_cpu_has(bit)	test_bit(bit, boot_cpu_data.x86_capability)

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-02-01 16:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-31 23:06 [PATCH][SVM] remove FFXSR CPUID bit for AMD-V HVM guests Woller, Thomas
2007-02-01  8:20 ` Jan Beulich
2007-02-01 11:10   ` Petersson, Mats
2007-02-01 14:58   ` Woller, Thomas
2007-02-01 16:12     ` Jan Beulich
2007-02-01 16:15       ` Christoph Egger
2007-02-01 16:30       ` Woller, Thomas
2007-02-01 16:47         ` Petersson, Mats

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.