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.


fixed stupid error...
Jack Lange [Mon, 16 Mar 2009 23:38:18 +0000 (18:38 -0500)]
palacios/src/palacios/svm_handler.c
palacios/src/palacios/vmm_intr.c

index 4d5ce3e..9102c16 100644 (file)
@@ -71,12 +71,13 @@ int v3_handle_svm_exit(struct guest_info * info) {
     exit_code = guest_ctrl->exit_code;
 
 
-    if ((info->intr_state.irq_pending) && (guest_ctrl->guest_ctrl.V_IRQ = 0)) {
+    if ((info->intr_state.irq_pending == 1) && (guest_ctrl->guest_ctrl.V_IRQ == 0)) {
        // Interrupt was taken in the guest
+       PrintDebug("Interrupt taken by guest\n");
        v3_injecting_intr(info, info->intr_state.irq_vector, EXTERNAL_IRQ);
-       info->intr_state.irq_pending = 0;
     }
 
+    info->intr_state.irq_pending = 0;
   
 
     // Disable printing io exits due to bochs debug messages
index e3878e2..6db7ba0 100644 (file)
@@ -44,6 +44,10 @@ void v3_init_interrupt_state(struct guest_info * info) {
     info->intr_state.excp_num = 0;
     info->intr_state.excp_error_code = 0;
 
+    info->intr_state.irq_pending = 0;
+    info->intr_state.irq_vector = 0;
+
+
     INIT_LIST_HEAD(&(info->intr_state.controller_list));
 
     memset((uchar_t *)(info->intr_state.hooks), 0, sizeof(struct v3_irq_hook *) * 256);