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

Re: [Xen-devel] [PATCH] clean up parsing of /proc/xen/balloon in xend

To: Charles Coffing <ccoffing@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] clean up parsing of /proc/xen/balloon in xend
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Fri, 10 Mar 2006 13:18:20 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 10 Mar 2006 13:19:14 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <441063AC.D169.003C.0@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <441063AC.D169.003C.0@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Thu, Mar 09, 2006 at 07:19:59PM -0500, Charles Coffing wrote:

> The attached patch cleans up the parsing of /proc/xen/balloon that
> occurs in xend.  Currently, the parsing is hard-coded; it expects that
> the desired number is on the first line.  My patch is more robust; it
> lets values be retrieved by a label.  It also exposes a few functions to
> retrieve the current allocation and the target allocation.
> 
> By abstracting this a little better, I'll be able to address a few
> other issues in subsequent patches.  Mostly, this allows for better
> error checking and guidance for the user.  For example, by exposing
> get_dom0_current_alloc(), we can (elsewhere, in a later patch) calculate
> how large of a VM could potentially be started.  This is useful, as it
> lets simple VM-creation GUIs guide the user towards reasonable memory
> values for new VMs.
> 
> Signed-off-by:  Charles Coffing <ccoffing@xxxxxxxxxx>

Applied, thank you.

Ewan.

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

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