From: Markus Armbruster Subject: Re: 32-on-64: pvfb issue Date: Fri, 19 Jan 2007 13:03:14 +0100 Message-ID: <87r6trw7el.fsf@pike.pond.sub.org> References: <1169203389.6453.23.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <1169203389.6453.23.camel@localhost.localdomain> (Ian Campbell's message of "Fri, 19 Jan 2007 10:43:09 +0000") List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: Gerd Hoffmann , Xen devel list , Keir Fraser List-Id: xen-devel@lists.xenproject.org Ian Campbell writes: > On Thu, 2007-01-18 at 18:31 +0000, Keir Fraser wrote: >> This is even better than with blkfront/blkback because there are definitely >> no PV-on-HVM pvfb driver frontends out in the wild (and it's HVM that makes >> things harder). > > PV on HVM for fbfront is pretty hard since the kernel.org tree does not > export zap_page_range to modules, neither do many of the older distro > kernels I've looked at. > > I tried doing a compat version like with other such functions but it > ended up pulling half of mm/memory.c into the compat layer which I don't > like. > > Do I vaguely recall plans to get rid of the use of zap_page_range or is > my memory playing tricks? > > Ian. We'd like to replace zap_page_range() with unmap_mapping_range(), for several good reasons: * it is already fully exported, * it deals with locking automatically via the address_space i_mmap_lock spinlock, * it automatically iterates over all the vmas on the address_space without us having to loop over them ourselves.