From 9d3015f970c2b43fa13477df109cb6dbfa3de8e1 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Tue, 5 Oct 2010 14:47:51 +0100 Subject: [PATCH] kvm: collapse two consecutive extend calls Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/hypervisor/hv_kvm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py index 205e57120..042aef55c 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] -- GitLab