From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH v3 0/3] Vendor specific instructions and the emulator Date: Tue, 1 Feb 2011 16:32:01 +0200 Message-ID: <1296570724-18383-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]:2150 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754055Ab1BAOcQ (ORCPT ); Tue, 1 Feb 2011 09:32:16 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p11EWGAG003102 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 1 Feb 2011 09:32:16 -0500 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p11EWFS6015167 for ; Tue, 1 Feb 2011 09:32:16 -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 (3): KVM: Drop bogus x86_decode_insn() error check v2: replaces v1's first two patches KVM: x86 emulator: vendor specific instructions KVM: Drop ad-hoc vendor specific instruction restriction v3: preserve early-exit on #UD (reexecute_instruction() isn't reliable since we don't have a valid cr2) arch/x86/include/asm/kvm_emulate.h | 1 + arch/x86/kvm/emulate.c | 12 +++++++++--- arch/x86/kvm/x86.c | 36 +++++------------------------------- 3 files changed, 15 insertions(+), 34 deletions(-)