From: Gleb Natapov Date: Wed, 30 Jan 2013 14:45:04 +0000 (+0200) Subject: KVM: MMU: drop superfluous is_present_gpte() check. X-Git-Tag: v3.9-rc1~97^2~7^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb3fce87ccc5d38b1ad340f32e34abc09911fb83;p=platform%2Fkernel%2Flinux-exynos.git KVM: MMU: drop superfluous is_present_gpte() check. Gust page walker puts only present ptes into ptes[] array. No need to check it again. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h index ca69dcc..34c5c99 100644 --- a/arch/x86/kvm/paging_tmpl.h +++ b/arch/x86/kvm/paging_tmpl.h @@ -409,9 +409,6 @@ static int FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr, unsigned direct_access, access = gw->pt_access; int top_level, emulate = 0; - if (!is_present_gpte(gw->ptes[gw->level - 1])) - return 0; - direct_access = gw->pte_access; top_level = vcpu->arch.mmu.root_level;