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

[Xen-devel] Re: Will map_domain_page return NULL when fails on x86_32?

To: "Li, Xin B" <xin.b.li@xxxxxxxxx>
Subject: [Xen-devel] Re: Will map_domain_page return NULL when fails on x86_32?
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 27 Feb 2006 13:48:03 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 27 Feb 2006 13:48:16 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <59D45D057E9702469E5775CBB56411F101C60F93@pdsmsx406>
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: <59D45D057E9702469E5775CBB56411F101C60F93@pdsmsx406>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On 27 Feb 2006, at 13:34, Li, Xin B wrote:

Hi Keir, just a curious question, will map_domain_page
return NULL when
fails on x86_32? If not, why?
thanks

I don't expect that it should ever fail. It's used for temporary
mappings (e.g., scope of a function) and so even though the mapping
space is finite, we shouldn't ever exhaust it.

So the unmap is not a must?
Can you explain the mechanism of garbage collection here?
Thanks

The unmap is a must. After unmap the mapping is put in a per-vcpu lookup table to allow fast reuse. When it is evicted from that table then it is freed.

 -- Keir


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

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