From patchwork Tue May 11 22:39:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohammed Gamal X-Patchwork-Id: 98850 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4BMdZu8011837 for ; Tue, 11 May 2010 22:39:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752098Ab0EKWjb (ORCPT ); Tue, 11 May 2010 18:39:31 -0400 Received: from mail-ww0-f46.google.com ([74.125.82.46]:57632 "EHLO mail-ww0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751900Ab0EKWja (ORCPT ); Tue, 11 May 2010 18:39:30 -0400 Received: by wwi18 with SMTP id 18so360516wwi.19 for ; Tue, 11 May 2010 15:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=u36nCQgOHgLRNHdUGv+BmP+W7XzoruCeK2pRV8UpLJM=; b=nMrc6I+7UBpVVtdtPCiTGsowN+6ByI0JMsXcIOeL3m/xPZ/e8z2qYRZM3txjDXXEbb TFVy/9ldaovE2q/aJ+I0DzaeKB42VhlMCQgtAWXX05HVAL2lFZm+pWEj3GGnXRqs41Qe Xg1ZrhMyyMdmNCzbRHf07IZ0uC8VU7z3KrpNw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=p0DvoEi3Wjx/RpIcezfT1s2dzZLKiJIiRCmyH2SyGVHvRbGlshQ2F2hyUAC1/OpdMd wyWU651fUlyl+NwdZR9XOAnPLtqyp2X2kLrsb037shqQgqP2OoPX3nE8wFlCN4Yf3dkc xWpkxaknPFCtRDhOjHwDbpfxq9GyKt87iFpcg= Received: by 10.227.146.17 with SMTP id f17mr6040880wbv.106.1273617569308; Tue, 11 May 2010 15:39:29 -0700 (PDT) Received: from localhost ([41.239.157.121]) by mx.google.com with ESMTPS id z33sm52148016wbd.13.2010.05.11.15.39.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 May 2010 15:39:28 -0700 (PDT) From: Mohammed Gamal To: avi@redhat.com Cc: mtosatti@redhat.com, kvm@vger.kernel.org, Mohammed Gamal Subject: [PATCH 1/2] x86 emulator: Add missing decoder flags for sub instruction Date: Wed, 12 May 2010 01:39:21 +0300 Message-Id: <1273617562-6275-1-git-send-email-m.gamal005@gmail.com> X-Mailer: git-send-email 1.7.0.4 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, 11 May 2010 22:39:35 +0000 (UTC) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index be5e78d..5c523ed 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -126,7 +126,7 @@ static u32 opcode_table[256] = { /* 0x28 - 0x2F */ ByteOp | DstMem | SrcReg | ModRM | Lock, DstMem | SrcReg | ModRM | Lock, ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM, - 0, 0, 0, 0, + ByteOp | DstAcc | SrcImmByte, DstAcc | SrcImm, 0, 0, /* 0x30 - 0x37 */ ByteOp | DstMem | SrcReg | ModRM | Lock, DstMem | SrcReg | ModRM | Lock, ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,