aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-03-23 15:10:37 +0200
committerAvi Kivity <avi@qumranet.com>2008-03-23 15:10:37 +0200
commit62631d518695a98402ec23bfcacdf2c205a1bc6c (patch)
treea095fafaf72e678af0f9eda8c69ef3542aa95f70
parent7c2e2599403a99bdc33442568898c8bddde4310e (diff)
kvm: external module: kvm no longer depends on mm_count and mmdrop()kvm-64rc1
Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r--kvm/kernel/external-module-compat.h14
-rw-r--r--kvm/kernel/hack-module.awk2
2 files changed, 0 insertions, 16 deletions
diff --git a/kvm/kernel/external-module-compat.h b/kvm/kernel/external-module-compat.h
index b7e2ee4a8..f6583afc4 100644
--- a/kvm/kernel/external-module-compat.h
+++ b/kvm/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/kvm/kernel/hack-module.awk b/kvm/kernel/hack-module.awk
index b281b200d..a9ef66e4d 100644
--- a/kvm/kernel/hack-module.awk
+++ b/kvm/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 "),"