From: Avi Kivity Subject: [PATCH 2/3] KVM: x86 emulator: Don't force #UD for 0F 01 /5 Date: Thu, 21 Apr 2011 12:30:42 +0300 Message-ID: <1303378243-16221-3-git-send-email-avi@redhat.com> References: <1303378243-16221-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]:16120 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753344Ab1DUJa4 (ORCPT ); Thu, 21 Apr 2011 05:30:56 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3L9UuZ3021243 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 21 Apr 2011 05:30:56 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3L9Ut5g000805 for ; Thu, 21 Apr 2011 05:30:56 -0400 In-Reply-To: <1303378243-16221-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: While it isn't defined, no need to force a #UD. If it becomes defined in the future this can cause wierd problems for the guest. Signed-off-by: Avi Kivity --- arch/x86/kvm/emulate.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index bf4284d..e8f146d 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -4127,9 +4127,6 @@ twobyte_insn: case 6: /* lmsw */ rc = em_lmsw(ctxt); break; - case 5: /* not defined */ - rc = emulate_ud(ctxt); - break; case 7: /* invlpg*/ rc = em_invlpg(ctxt); break; -- 1.7.1