There is only one single user of VALID_GFN(). Inline the macro to remove the
added layer of indirection in sh_gva_to_gfn()
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
#if (SHADOW_OPTIMIZATIONS & SHOPT_VIRTUAL_TLB)
/* Check the vTLB cache first */
unsigned long vtlb_gfn = vtlb_lookup(v, va, *pfec);
- if ( VALID_GFN(vtlb_gfn) )
+ if ( vtlb_gfn != gfn_x(INVALID_GFN) )
return vtlb_gfn;
#endif /* (SHADOW_OPTIMIZATIONS & SHOPT_VIRTUAL_TLB) */
#error GUEST_PAGING_LEVELS not defined
#endif
-#define VALID_GFN(m) (m != gfn_x(INVALID_GFN))
-
static inline paddr_t
gfn_to_paddr(gfn_t gfn)
{