From: Avi Kivity Subject: [PATCH 2/2] KVM: x86 emulator: Drop EFER.SVME requirement from VMMCALL Date: Tue, 5 Apr 2011 16:28:31 +0300 Message-ID: <1302010111-23431-3-git-send-email-avi@redhat.com> References: <1302010111-23431-1-git-send-email-avi@redhat.com> To: Marcelo Tosatti , kvm@vger.kernel.org, Joerg Roedel Return-path: Received: from mx1.redhat.com ([209.132.183.28]:49260 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752747Ab1DEN2u (ORCPT ); Tue, 5 Apr 2011 09:28:50 -0400 In-Reply-To: <1302010111-23431-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: VMMCALL requires EFER.SVME to be enabled in the host, not in the guest, which is what check_svme() checks. Signed-off-by: Avi Kivity --- arch/x86/kvm/emulate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index a77c8f6..4aa5d65 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -2677,7 +2677,7 @@ static struct opcode group7_rm1[] = { static struct opcode group7_rm3[] = { DIP(SrcNone | ModRM | Prot | Priv, vmrun, check_svme_pa), - DIP(SrcNone | ModRM | Prot | VendorSpecific, vmmcall, check_svme), + DI(SrcNone | ModRM | Prot | VendorSpecific, vmmcall), DIP(SrcNone | ModRM | Prot | Priv, vmload, check_svme_pa), DIP(SrcNone | ModRM | Prot | Priv, vmsave, check_svme_pa), DIP(SrcNone | ModRM | Prot | Priv, stgi, check_svme), -- 1.7.1