From patchwork Tue May 11 22:39:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohammed Gamal X-Patchwork-Id: 98851 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 o4BMdfDT011971 for ; Tue, 11 May 2010 22:39:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752204Ab0EKWji (ORCPT ); Tue, 11 May 2010 18:39:38 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:39522 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751900Ab0EKWjh (ORCPT ); Tue, 11 May 2010 18:39:37 -0400 Received: by wyb32 with SMTP id 32so338504wyb.19 for ; Tue, 11 May 2010 15:39:36 -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:in-reply-to:references; bh=9Kssc8vwOjp9Y07TMm8YB7xQcP0/XDTAmjlfZbjtkME=; b=XFE9LnRheDDcxcUNCKwvEMgA6XB9HrCOFFnye6ajCTHX2pJR9iOLh24NraZbFkhNnv tiRM8jE07kx4egG3DieVZQ8HnHSBE5n6v6NcEJ68U2Ta9AabICgInqYSo0Jqq269UC01 zH6w7LrX3jup2tnF+Z2Cv6bM+6493MfzdhCQQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=l8ngRgpikbNN3Qh9mEauBdIrAoFkHcN1iSKZZzanXWbbI/yMQ/17xwrjquSbyYrwAq B6NoM3fqpgQ49it2pexTzANjBfwnSTprjPvOY0H2qi9ltdHs0dvcP8Zvo6OkOWogTFrg MZzXc645joALk/2R/bKeZViM2ChqL2jUvzuV0= Received: by 10.227.135.201 with SMTP id o9mr6139326wbt.22.1273617575859; Tue, 11 May 2010 15:39:35 -0700 (PDT) Received: from localhost ([41.239.157.121]) by mx.google.com with ESMTPS id x34sm34553275wbd.22.2010.05.11.15.39.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 May 2010 15:39:35 -0700 (PDT) From: Mohammed Gamal To: avi@redhat.com Cc: mtosatti@redhat.com, kvm@vger.kernel.org, Mohammed Gamal Subject: [PATCH 2/2] x86 emulator: Add missing decoder flags for xor instructions Date: Wed, 12 May 2010 01:39:22 +0300 Message-Id: <1273617562-6275-2-git-send-email-m.gamal005@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1273617562-6275-1-git-send-email-m.gamal005@gmail.com> References: <1273617562-6275-1-git-send-email-m.gamal005@gmail.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, 11 May 2010 22:39:41 +0000 (UTC) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 5c523ed..1650fe5 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -130,7 +130,7 @@ static u32 opcode_table[256] = { /* 0x30 - 0x37 */ 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, /* 0x38 - 0x3F */ ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM, ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,