[patch 4/5] KVM: export follow_page()

Marcelo Tosatti
2007-12-21T00:18:25Z

[-- Attachment #1: export-follow-page --]
[-- Type: text/plain, Size: 799 bytes --]

follow_page() is required by KVM to find the struct page which maps
to a given address in spinlock protected code.

Signed-off-by: Marcelo Tosatti <mtosatti-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

Index: kvm.quilt/mm/memory.c
===================================================================
--- kvm.quilt.orig/mm/memory.c
+++ kvm.quilt/mm/memory.c
@@ -970,6 +970,7 @@ no_page_table:
}
return page;
}
+EXPORT_SYMBOL(follow_page);

int get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
unsigned long start, int len, int write, int force,