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

xen-devel

[Top] [All Lists]

Re: [Xen-devel] Grant Tables & mm.c

To: Koripella Srinivas <talkwithsrinivas@xxxxxxxxxxx>
Subject: Re: [Xen-devel] Grant Tables & mm.c
From: Derek Murray <derek.murray@xxxxxxxxxxxx>
Date: Sat, 7 Jul 2007 16:19:07 +0100
Cc: keir@xxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Delivery-date: 2007年7月07日 08:17:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <913023.61596.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <913023.61596.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 7 Jul 2007, at 14:44, Koripella Srinivas wrote:
I was looking at the user space grant tables but i did not find any code calling the function "remap_pfn_range" to map the kmalloc ed allocated memory into user space.
What could be the reason?? Or am i missing something
The mapping takes place in drivers/xen/gntdev/gntdev.c, in the function gntdev_mmap(). In the normal case (no shadow page tables), the page is mapped into user space by calling HYPERVISOR_grant_table_op, with the GNTTABOP_map_grant_ref operation, and (amongst other things) a pointer to the page table entry to be rewritten. Therefore, it is not necessary to call remap_pfn_range(). I'm not sure what you mean by "the kmalloc ed allocated memory". The memory is allocated by another domain, and inserted in the grant table. In the kernel that carries out the mapping, kmalloc is used only for allocating kernel-private data structures.
Regards,
Derek Murray.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] User Space Grant Dev Driver , Koripella Srinivas
Next by Date: [Xen-devel] [PATCH] fix exit code patch when a GP fault is generated , Li, Xin B
Previous by Thread: Re: [Xen-devel] Grant Tables & mm.c , Koripella Srinivas
Next by Thread: [Xen-devel] question regarding struct xc_dom_image , tgh
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /