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 irq acking
Jack Lange [Mon, 16 Mar 2009 20:55:22 +0000 (15:55 -0500)]
palacios/include/palacios/vmm.h
palacios/src/palacios/vmm_intr.c

index 5982a3a..9e9f812 100644 (file)
            ret;                                                        \
        })                                                              \
        
+
+#define V3_ACK_IRQ(irq)                                                \
+    do {                                                       \
+       extern struct v3_os_hooks * os_hooks;                   \
+       if ((os_hooks) && (os_hooks)->ack_irq) {                \
+           (os_hooks)->ack_irq(irq);                           \
+       }                                                       \
+    } while (0)
+
+
 #define V3_Yield(addr)                                 \
     do {                                               \
        extern struct v3_os_hooks * os_hooks;           \
index ac6b6ce..6ff14cd 100644 (file)
@@ -100,18 +100,19 @@ int v3_hook_irq(struct guest_info * info,
 
 
 
-static int passthrough_irq_handler(struct guest_info * info, struct v3_interrupt * intr, void * priv_data)
-{
+static int passthrough_irq_handler(struct guest_info * info, struct v3_interrupt * intr, void * priv_data) {
+
+    if (intr->should_ack == 1) {
+       V3_ACK_IRQ(intr->irq);
+    }
 
     PrintDebug("[passthrough_irq_handler] raise_irq=%d (guest=0x%p)\n", 
               intr->irq, (void *)info);
-    return v3_raise_irq(info, intr->irq);
 
+    return v3_raise_irq(info, intr->irq);
 }
 
-int v3_hook_passthrough_irq(struct guest_info * info, uint_t irq)
-{
-
+int v3_hook_passthrough_irq(struct guest_info * info, uint_t irq) {
     int rc = v3_hook_irq(info, irq, passthrough_irq_handler, NULL);
 
     if (rc) {