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 interrupt injection
Jack Lange [Sun, 1 Jun 2008 18:53:29 +0000 (18:53 +0000)]
palacios/src/palacios/svm_handler.c

index 3da68a6..83f7628 100644 (file)
@@ -186,10 +186,17 @@ int handle_svm_exit(struct guest_info * info) {
     case EXTERNAL_IRQ: 
       {
        uint_t irq = get_intr_number(info);
-       guest_ctrl->EVENTINJ.vector = irq;
-       guest_ctrl->EVENTINJ.valid = 1;
-       guest_ctrl->EVENTINJ.type = SVM_INJECTION_EXTERNAL_INTR;
+       /*      
+         guest_ctrl->EVENTINJ.vector = irq;
+         guest_ctrl->EVENTINJ.valid = 1;
+         guest_ctrl->EVENTINJ.type = SVM_INJECTION_EXTERNAL_INTR;
+       */
        
+       guest_ctrl->guest_ctrl.V_IRQ = 1;
+       guest_ctrl->guest_ctrl.V_INTR_VECTOR = irq;
+       guest_ctrl->guest_ctrl.V_IGN_TPR = 1;
+       guest_ctrl->guest_ctrl.V_INTR_PRIO = 0xf;
+
        injecting_intr(info, irq, EXTERNAL_IRQ);
        
        break;