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...
Lei Xia [Wed, 6 Oct 2010 22:35:13 +0000 (17:35 -0500)]
1  2 
palacios/src/palacios/vmm.c

@@@ -98,7 -98,7 +98,7 @@@ void Init_V3(struct v3_os_hooks * hooks
  
  
  #ifdef CONFIG_VNET
 -    V3_init_vnet();
 +    v3_init_vnet();
  #endif
  
      if ((hooks) && (hooks->call_on_cpu)) {
@@@ -225,10 -225,23 +225,23 @@@ int v3_start_vm(struct v3_vm_info * vm
  
      // 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;