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.


more multicore fixes
Jack Lange [Wed, 27 Oct 2010 16:10:21 +0000 (11:10 -0500)]
palacios/src/devices/io_apic.c
palacios/src/palacios/vmm_config.c
palacios/src/palacios/vmm_config_class.h

index 8fa49ee..506b7af 100644 (file)
@@ -285,8 +285,8 @@ static int ioapic_raise_irq(struct v3_vm_info * vm, void * private_data, int irq
 
        PrintDebug("io apic: raising irq %u\n", irq);
 
-
-       v3_apic_raise_intr(vm, ioapic->apic_dev, irq, irq_entry->val);
+       // Need to add destination argument here...
+       v3_apic_raise_intr(vm, ioapic->apic_dev, irq, irq_entry->vec);
 
     }
 
index 8cdc907..ecbb996 100644 (file)
@@ -390,12 +390,6 @@ static int post_config_vm(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) {
        return -1;
     }
 
-    if (v3_inject_mptable(vm) == -1) { 
-       PrintError("Failed to inject mptable during configuration\n");
-       return -1;
-    }
-
-
     return 0;
 }
 
index 8f74a44..9fcf197 100644 (file)
@@ -76,6 +76,14 @@ static int post_config_pc(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) {
        memcpy(rombios_dst, v3_rombios_start, v3_rombios_end - v3_rombios_start);
     }
 
+
+    if (vm->num_cores > 1) {
+       if (v3_inject_mptable(vm) == -1) { 
+           PrintError("Failed to inject mptable during configuration\n");
+           return -1;
+       }
+    }
+
     return 0;
 }