repository: /home/avi/kvm branch: master commit 9a1c97bfd8b2208b7cc8cd288456b690760ae80d Author: Avi Kivity <[EMAIL PROTECTED]> Date: Sun Dec 2 23:13:50 2007 +0200
kvm: external module: EFER_LME compatibility Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h index 852416e..b7f9e8d 100644 --- a/kernel/external-module-compat.h +++ b/kernel/external-module-compat.h @@ -564,3 +564,10 @@ static inline void blahblah(void) #undef false #define false 0 +/* EFER_LMA and EFER_LME are missing in pre 2.6.24 i386 kernels */ +#ifndef EFER_LME +#define _EFER_LME 8 /* Long mode enable */ +#define _EFER_LMA 10 /* Long mode active (read-only) */ +#define EFER_LME (1<<_EFER_LME) +#define EFER_LMA (1<<_EFER_LMA) +#endif ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ kvm-commits mailing list kvm-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-commits