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.


Merge branch 'devel' of palacios@newskysaw.cs.northwestern.edu:/home/palacios/palacio...
[palacios.git] / palacios / src / palacios / vmm.c
index 1510d7c..4ed2473 100644 (file)
@@ -225,10 +225,23 @@ int v3_start_vm(struct v3_vm_info * vm, unsigned int cpu_mask) {
 
     // Finally launch the BSP on core 0
     sprintf(tname,"core%u",0);
+
+#if CONFIG_LINUX
+    if (vm->num_cores==1) { 
+       start_core(&(vm->cores[0]));
+       return -1;
+    } else {
+       if (!os_hooks->start_thread_on_cpu(0,start_core,&(vm->cores[0]),tname)) { 
+           PrintError("Thread launch failed\n");
+           return -1;
+       }
+    }
+#else
     if (!os_hooks->start_thread_on_cpu(0,start_core,&(vm->cores[0]),tname)) { 
        PrintError("Thread launch failed\n");
        return -1;
     }
+#endif
 
     return 0;