Skip to contentSkip to conversation

Add FFXSR defines to compat headers

PATCH New Alexander Graf 1 participant 1 message Jan 28, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add FFXSR defines to compat headers

The FFXSR feature depends on some defines that were only recently included, so let's expose them manually when building an external module.

---
 kernel/x86/external-module-compat.h  |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
kernel/x86/external-module-compat.h +9 -0
index aa95a7c..72e8c2f 100644
@@ -35,12 +35,21 @@
 #define EFER_SVME		(1<<_EFER_SVME)
 #endif
 
+#ifndef _EFER_FFXSR
+#define _EFER_FFXSR		14
+#define EFER_FFXSR		(1<<_EFER_FFXSR)
+#endif
+
 #include <asm/cpufeature.h>
 
 #ifndef X86_FEATURE_SVM
 #define X86_FEATURE_SVM               (6*32+ 2) /* Secure virtual machine */
 #endif
 
+#ifndef X86_FEATURE_FXSR_OPT
+#define X86_FEATURE_FXSR_OPT    (1*32+25) /* FXSAVE/FXRSTOR optimizations */
+#endif
+
 #include <linux/smp.h>
 
 #ifndef X86_CR0_PE
Signature · 1 line
1.6.0.2