1 message in com.xensource.lists.xen-develRE: [Xen-devel] Re: Will map_domain_p...
FromSent OnAttachments
Li, Xin B27 Feb 2006 06:13 
Subject:RE: [Xen-devel] Re: Will map_domain_page return NULL when fails onx86_32?
From:Li, Xin B (xin.@intel.com)
Date:02/27/2006 06:13:01 AM
List:com.xensource.lists.xen-devel

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.

Quite clear, thanks, this may be helpful to accelerate __entry(). -Xin

-- Keir