[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v9 5/7] memory: add check_get_page_from_gfn() as a wrapper...
>>> On 13.09.18 at 17:21, <paul.durrant@xxxxxxxxxx> wrote: > --- a/xen/include/asm-arm/p2m.h > +++ b/xen/include/asm-arm/p2m.h > @@ -303,6 +303,10 @@ static inline struct page_info *get_page_from_gfn( > return page; > } > > +int __must_check check_get_page_from_gfn(struct domain *d, gfn_t gfn, > + bool readonly, p2m_type_t *p2mt_p, > + struct page_info **page_p); > + > int get_page_type(struct page_info *page, unsigned long type); > bool is_iomem_page(mfn_t mfn); > static inline int get_page_and_type(struct page_info *page, > --- a/xen/include/asm-x86/p2m.h > +++ b/xen/include/asm-x86/p2m.h > @@ -492,6 +492,9 @@ static inline struct page_info *get_page_from_gfn( > return mfn_valid(_mfn(gfn)) && get_page(page, d) ? page : NULL; > } > > +int __must_check check_get_page_from_gfn(struct domain *d, gfn_t gfn, > + bool readonly, p2m_type_t *p2mt_p, > + struct page_info **page_p); > > /* General conversion function from mfn to gfn */ > static inline unsigned long mfn_to_gfn(struct domain *d, mfn_t mfn) Why twice the same declaration? Can't this be put in xen/p2m-common.h? Or some other suitable common header? With that Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |