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


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

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@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel

Reply via email to