diff options
-rw-r--r-- | arch/x86/kvm/paging_tmpl.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h index 3464fdbdb98f..89d66ca4d87c 100644 --- a/arch/x86/kvm/paging_tmpl.h +++ b/arch/x86/kvm/paging_tmpl.h | |||
@@ -474,9 +474,7 @@ static void FNAME(invlpg)(struct kvm_vcpu *vcpu, gva_t gva) | |||
474 | level = iterator.level; | 474 | level = iterator.level; |
475 | sptep = iterator.sptep; | 475 | sptep = iterator.sptep; |
476 | 476 | ||
477 | if (level == PT_PAGE_TABLE_LEVEL || | 477 | if (is_last_spte(*sptep, level)) { |
478 | ((level == PT_DIRECTORY_LEVEL && is_large_pte(*sptep))) || | ||
479 | ((level == PT_PDPE_LEVEL && is_large_pte(*sptep)))) { | ||
480 | struct kvm_mmu_page *sp = page_header(__pa(sptep)); | 478 | struct kvm_mmu_page *sp = page_header(__pa(sptep)); |
481 | int offset, shift; | 479 | int offset, shift; |
482 | 480 | ||