From: Keir Fraser Subject: Re: Re: Making pages writable again in paging_log_dirty mode Date: Fri, 02 Jan 2009 17:38:24 +0000 Message-ID: References: <20090102172058.GC12729@york.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090102172058.GC12729@york.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan , Mike Sun Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 02/01/2009 17:20, "Tim Deegan" wrote: > This is all confused further by the fact that the checks for these > un-type-counted mappings in put_page_from_l1e() doesn't quite match the > check in get_page_from_l1e(); ISTR there's a difference in the semantics > of the domain pointer argument to the two functions; maybe Keir can > refresh my memory. The checks are the same I think, but indeed the domain argument to get_page_from_l1e() and put_page_from_l1e() have slightly different meanings -- the former is essentially a capability, which is checked for permission to create the given PTE (usually the domain which owns the PTE, unless a foreigndom is specified to do_mmu_update()), while the latter is *always* the domain which owns the PTE. -- Keir