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

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

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



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