From: Avi Kivity Subject: [PATCH 0/4] Vendor specific instructions and the emulator Date: Tue, 4 Jan 2011 15:14:40 +0200 Message-ID: <1294146884-6253-1-git-send-email-avi@redhat.com> To: Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:55595 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751129Ab1ADNO5 (ORCPT ); Tue, 4 Jan 2011 08:14:57 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p04DEvsF013717 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 4 Jan 2011 08:14:57 -0500 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p04DEuuP008886 for ; Tue, 4 Jan 2011 08:14:56 -0500 Sender: kvm-owner@vger.kernel.org List-ID: Currently we have some ad-hoc code in x86.c to restrict #UD emulation to expected instructions (that is, vendor specific instructions). This patchset replaces the ad-hoc code with proper emulator support using decode tables. Avi Kivity (4): KVM: Fix x86_decode_insn() return code check KVM: Simplify exit path on decode failure KVM: x86 emulator: vendor specific instructions KVM: Drop ad-hoc vendor specific instruction restriction arch/x86/include/asm/kvm_emulate.h | 1 + arch/x86/kvm/emulate.c | 12 +++++++++--- arch/x86/kvm/x86.c | 35 +++++------------------------------ 3 files changed, 15 insertions(+), 33 deletions(-)