From: Tim Deegan Subject: Re: [V10 PATCH 09/23] PVH xen: introduce pvh_set_vcpu_info() and vmx_pvh_set_vcpu_info() Date: Tue, 13 Aug 2013 09:51:16 +0100 Message-ID: <20130813085116.GA35164@ocelot.phlegethon.org> References: <1374631171-15224-1-git-send-email-mukesh.rathor@oracle.com> <1374631171-15224-10-git-send-email-mukesh.rathor@oracle.com> <51FFA43702000078000E936E@nat28.tlf.novell.com> <20130807180549.46941f85@mantra.us.oracle.com> <52035D4902000078000EA1C6@nat28.tlf.novell.com> <20130809164138.38aa9b06@mantra.us.oracle.com> <20130812090036.GA23354@ocelot.phlegethon.org> <20130812170249.296bfe9b@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1V9AK3-0005X6-6J for xen-devel@lists.xenproject.org; Tue, 13 Aug 2013 08:51:23 +0000 Content-Disposition: inline In-Reply-To: <20130812170249.296bfe9b@mantra.us.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Mukesh Rathor Cc: xen-devel , Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org At 17:02 -0700 on 12 Aug (1376326969), Mukesh Rathor wrote: > On Mon, 12 Aug 2013 10:00:36 +0100 Tim Deegan wrote: > > At 16:41 -0700 on 09 Aug (1376066498), Mukesh Rathor wrote: > > > Ugh, to find the G bit, I need to walk the GDT to find the LDT > > > descriptor. > > > > Why so? The caller supplies you with the LDT base and range, not a > > segment selector. I don't think you could find the right LDT selector > > by scanning the GDT anyway -- what if there were two that matched? > > Because the range is interpreted in bytes or pages depending on the G > bit in the descriptor. The range is specified in _entries_. Unless you intend to change the interface, in which case, you could just ask for the descriptor. Tim.