ia64/linux-2.6.18-xen.hg

changeset 225:11646829a25f

[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@verge.net.au>
author Alex Williamson <alex.williamson@hp.com>
date Thu Sep 27 13:42:38 2007 -0600 (2007-09-27)
parents 1975088dfbce
children 95cf1f8dbd3b
files arch/ia64/xen/hypervisor.c include/asm-ia64/hypervisor.h
line diff
     1.1 --- a/arch/ia64/xen/hypervisor.c	Thu Sep 27 13:40:11 2007 -0600
     1.2 +++ b/arch/ia64/xen/hypervisor.c	Thu Sep 27 13:42:38 2007 -0600
     1.3 @@ -399,6 +399,14 @@ void
     1.4  	balloon_unlock(flags);
     1.5  }
     1.6  
     1.7 +int
     1.8 +xen_limit_pages_to_max_mfn(struct page *pages, unsigned int order,
     1.9 +			   unsigned int address_bits)
    1.10 +{
    1.11 +	return xen_create_contiguous_region((unsigned long)page_address(pages),
    1.12 +					    order, address_bits);
    1.13 +}
    1.14 +
    1.15  
    1.16  ///////////////////////////////////////////////////////////////////////////
    1.17  // grant table hack
     2.1 --- a/include/asm-ia64/hypervisor.h	Thu Sep 27 13:40:11 2007 -0600
     2.2 +++ b/include/asm-ia64/hypervisor.h	Thu Sep 27 13:42:38 2007 -0600
     2.3 @@ -168,6 +168,11 @@ xen_destroy_contiguous_region(unsigned l
     2.4  		__xen_destroy_contiguous_region(vstart, order);
     2.5  }
     2.6  
     2.7 +struct page;
     2.8 +
     2.9 +int xen_limit_pages_to_max_mfn(struct page *pages, unsigned int order,
    2.10 +			       unsigned int address_bits);
    2.11 +
    2.12  /* For drivers/xen/core/machine_reboot.c */
    2.13  #define HAVE_XEN_POST_SUSPEND
    2.14  void xen_post_suspend(int suspend_cancelled);