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

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



# HG changeset patch
# User David Vrabel <david.vrabel@xxxxxxxxxx>
# Date 1314004575 -3600
# Node ID 473d6cd9dddf1e573dfc129b7bc055e3e71a489f
# Parent  9dd0eb4f20d4500cecfe17dc50368d20906223a4
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>
xen-unstable changeset:   23779:c56dd5eb0fa2
xen-unstable date:        Mon Aug 22 10:05:27 2011 +0100
---


diff -r 9dd0eb4f20d4 -r 473d6cd9dddf xen/arch/x86/domain_build.c
--- a/xen/arch/x86/domain_build.c       Mon Aug 22 10:14:14 2011 +0100
+++ b/xen/arch/x86/domain_build.c       Mon Aug 22 10:16:15 2011 +0100
@@ -253,6 +253,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®.