aboutsummaryrefslogtreecommitdiff
path: root/kvm/kernel/external-module-compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'kvm/kernel/external-module-compat.h')
-rw-r--r--kvm/kernel/external-module-compat.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/kvm/kernel/external-module-compat.h b/kvm/kernel/external-module-compat.h
index 59439d5d2..66467c041 100644
--- a/kvm/kernel/external-module-compat.h
+++ b/kvm/kernel/external-module-compat.h
@@ -151,3 +151,17 @@ static inline struct super_block *kvmfs_get_sb(
#define CPU_DEAD_FROZEN (CPU_DEAD | CPU_TASKS_FROZEN)
#endif
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
+
+#ifndef _EFER_SCE
+#define _EFER_SCE 0 /* SYSCALL/SYSRET */
+#endif
+
+#ifndef EFER_SCE
+#define EFER_SCE (1<<_EFER_SCE)
+#endif
+
+#endif
+
+