Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;