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:

committed by
Paolo Bonzini

parent
8d5cf1610d
commit
812f30b234
@@ -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
|
||||
|
Reference in New Issue
Block a user