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

[Xen-changelog] [xen-unstable] x86: use 'dom0_mem' to limit the number of pages for dom0



# 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


 


Rackspace

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