[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-ia64-devel] [rfc 16/16] Kexec: Add xen_limit_pages_to_max_mfn()
Add xen_limit_pages_to_max_mfn() in keeping with x86. On ia64 it seems that it just needs to be a wrapper for xen_create_contiguous_region(). Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx> Index: linux-2.6.18-xen.hg/arch/ia64/xen/hypervisor.c =================================================================== --- linux-2.6.18-xen.hg.orig/arch/ia64/xen/hypervisor.c 2007-07-11 12:08:54.000000000 +0900 +++ linux-2.6.18-xen.hg/arch/ia64/xen/hypervisor.c 2007-07-11 17:39:02.000000000 +0900 @@ -399,6 +399,14 @@ __xen_destroy_contiguous_region(unsigned balloon_unlock(flags); } +int +xen_limit_pages_to_max_mfn(struct page *pages, unsigned int order, + unsigned int address_bits) +{ + return xen_create_contiguous_region((unsigned long)page_address(pages), + order, address_bits); +} + /////////////////////////////////////////////////////////////////////////// // grant table hack Index: linux-2.6.18-xen.hg/include/asm-ia64/hypervisor.h =================================================================== --- linux-2.6.18-xen.hg.orig/include/asm-ia64/hypervisor.h 2007-07-11 12:12:17.000000000 +0900 +++ linux-2.6.18-xen.hg/include/asm-ia64/hypervisor.h 2007-07-11 17:39:05.000000000 +0900 @@ -168,6 +168,11 @@ xen_destroy_contiguous_region(unsigned l __xen_destroy_contiguous_region(vstart, order); } +struct page; + +int xen_limit_pages_to_max_mfn(struct page *pages, unsigned int order, + unsigned int address_bits); + /* For drivers/xen/core/machine_reboot.c */ #define HAVE_XEN_POST_SUSPEND void xen_post_suspend(int suspend_cancelled); -- -- Horms H: http://www.vergenet.net/~horms/ W: http://www.valinux.co.jp/en/ _______________________________________________ Xen-ia64-devel mailing list Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ia64-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |