From: Kyle Hale Date: Sat, 7 Jul 2012 23:39:09 +0000 (-0500) Subject: Revised check for already-launched VM X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=d597d493eb303496f3bb32e2a73a094a8a20a022;p=palacios.git Revised check for already-launched VM --- diff --git a/palacios/src/palacios/vmm.c b/palacios/src/palacios/vmm.c index 21ca408..e9a3a9d 100644 --- a/palacios/src/palacios/vmm.c +++ b/palacios/src/palacios/vmm.c @@ -256,9 +256,7 @@ int v3_start_vm(struct v3_vm_info * vm, unsigned int cpu_mask) { int vcore_id = 0; - if (vm->run_state == VM_RUNNING || - vm->run_state == VM_INVALID || - vm->run_state == VM_ERROR) { + if (vm->run_state != VM_STOPPED) { PrintError("VM has already been launched (state=%d)\n", (int)vm->run_state); return -1; }