[kvm-kmod PATCH]: Provide X86_FEATURE_CLFLUSH for kernels < 3.15

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

 



Signed-off-by: Gabriel Somlo <somlo@xxxxxxx>
---

Jan,

Apparently this is needed to build the latest kvm git on 3.13 kernels
(e.g., Fedora 20, in my case).

Thanks,
  Gabriel

 x86/external-module-compat.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/x86/external-module-compat.h b/x86/external-module-compat.h
index d5e7269..3c41c74 100644
--- a/x86/external-module-compat.h
+++ b/x86/external-module-compat.h
@@ -228,6 +228,10 @@ static inline int rdmsrl_safe(unsigned msr, unsigned long long *p)
 #define MSR_K8_INT_PENDING_MSG  0xc0010055
 #endif
 
+#ifndef X86_FEATURE_CLFLUSH
+#define X86_FEATURE_CLFLUSH	(0*32+19)
+#endif
+
 #ifndef X86_FEATURE_FXSR_OPT
 #define X86_FEATURE_FXSR_OPT	(1*32+25)
 #endif
-- 
1.9.0

--
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