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-changelog

[Xen-changelog] [linux-2.6.18-xen] [IA64] Kexec: Add xen_limit_pages_to_

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] [IA64] Kexec: Add xen_limit_pages_to_max_mfn()
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 04 Oct 2007 17:42:00 -0700
Delivery-date: Thu, 04 Oct 2007 18:29:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] [IA64] Kexec: Add xen_limit_pages_to_max_mfn(), Xen patchbot-linux-2.6.18-xen <=