From: Keir Fraser Subject: Re: Re: [Xen-staging] [xen-unstable] linux: User-space grant table device. Date: Sat, 31 Mar 2007 16:36:59 +0100 Message-ID: References: <1175355236.13963.47.camel@bling> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1175355236.13963.47.camel@bling> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Alex Williamson , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 31/3/07 16:33, "Alex Williamson" wrote: >> + /* This flag ensures that the page tables are not unpinned before the >> + * VM area is unmapped. Therefore Xen still recognises the PTE as >> + * belonging to an L1 pagetable, and the grant unmap operation will >> + * succeed, even if the process does not exit cleanly. >> + */ >> + vma->vm_mm->context.has_foreign_mappings = 1; > > mm_context_t is arch specific, common code shouldn't be poking at it > like this. Good point. That part is entirely x86-specific. I'll add an ifdef. -- Keir