diff options
author | Bandan Das <bsd@redhat.com> | 2016-07-13 00:18:50 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-07-14 09:02:47 +0200 |
commit | 812f30b234539ccb0139f92dfdbec1e8158cf535 (patch) | |
tree | 34af341c89d7de276002d344a3482fa944c74675 /arch/x86/kvm/paging_tmpl.h | |
parent | kvm: mmu: extend the is_present check to 32 bits (diff) | |
download | linux-812f30b234539ccb0139f92dfdbec1e8158cf535.tar.xz linux-812f30b234539ccb0139f92dfdbec1e8158cf535.zip |
kvm: mmu: remove is_present_gpte()
We have two versions of the above function.
To prevent confusion and bugs in the future, remove
the non-FNAME version entirely and replace all calls
with the actual check.
Signed-off-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/paging_tmpl.h')
-rw-r--r-- | arch/x86/kvm/paging_tmpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h index bc019f70e0b6..fda5b64ae8f1 100644 --- a/arch/x86/kvm/paging_tmpl.h +++ b/arch/x86/kvm/paging_tmpl.h @@ -131,7 +131,7 @@ static inline void FNAME(protect_clean_gpte)(unsigned *access, unsigned gpte) static inline int FNAME(is_present_gpte)(unsigned long pte) { #if PTTYPE != PTTYPE_EPT - return is_present_gpte(pte); + return pte & PT_PRESENT_MASK; #else return pte & 7; #endif |