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.


added checks to only mark interrupts as taken if SVM says they've been
[palacios.git] / palacios / src / palacios / svm_handler.c
index b89d28c..4d5ce3e 100644 (file)
@@ -71,6 +71,11 @@ 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)) {
+       // Interrupt was taken in the guest
+       v3_injecting_intr(info, info->intr_state.irq_vector, EXTERNAL_IRQ);
+       info->intr_state.irq_pending = 0;
+    }
 
   
 
@@ -362,7 +367,9 @@ int v3_handle_svm_exit(struct guest_info * info) {
                           guest_ctrl->guest_ctrl.V_INTR_VECTOR, 
                           (void *)(addr_t)info->rip);
 #endif
-               v3_injecting_intr(info, irq, EXTERNAL_IRQ);
+               info->intr_state.irq_pending = 1;
+               info->intr_state.irq_vector = irq;
+
                    
                break;
            }