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-ppc-devel

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

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [PATCH 1 of 6] [PATCH] xen: add arch hook for max_mem hcall
From: Ryan Harper <ryanh@xxxxxxxxxx>
Date: Wed, 21 Feb 2007 18:16:59 -0500
Delivery-date: Wed, 21 Feb 2007 16:16:24 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1172103418@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>