diff mbox

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

Message ID 20140403210548.GA1602@ERROL.INI.CMU.EDU (mailing list archive)
State New, archived
Headers show

Commit Message

Gabriel L. Somlo April 3, 2014, 9:05 p.m. UTC
Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
---

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(+)

Comments

Jan Kiszka April 4, 2014, 5:37 a.m. UTC | #1
On 2014-04-03 23:05, Gabriel L. Somlo wrote:
> Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
> ---
> 
> 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
> 

Thanks, applied.

Jan
diff mbox

Patch

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