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] Question: how to unmap memory mapped with direct_kernel_

To: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Question: how to unmap memory mapped with direct_kernel_remap_pfn_range() ?
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Fri, 15 Sep 2006 10:53:49 +0100
Delivery-date: Fri, 15 Sep 2006 02:52:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <08CA2245AFCF444DB3AC415E47CC40AF189182@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: AcbYa6WBlnaFS//hTqCPbsrGYicO9gAQTIZR
Thread-topic: [Xen-devel] Question: how to unmap memory mapped with direct_kernel_remap_pfn_range() ?
User-agent: Microsoft-Entourage/11.2.5.060620


On 15/9/06 03:07, "Santos, Jose Renato G" <joserenato.santos@xxxxxx> wrote:

> Xenoprof buffers are mapped into the kernel using
> direct_kernel_remap_pfn_range().
> I need to unmap the buffer when it is not needed anymore.
> 
> However, I could not find any function that unmaps pages previously
> mapped with direct_kernel_remap_pfn_range().
> Any suggestion on how to do this?

Remember the vm_struct returned by alloc_vm_area(). Pass it to
free_vm_area() to unmap and free.

 -- Keir



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

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