Pārlūkot izejas kodu

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 <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Gleb Natapov 12 gadi atpakaļ
vecāks
revīzija
eb3fce87cc
1 mainītis faili ar 0 papildinājumiem un 3 dzēšanām
  1. 0 3
      arch/x86/kvm/paging_tmpl.h

+ 0 - 3
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;