[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XenPPC] [PATCH 1 of 6] [PATCH] xen: add arch hook for max_mem hcall



2 files changed, 6 insertions(+)
xen/common/domctl.c      |    4 ++++
xen/include/xen/shadow.h |    2 ++


# HG changeset patch
# User Ryan Harper <ryanh@xxxxxxxxxx>
# Date 1172103252 21600
# Node ID 17815286856eb2b67a64e64f2a0a53a7c5d505e2
# Parent  059beff4129bc0fc44032a95a8756c6ca89f6b21
[PATCH] xen: add arch hook for max_mem hcall
Signed-off-by: Ryan Harper <ryanh@xxxxxxxxxx>

diff -r 059beff4129b -r 17815286856e xen/common/domctl.c
--- a/xen/common/domctl.c       Thu Feb 08 07:05:26 2007 -0500
+++ b/xen/common/domctl.c       Wed Feb 21 18:14:12 2007 -0600
@@ -19,6 +19,7 @@
 #include <xen/iocap.h>
 #include <xen/guest_access.h>
 #include <xen/bitmap.h>
+#include <xen/shadow.h>
 #ifdef CONFIG_COMPAT
 #include <xen/compat.h>
 #endif
@@ -623,6 +624,9 @@ ret_t do_domctl(XEN_GUEST_HANDLE(xen_dom
         spin_lock(&d->page_alloc_lock);
         if ( new_max >= d->tot_pages )
         {
+            ret = guest_physmap_max_mem(d, new_max);
+            if ( ret != 0 )
+                break;
             d->max_pages = new_max;
             ret = 0;
         }
diff -r 059beff4129b -r 17815286856e xen/include/xen/shadow.h
--- a/xen/include/xen/shadow.h  Thu Feb 08 07:05:26 2007 -0500
+++ b/xen/include/xen/shadow.h  Wed Feb 21 18:14:12 2007 -0600
@@ -3,6 +3,8 @@
 #define __XEN_SHADOW_H__
 
 #include <xen/config.h>
+
+#define guest_physmap_max_mem(d, n)           (0)
 
 #ifdef CONFIG_SHADOW
 

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.