diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py index 65a2790917d0f820b21b1b554b7dc1316c5d6f84..4cec09a7716bc2578305be7f54e85c8bfa37ea05 100644 --- a/lib/hypervisor/hv_kvm.py +++ b/lib/hypervisor/hv_kvm.py @@ -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(instance.name, "balloon %d" % mem) + def GetNodeInfo(self): """Return information about the node.