diff options
| author | Gleb Natapov <gleb@redhat.com> | 2013-01-30 09:45:04 -0500 |
|---|---|---|
| committer | Marcelo Tosatti <mtosatti@redhat.com> | 2013-02-04 20:24:28 -0500 |
| commit | eb3fce87ccc5d38b1ad340f32e34abc09911fb83 (patch) | |
| tree | aa9a217df01e72c47752b5c9c26774355b9d6573 | |
| parent | 116eb3d30e7e121bfc6117ac037833865dad4971 (diff) | |
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>
| -rw-r--r-- | arch/x86/kvm/paging_tmpl.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h index ca69dcccbe31..34c5c99323f4 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, | |||
| 409 | unsigned direct_access, access = gw->pt_access; | 409 | unsigned direct_access, access = gw->pt_access; |
| 410 | int top_level, emulate = 0; | 410 | int top_level, emulate = 0; |
| 411 | 411 | ||
| 412 | if (!is_present_gpte(gw->ptes[gw->level - 1])) | ||
| 413 | return 0; | ||
| 414 | |||
| 415 | direct_access = gw->pte_access; | 412 | direct_access = gw->pte_access; |
| 416 | 413 | ||
| 417 | top_level = vcpu->arch.mmu.root_level; | 414 | top_level = vcpu->arch.mmu.root_level; |
