From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiantao Zhang Subject: [PATCH 1/2] kvm: remove unnecessary bit checking for ept violation Date: Wed, 5 Dec 2012 01:55:14 +0800 Message-ID: <1354643715-18438-2-git-send-email-xiantao.zhang@intel.com> References: <1354643715-18438-1-git-send-email-xiantao.zhang@intel.com> Cc: gleb@redhat.com, mtosatti@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mga03.intel.com ([143.182.124.21]:58193 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750968Ab2LDGJ1 (ORCPT ); Tue, 4 Dec 2012 01:09:27 -0500 In-Reply-To: <1354643715-18438-1-git-send-email-xiantao.zhang@intel.com> Sender: kvm-owner@vger.kernel.org List-ID: From: Zhang Xiantao Bit 6 in EPT vmexit's exit qualification is not defined in SDM, so remove it. Signed-off-by: Zhang Xiantao --- arch/x86/kvm/vmx.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index ad6b1dd..d077996 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -4827,11 +4827,6 @@ static int handle_ept_violation(struct kvm_vcpu *vcpu) exit_qualification = vmcs_readl(EXIT_QUALIFICATION); - if (exit_qualification & (1 << 6)) { - printk(KERN_ERR "EPT: GPA exceeds GAW!\n"); - return -EINVAL; - } - gla_validity = (exit_qualification >> 7) & 0x3; if (gla_validity != 0x3 && gla_validity != 0x1 && gla_validity != 0) { printk(KERN_ERR "EPT: Handling EPT violation failed!\n"); -- 1.7.1