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-4.1-testing] x86: don't limit dom0's maximum reserv

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.1-testing] x86: don't limit dom0's maximum reservation by the available memory
From: Xen patchbot-4.1-testing <patchbot@xxxxxxx>
Date: Wed, 24 Aug 2011 21:22:08 +0100
Delivery-date: Wed, 24 Aug 2011 13:22:15 -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 1314174894 -3600
# Node ID c7702b73f3823512864a39380799bf643f0312bf
# Parent  473d6cd9dddf1e573dfc129b7bc055e3e71a489f
x86: don't limit dom0's maximum reservation by the available memory

Set dom0's initial maximum reservation using the max value supplied in
the dom0_mem command line option without limiting it by the available
memory.

This allows dom0 to make use of any hotplugged memory without having
to also adjust the maximum reservation.

Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxxxx>
xen-unstable changeset:   23790:1515138fbd7b
xen-unstable date:        Wed Aug 24 09:33:10 2011 +0100
---


diff -r 473d6cd9dddf -r c7702b73f382 xen/arch/x86/domain_build.c
--- a/xen/arch/x86/domain_build.c       Mon Aug 22 10:16:15 2011 +0100
+++ b/xen/arch/x86/domain_build.c       Wed Aug 24 09:34:54 2011 +0100
@@ -253,7 +253,7 @@
     }
 #endif
 
-    d->max_pages = min(max_pages, avail);
+    d->max_pages = min_t(unsigned long, max_pages, UINT_MAX);
 
     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-4.1-testing] x86: don't limit dom0's maximum reservation by the available memory, Xen patchbot-4 . 1-testing <=