On 21/09/2020 19:02, Julien Grall wrote: > diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h > index 4536a62940a1..15bb0aa30d22 100644 > --- a/xen/include/xen/mm.h > +++ b/xen/include/xen/mm.h > @@ -685,4 +685,17 @@ static inline void put_page_alloc_ref(struct page_info > *page) > } > } > > +/* > + * Dummy implementation of M2P-related helpers for common code when > + * the architecture doesn't have an M2P. > + */ > +#ifndef CONFIG_HAS_M2P > + > +#define INVALID_M2P_ENTRY (~0UL) > +#define SHARED_M2P(_e) false
((void)_e, false) Otherwise, Acked-by: Andrew Cooper <andrew.coop...@citrix.com> > + > +static inline void set_gpfn_from_mfn(unsigned long mfn, unsigned long pfn) {} > + > +#endif > + > #endif /* __XEN_MM_H__ */