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>
This commit is contained in:
Bandan Das
2016-07-12 18:18:50 -04:00
committed by Paolo Bonzini
parent 8d5cf1610d
commit 812f30b234
4 changed files with 3 additions and 8 deletions

View File

@@ -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