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

Avi Kivity
2007-12-22T19:43:55Z

Marcelo Tosatti wrote:
> 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);
>

This should come before its use in the patch series (and of course, it
may get expanded into a new get_user_page_inatomic() if we're told
that's the right thing).

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.