From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH v3 0/3] Vendor specific instructions and the emulator Date: Fri, 4 Feb 2011 11:25:24 -0200 Message-ID: <20110204132523.GA10492@amt.cnet> References: <1296570724-18383-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:36839 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751777Ab1BDOhh (ORCPT ); Fri, 4 Feb 2011 09:37:37 -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.14.4/8.14.4) with ESMTP id p14EbblW008383 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 4 Feb 2011 09:37:37 -0500 Content-Disposition: inline In-Reply-To: <1296570724-18383-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Feb 01, 2011 at 04:32:01PM +0200, Avi Kivity wrote: > 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(-) Applied, thanks.