mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
28e98c2c20
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.vrabel@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
23 lines
450 B
C
23 lines
450 B
C
#ifndef _XEN_PAGE_H
|
|
#define _XEN_PAGE_H
|
|
|
|
#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;
|
|
};
|
|
|
|
#define XEN_EXTRA_MEM_MAX_REGIONS 128 /* == E820MAX */
|
|
|
|
extern __initdata
|
|
struct xen_memory_region xen_extra_mem[XEN_EXTRA_MEM_MAX_REGIONS];
|
|
|
|
extern unsigned long xen_released_pages;
|
|
|
|
#endif /* _XEN_PAGE_H */
|