WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] building blktap as a module

To: Jan Beulich <jbeulich@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] building blktap as a module
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 16 Oct 2006 11:31:18 +0100
Cc: Andrew Warfield <Andrew.Warfield@xxxxxxxxxxxxx>
Delivery-date: Mon, 16 Oct 2006 03:31:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <453371A8.76E4.0078.0@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcbxDjbtdXsLvV0BEduYbQAX8io7RQ==
Thread-topic: [Xen-devel] building blktap as a module
User-agent: Microsoft-Entourage/11.2.5.060620
On 16/10/06 10:48, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:

> While drivers/xen/Kconfig has been changed to allow blktap to be a module,
> its Makefile doesn't and, if fixed, it needs a symbol not currently exported
> (zap_page_range). I thought I saw discussion of this on the list, but wasn't
> able to find it in the archives. So - does anyone care to fix this (i.e.
> replace
> the calls to zap_page_range() by exported functionality) or should I just
> post a patch fixing the Makefile and exporting zap_page_range?

The uses of zap_page_range look dubious to me.
 1. The one in blktap_release() - why? Standard semantics is for mmap
regions to exist beyond the closing of the mapping device. Doesn't make much
sense to do that here, but then again not really any need to explicitly
disallow it (and add extra code to enforce).
 2. Blktap_mmap() -- the mm subsystem will zap the range anyway on failure.
No need to do it in the driver.
 3. The loop unmaps the pages the proper way (unmap_grant). The
zap_page_range() here is entirely unnecessary afaics.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>