]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
[IA64] Kexec: Add xen_limit_pages_to_max_mfn()
authorAlex Williamson <alex.williamson@hp.com>
Thu, 27 Sep 2007 19:42:38 +0000 (13:42 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Thu, 27 Sep 2007 19:42:38 +0000 (13:42 -0600)
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@verge.net.au>
arch/ia64/xen/hypervisor.c
include/asm-ia64/hypervisor.h

index d728c76e33492cdc1ba271556b1d4ae6da0c0107..f1b995eb66470162c35abf72654dd52def7b60bb 100644 (file)
@@ -399,6 +399,14 @@ __xen_destroy_contiguous_region(unsigned long vstart, unsigned int order)
        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 3b04529507c63dc578fa1c81e7a24d0e8b4b3b3e..2b67e3551e0d98e0000741965b96015ce2d8bf1a 100644 (file)
@@ -168,6 +168,11 @@ xen_destroy_contiguous_region(unsigned long vstart, unsigned int order)
                __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);