From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: [patch 4/5] KVM: export follow_page() Date: Thu, 20 Dec 2007 19:18:25 -0500 Message-ID: <20071221002024.423895760@redhat.com> References: <20071221001821.029994250@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel , mtosatti-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org To: Avi Kivity Return-path: Content-Disposition: inline; filename=export-follow-page List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org 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 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, -- ------------------------------------------------------------------------- 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/