提交 28e98c2c 编写于 作者: D David Vrabel 提交者: 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: NDavid Vrabel <david.vrabel@citrix.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册