repository: /home/avi/kvm branch: master commit bb99d33d28f1c89f452a61421de447e3fde0bd1c Author: Avi Kivity <[EMAIL PROTECTED]> Date: Wed Nov 21 18:57:47 2007 +0200
kvm: external module: mm_count compatiblity Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h index 90ed32c..3f1fd26 100644 --- a/kernel/external-module-compat.h +++ b/kernel/external-module-compat.h @@ -548,3 +548,13 @@ 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) + +#endif + diff --git a/kernel/hack-module.awk b/kernel/hack-module.awk index 78cb45d..bac93e1 100644 --- a/kernel/hack-module.awk +++ b/kernel/hack-module.awk @@ -59,6 +59,8 @@ vmx_load_host_state = 0 } +/atomic_inc\(&kvm->mm->mm_count\);/ { $0 = "//" $0 } + { print } /kvm_x86_ops->run/ { ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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