Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


don't allow launch of an already running VM
Kyle Hale [Wed, 27 Jun 2012 23:48:39 +0000 (18:48 -0500)]
palacios/src/palacios/vmm.c

index 1bd489b..30fa2e6 100644 (file)
@@ -255,6 +255,14 @@ int v3_start_vm(struct v3_vm_info * vm, unsigned int cpu_mask) {
     uint32_t avail_cores = 0;
     int vcore_id = 0;
 
+
+    if (vm->run_state == VM_RUNNING ||
+        vm->run_state == VM_INVALID ||
+        vm->run_state == VM_ERROR) {
+        PrintError("VM has already been launched (state=%d)\n", (int)vm->run_state);
+        return -1;
+    }
+
     /// CHECK IF WE ARE MULTICORE ENABLED....
 
     V3_Print("V3 --  Starting VM (%u cores)\n", vm->num_cores);