Commit 28e98c2c authored by David Vrabel's avatar David Vrabel Committed by David S. Miller

xen: add page_to_mfn()

pfn_to_mfn(page_to_pfn(p)) is a common use case so add a generic
helper for it.
Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 933685ca
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment