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] Double mapping of iomem assertion

To: Kieran Mansley <kmansley@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Double mapping of iomem assertion
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 17 Oct 2007 17:06:55 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 17 Oct 2007 09:07:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1192636736.4277.30.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: AcgQ17y0+31EX3zKEdyDiAAX8io7RQ==
Thread-topic: [Xen-devel] Double mapping of iomem assertion
User-agent: Microsoft-Entourage/11.3.6.070618
On 17/10/07 16:58, "Kieran Mansley" <kmansley@xxxxxxxxxxxxxx> wrote:

> The second ioremap calls get_vm_area() and happens to be given a region
> of virtual memory that at least partly overlaps the area that was used
> for the first one.  As the area was freed by the iounmap() in the middle
> this seems sensible, but then when it comes to get the PTE for the
> virtual addresses in the second map, it finds there are entries left
> over from the first one.

Well, that's bogus. iounmap() should zap all PTEs via remove_vm_area(). If
it's not doing so then we have a bug.

 -- Keir




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