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 b7e2ee4..f6583af 100644 --- a/kernel/external-module-compat.h +++ b/kernel/external-module-compat.h @@ -558,20 +558,6 @@ static inline void blahblah(void) (void)empty_zero_page[0]; } -/* __mmdrop() is not exported before 2.6.25 */ -#include <linux/sched.h> - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25) - -#define mmdrop(x) do { (void)(x); } while (0) -#define mmget(x) do { (void)(x); } while (0) - -#else - -#define mmget(x) do { atomic_inc(x); } while (0) - -#endif - /* X86_FEATURE_NX is missing in some x86_64 kernels */ #include <asm/cpufeature.h> diff --git a/kernel/hack-module.awk b/kernel/hack-module.awk index b281b20..a9ef66e 100644 --- a/kernel/hack-module.awk +++ b/kernel/hack-module.awk @@ -33,8 +33,6 @@ vmx_load_host_state = 0 } -/atomic_inc\(&kvm->mm->mm_count\);/ { $0 = "mmget(&kvm->mm->mm_count);" } - /^\t\.fault = / { fcn = gensub(/,/, "", "g", $3) $0 = "\t.VMA_OPS_FAULT(fault) = VMA_OPS_FAULT_FUNC(" fcn ")," ------------------------------------------------------------------------- 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