This is the kvm-userland patch needed to compile kvm.git as an external module on a kernel w/ MMU_NOTIFIER=n with the kvm swapping patch applied to kvm.git.
Signed-off-by: Andrea Arcangeli <[EMAIL PROTECTED]> diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h index 67b9cc4..8a65fc6 100644 --- a/kernel/external-module-compat.h +++ b/kernel/external-module-compat.h @@ -17,6 +17,31 @@ #include <linux/hrtimer.h> #include <asm/bitops.h> +#ifndef CONFIG_MMU_NOTIFIER +struct mmu_notifier; + +struct mmu_notifier_ops { + void (*release)(struct mmu_notifier *mn, + struct mm_struct *mm); + void (*age_page)(struct mmu_notifier *mn, + struct mm_struct *mm, + unsigned long address); + void (*invalidate_page)(struct mmu_notifier *mn, + struct mm_struct *mm, + unsigned long address); + void (*invalidate_range)(struct mmu_notifier *mn, + struct mm_struct *mm, + unsigned long start, unsigned long end); +}; + +struct mmu_notifier { + const struct mmu_notifier_ops *ops; +}; +#define mmu_notifier_register(mn, mm) do {} while(0) +#define mmu_notifier_unregister(mn, mm) do {} while (0) +#define mmu_notifier_release(mm) do {} while (0) +#endif + /* * 2.6.16 does not have GFP_NOWAIT */ ------------------------------------------------------------------------- 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-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel