From patchwork Tue Jul 6 08:53:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 110383 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o668tglE002486 for ; Tue, 6 Jul 2010 08:55:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754933Ab0GFIzn (ORCPT ); Tue, 6 Jul 2010 04:55:43 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:49513 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1754952Ab0GFIzn (ORCPT ); Tue, 6 Jul 2010 04:55:43 -0400 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id AC5EB17011B; Tue, 6 Jul 2010 16:55:41 +0800 (CST) Received: from fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id o668r2lD017907; Tue, 6 Jul 2010 16:53:02 +0800 Received: from [10.167.141.76] (unknown [10.167.141.76]) by fnst.cn.fujitsu.com (Postfix) with ESMTPA id BAE10292612; Tue, 6 Jul 2010 16:55:53 +0800 (CST) Message-ID: <4C32EF1B.7040709@cn.fujitsu.com> Date: Tue, 06 Jul 2010 16:53:47 +0800 From: Wei Yongjun User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: Avi Kivity , Marcelo Tosatti CC: kvm@vger.kernel.org Subject: [PATCH 5/6] KVM: x86 emulator: fix 'mov AL, moffs' instruction decoding References: <4C32EE01.5050408@cn.fujitsu.com> In-Reply-To: <4C32EE01.5050408@cn.fujitsu.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 06 Jul 2010 08:55:59 +0000 (UTC) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 8337567..d4526f2 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -177,8 +177,8 @@ static u32 opcode_table[256] = { 0, 0, SrcImmFAddr | No64, 0, ImplicitOps | Stack, ImplicitOps | Stack, 0, 0, /* 0xA0 - 0xA7 */ - ByteOp | DstReg | SrcMem | Mov | MemAbs, DstReg | SrcMem | Mov | MemAbs, - ByteOp | DstMem | SrcReg | Mov | MemAbs, DstMem | SrcReg | Mov | MemAbs, + ByteOp | SrcMem | Mov | MemAbs, SrcMem | Mov | MemAbs, + ByteOp | DstMem | Mov | MemAbs, DstMem | Mov | MemAbs, ByteOp | SrcSI | DstDI | Mov | String, SrcSI | DstDI | Mov | String, ByteOp | SrcSI | DstDI | String, SrcSI | DstDI | String, /* 0xA8 - 0xAF */