[PATCH] Add FFXSR defines to compat headers

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

 



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

Signed-off-by: Alexander Graf <agraf@xxxxxxx>
---
 kernel/x86/external-module-compat.h  |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/kernel/x86/external-module-compat.h b/kernel/x86/external-module-compat.h
index aa95a7c..72e8c2f 100644
--- a/kernel/x86/external-module-compat.h
+++ b/kernel/x86/external-module-compat.h
@@ -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
-- 
1.6.0.2

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux