From: Keir Fraser Subject: Re: grant table interface addition? Date: Fri, 31 Oct 2008 17:00:04 +0000 Message-ID: References: <490B3F18.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <490B3F18.76E4.0078.0@novell.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: Jan Beulich Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 31/10/08 16:23, "Jan Beulich" wrote: >>>> Keir Fraser 31.10.08 17:17 >>> >> On 31/10/08 16:13, "Jan Beulich" wrote: >> >>>> GRANT_PTE_FLAGS should include _PAGE_GUEST_KERNEL then? >>> >>> No, it should uniformly include neither _PAGE_USER nor _PAGE_GUEST_KERNEL. >>> _PAGE_USER gets set when GNTMAP_application_map is specified, and >>> based on this setting of _PAGE_USER, adjust_guest_l1e() will set either >>> _PAGE_GUEST_KERNEL or _PAGE_GLOBAL. >> >> The grant code doesn't use adjust_l1e() though. > > Both create_grant_pte_mapping() and create_grant_va_mapping() do > afaics. Ah yes, indeed. Please send a patch to deal with this and _PAGE_NX. -- Keir