From: Avi Kivity <[EMAIL PROTECTED]>

Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>

diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h
index c3f509c..052d561 100644
--- a/kernel/external-module-compat.h
+++ b/kernel/external-module-compat.h
@@ -582,6 +582,14 @@ static inline void blahblah(void)
 #define EFER_LMA            (1<<_EFER_LMA)
 #endif
 
+/* pagefault_enable(), page_fault_disable() - 2.6.20 */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
+
+#define pagefault_enable()  do {} while (0)
+#define pagefault_disable() do {} while (0)
+
+#endif
+
 /* vm ops ->fault() was introduced in 2.6.23. */
 #include <linux/mm.h>
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-commits mailing list
kvm-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-commits

Reply via email to