kvm: collapse two consecutive extend calls
authorGuido Trotter <ultrotter@google.com>
Tue, 5 Oct 2010 13:47:51 +0000 (14:47 +0100)
committerGuido Trotter <ultrotter@google.com>
Tue, 5 Oct 2010 13:54:05 +0000 (14:54 +0100)
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/hypervisor/hv_kvm.py

index 205e571..042aef5 100644 (file)
@@ -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]