Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb3fce87 authored by Gleb Natapov's avatar Gleb Natapov Committed by Marcelo Tosatti
Browse files

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: default avatarGleb Natapov <gleb@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 116eb3d3
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;