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

[Xen-API] [PATCH 0 of 3] Ballooning daemon fixes

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 0 of 3] Ballooning daemon fixes
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Fri, 27 Nov 2009 23:01:55 +0000
Delivery-date: Fri, 27 Nov 2009 15:02:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Bugfixes for the memory ballooning daemon, specificially:
* prevent the daemon from doing anything to a domain (eg setting maxmem) if it 
has not exposed feature-balloon: this prevents it doing something unfortunate 
such as capping a domain which hasn't yet allocated its VGA framebuffer
* when setting maxmem, make sure that the target is <= maxmem: this required 
rewriting the logic which monitored domains for co-operativeness.

Also, add a check to the ballooning simulator that target is always <= maxmem; 
add a scenario to the simulator which triggers the assert before the fix is 
applied and which doesn't trigger the assert after the fix is applied.

Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>
3 files changed, 119 insertions(+), 65 deletions(-)
ocaml/xenops/squeeze.ml      |   79 ++++++++++++++++++++-------------------
ocaml/xenops/squeeze_test.ml |   83 ++++++++++++++++++++++++++++++++----------
ocaml/xenops/squeeze_xen.ml  |   22 ++++++-----

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api