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] [xen-unstable] x86: use 'dom0_mem' to limit the number o

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86: use 'dom0_mem' to limit the number of pages for dom0
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Mon, 22 Aug 2011 15:33:07 +0100
Delivery-date: Mon, 22 Aug 2011 07:33:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 David Vrabel <david.vrabel@xxxxxxxxxx>
# Date 1314003927 -3600
# Node ID c56dd5eb0fa2f6623cf198998373bbb24dd6142c
# Parent  7ba9270b127bd9935eec769373c37bb344c351b2
x86: use 'dom0_mem' to limit the number of pages for dom0

Use the 'dom0_mem' command line option to set the maximum number of
pages for dom0.  dom0 can use then use the XENMEM_maximum_reservation
memory op to automatically find this limit and reduce the size of any
page tables etc.

Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx>
---


diff -r 7ba9270b127b -r c56dd5eb0fa2 xen/arch/x86/domain_build.c
--- a/xen/arch/x86/domain_build.c       Fri Aug 19 13:29:27 2011 +0100
+++ b/xen/arch/x86/domain_build.c       Mon Aug 22 10:05:27 2011 +0100
@@ -254,6 +254,8 @@
     }
 #endif
 
+    d->max_pages = min(max_pages, avail);
+
     return nr_pages;
 }
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86: use 'dom0_mem' to limit the number of pages for dom0, Xen patchbot-unstable <=