From: "Jan Beulich" Subject: Re: grant table interface addition? Date: Fri, 31 Oct 2008 16:13:16 +0000 Message-ID: <490B3CAC.76E4.0078.0@novell.com> References: <490B37E3.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 31.10.08 17:03 >>> >On 31/10/08 15:52, "Jan Beulich" wrote: > >> Looking at that code I see some other potential issue, though: >> GRANT_PTE_FLAGS include PAGE_USER for x86-64, but the generated >> pte is passed through adjust_guest_l1e(), so without >> GNTMAP_application_map we'd get global kernel mappings. Am I wrong >> here? > >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. Jan