Skip to content

Commit

Permalink
KVM: MMU: drop superfluous is_present_gpte() check.
Browse files Browse the repository at this point in the history
Gust page walker puts only present ptes into ptes[] array. No need to
check it again.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
  • Loading branch information
Gleb Natapov authored and Marcelo Tosatti committed Feb 5, 2013
1 parent 116eb3d commit eb3fce8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/x86/kvm/paging_tmpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eb3fce8

Please sign in to comment.