From 7706c1cb6301ff0b079a26a822a26923222db39f Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Tue, 24 May 2016 14:33:02 +0200 Subject: [PATCH] feat(vm.set): memoryStaticMax --- src/api/vm.coffee | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/api/vm.coffee b/src/api/vm.coffee index a1cadbe2a..f48e03fc3 100644 --- a/src/api/vm.coffee +++ b/src/api/vm.coffee @@ -416,6 +416,10 @@ set = $coroutine (params) -> if memoryMax > VM.memory.static[1] yield xapi.call 'VM.set_memory_static_max', memoryMax yield xapi.call 'VM.set_memory_static_max', ref, "#{memoryMax}" + if 'memoryStaticMax' of params + memoryStaticMax = parseSize(params.memoryStaticMax) + yield xapi.call 'VM.set_memory_static_max', memoryMax + # Memory. if 'memory' of params @@ -536,6 +540,9 @@ set.params = { # Set static_max memoryMax: { type: ['integer', 'string'], optional: true } + # Set static_max + memoryStaticMax: { type: ['integer', 'string'], optional: true } + # Kernel arguments for PV VM. PV_args: { type: 'string', optional: true }