Santos, Jose Renato G
2006-Sep-15 02:07 UTC
[Xen-devel] Question: how to unmap memory mapped with direct_kernel_remap_pfn_range() ?
Hi, 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? Thanks Renato _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2006-Sep-15 09:53 UTC
Re: [Xen-devel] Question: how to unmap memory mapped with direct_kernel_remap_pfn_range() ?
On 15/9/06 03:07, "Santos, Jose Renato G" <joserenato.santos@hp.com> 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@lists.xensource.com http://lists.xensource.com/xen-devel
Santos, Jose Renato G
2006-Sep-15 15:44 UTC
RE: [Xen-devel] Question: how to unmap memory mapped with direct_kernel_remap_pfn_range() ?
Thanks, Keir Renato> -----Original Message----- > From: Keir Fraser [mailto:Keir.Fraser@cl.cam.ac.uk] > Sent: Friday, September 15, 2006 2:54 AM > To: Santos, Jose Renato G; xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] Question: how to unmap memory mapped > with direct_kernel_remap_pfn_range() ? > > > > > On 15/9/06 03:07, "Santos, Jose Renato G" > <joserenato.santos@hp.com> 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@lists.xensource.com http://lists.xensource.com/xen-devel