Commit 3d836750 authored by Guido Trotter's avatar Guido Trotter
Browse files

Implement memory ballooning in kvm

Signed-off-by: default avatarGuido Trotter <>
Reviewed-by: default avatarRené Nussbaumer <>
parent 2c7a0373
......@@ -1756,6 +1756,17 @@ class KVMHypervisor(hv_base.BaseHypervisor):
return objects.MigrationStatus(status=constants.HV_MIGRATION_FAILED,
info="Too many 'info migrate' broken answers")
def BalloonInstanceMemory(self, instance, mem):
"""Balloon an instance memory to a certain value.
@type instance: L{objects.Instance}
@param instance: instance to be accepted
@type mem: int
@param mem: actual memory size to use for instance runtime
self._CallMonitorCommand(, "balloon %d" % mem)
def GetNodeInfo(self):
"""Return information about the node.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment