From: "Jan Beulich" Subject: Re: Intel: GPF from lret to load CS with weird error code Date: Thu, 30 May 2013 07:03:24 +0100 Message-ID: <51A6F9BC020000780009B676@nat28.tlf.novell.com> References: <20130529190045.72e4a607@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130529190045.72e4a607@mantra.us.oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: eddie.dong@intel.com, jun.nakajima@intel.com, mukesh.rathor@oracle.com Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> Mukesh Rathor 05/30/13 4:02 AM >>> >Guest (PVH) is running in vmx in 64bit mode, it loads CS: > >ffffffff810034d2: 2:load_cs+12 push $0x10 >ffffffff810034d4: 2:load_cs+14 lea 0x2(%rip), %rax >ffffffff810034db: 2:load_cs+1b push %rax >ffffffff810034dc: 2:load_cs+1c lret > >The lret causes a GP. But the error code is strange (0xfffc): This is a strong hint at the lret lacking a REX64 override, and hence the high 32 bits of the intended RIP being taken as target CS. lret, other than ret, doesn't default to 64 bit operand size. Jan