pfn_to_mfn(page_to_pfn(p)) is a common use case so add a generic helper for it.
Signed-off-by: David Vrabel <david.vra...@citrix.com> --- include/xen/page.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/xen/page.h b/include/xen/page.h index 12765b6..c5ed20b 100644 --- a/include/xen/page.h +++ b/include/xen/page.h @@ -3,6 +3,11 @@ #include <asm/xen/page.h> +static inline unsigned long page_to_mfn(struct page *page) +{ + return pfn_to_mfn(page_to_pfn(page)); +} + struct xen_memory_region { phys_addr_t start; phys_addr_t size; -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel