[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] [IA64] Kexec: Add xen_limit_pages_to_max_mfn()
# HG changeset patch # User Alex Williamson <alex.williamson@xxxxxx> # Date 1190922158 21600 # Node ID 11646829a25fca9087c315776893759b919596e1 # Parent 1975088dfbce78a8f2a0c31937e8bf45530323b2 [IA64] 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> --- arch/ia64/xen/hypervisor.c | 8 ++++++++ include/asm-ia64/hypervisor.h | 5 +++++ 2 files changed, 13 insertions(+) diff -r 1975088dfbce -r 11646829a25f arch/ia64/xen/hypervisor.c --- a/arch/ia64/xen/hypervisor.c Thu Sep 27 13:40:11 2007 -0600 +++ b/arch/ia64/xen/hypervisor.c Thu Sep 27 13:42:38 2007 -0600 @@ -397,6 +397,14 @@ __xen_destroy_contiguous_region(unsigned BUG_ON(error != num_gpfn); } 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); } diff -r 1975088dfbce -r 11646829a25f include/asm-ia64/hypervisor.h --- a/include/asm-ia64/hypervisor.h Thu Sep 27 13:40:11 2007 -0600 +++ b/include/asm-ia64/hypervisor.h Thu Sep 27 13:42:38 2007 -0600 @@ -167,6 +167,11 @@ xen_destroy_contiguous_region(unsigned l if (is_running_on_xen()) __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 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |