WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [rfc 16/16] Kexec: Add xen_limit_pages_to_max_mfn()

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [rfc 16/16] Kexec: Add xen_limit_pages_to_max_mfn()
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Fri, 17 Aug 2007 16:24:52 +0900
Delivery-date: Fri, 17 Aug 2007 01:09:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20070817072436.840008554@xxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: quilt/0.46-1
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