From: Konrad Rzeszutek Wilk Subject: Re: [PATCH v3] docs: add PVH specification Date: Mon, 22 Sep 2014 09:40:19 -0400 Message-ID: <85c35596-9a71-4dcc-99c3-d5f996bc3c1c@email.android.com> References: <1411060764-4016-1-git-send-email-roger.pau@citrix.com> <20140920191510.GA2882@laptop.dumpdata.com> <5420212A0200007800036DA3@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XW3r0-0003aM-AM for xen-devel@lists.xenproject.org; Mon, 22 Sep 2014 13:40:34 +0000 In-Reply-To: <5420212A0200007800036DA3@mail.emea.novell.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: Jan Beulich , Roger Pau Monne Cc: xen-devel@lists.xenproject.org, David Vrabel List-Id: xen-devel@lists.xenproject.org On September 22, 2014 7:16:26 AM EDT, Jan Beulich wrote: >>>> On 20.09.14 at 21:15, wrote: >> On Thu, Sep 18, 2014 at 07:19:24PM +0200, Roger Pau Monne wrote: >>> +All the segments selectors are set with a flat base at zero. >>> + >>> +The `cs` segment selector attributes are set to 0x0a09b, which >describes an >>> +executable and readable code segment only accessible by the most >privileged >>> +level. The segment is also set as a 64-bit code segment (`L` flag >set, `D` flag >>> +unset). >>> + >>> +The remaining segment selectors (`ds`, `ss`, `es`, `fs` and `gs`) >are all set >>> +to the same values. The attributes are set to 0x0c093, which >implies a read and >>> +write data segment only accessible by the most privileged level. >> >> I think the SS, ES, FS, GS are set to the null selector in 64-bit >mode. > >Right - with their hidden portions set to what is being said in >Roger's description. Correct. I should clarify - I meant that we should say what the selector value is expected to be. And on 64bit it is 0 (aka NULL selector). Not the segment values. Thought maybe that is pointless as the AMD 64 manual is pretty clear that without that being set to zero we will get an exception. > >Jan