Signed-off-by: Guido Trotter <[email protected]>
---
lib/hypervisor/hv_kvm.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py
index 205e571..042aef5 100644
--- a/lib/hypervisor/hv_kvm.py
+++ b/lib/hypervisor/hv_kvm.py
@@ -570,8 +570,7 @@ class KVMHypervisor(hv_base.BaseHypervisor):
mem_path = hvp[constants.HV_MEM_PATH]
if mem_path:
- kvm_cmd.extend(["-mem-path", mem_path])
- kvm_cmd.extend(["-mem-prealloc"])
+ kvm_cmd.extend(["-mem-path", mem_path, "-mem-prealloc"])
mouse_type = hvp[constants.HV_USB_MOUSE]
vnc_bind_address = hvp[constants.HV_VNC_BIND_ADDRESS]
--
1.7.1