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.


Minor tweak to fix handling of extensions without initializers
Peter Dinda [Mon, 7 Sep 2015 16:29:20 +0000 (11:29 -0500)]
palacios/src/palacios/vmm_extensions.c

index 44004cc..fb5d6e0 100644 (file)
@@ -59,8 +59,13 @@ int V3_init_extensions() {
 
     while (tmp_ext != __stop__v3_extensions) {
 
-        if (!(*tmp_ext) || !(*tmp_ext)->init || ((*tmp_ext)->init() != 0)) {
-           PrintError(VM_NONE, VCORE_NONE, "Could not initialize extension (%s)\n", (*tmp_ext) ? (*tmp_ext)->name : "UNKNOWN");
+        if (!(*tmp_ext)) {
+           PrintError(VM_NONE, VCORE_NONE, "Impossible extension\n");
+           return -1;
+       }
+       
+       if ((*tmp_ext)->init && ((*tmp_ext)->init() != 0)) {
+           PrintError(VM_NONE, VCORE_NONE, "Could not initialize extension (%s)\n", (*tmp_ext)->name);
            return -1;
        }