This new hypervisor call sets the memory of an instance to a new value, through ballooning.
Signed-off-by: Guido Trotter <[email protected]> --- lib/hypervisor/hv_base.py | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/lib/hypervisor/hv_base.py b/lib/hypervisor/hv_base.py index 44f80e1..42fd64c 100644 --- a/lib/hypervisor/hv_base.py +++ b/lib/hypervisor/hv_base.py @@ -295,6 +295,17 @@ class BaseHypervisor(object): """ pass + 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 + + """ + raise NotImplementedError + def FinalizeMigrationDst(self, instance, info, success): """Finalize the instance migration on the target node. -- 1.7.7.3
