From: Mukesh Rathor Subject: Re: Invalid op code emulation for HVM guest and GPF Date: Fri, 23 Mar 2012 12:28:09 -0700 Message-ID: <20120323122809.6b09d06a@mantra.us.oracle.com> References: <20120323114425.07bd6db7@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Keir Fraser Cc: i, Andrew Cooper , "Xen-devel@lists.xensource.com" , kris.van.hees@oracle.com List-Id: xen-devel@lists.xenproject.org On Fri, 23 Mar 2012 19:17:47 +0000 Keir Fraser wrote: > You'll have to point out the path taken. AFAICS the sequence will Ok, I can do that and let you know. >I don't see where the #GP would come from: certainly hvm_emulate_one() It may be coming from: x86_emulate(): * The only implicit-operands instructions allowed a LOCK prefix are * CMPXCHG{8,16}B, MOV CRn, MOV DRn. */ generate_exception_if( lock_prefix && ((b < 0x20) || (b > 0x23)) && /* MOV CRn/DRn */ (b != 0xc7), /* CMPXCHG{8,16}B */ EXC_GP, 0); thanks, Mukesh