From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [patch 4/5] KVM: export follow_page() Date: Sat, 22 Dec 2007 21:43:55 +0200 Message-ID: <476D68FB.9050205@qumranet.com> References: <20071221001821.029994250@redhat.com> <20071221002024.423895760@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Marcelo Tosatti Return-path: In-Reply-To: <20071221002024.423895760-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 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 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 > > 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. ------------------------------------------------------------------------- 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/