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 cpu interruption interface
Jack Lange [Tue, 1 Sep 2009 18:27:25 +0000 (13:27 -0500)]
palacios/include/palacios/vmm.h
palacios/src/devices/8259a.c
palacios/src/devices/apic.c
palacios/src/palacios/vmm.c

index 2d32cbc..2da7ee2 100644 (file)
@@ -198,6 +198,9 @@ void v3_yield(struct guest_info * info);
 void v3_yield_cond(struct guest_info * info);
 
 
+void v3_interrupt_cpu(struct guest_info * vm, int logical_cpu);
+
+
 #endif //!__V3VEE__
 
 
@@ -218,6 +221,8 @@ struct v3_os_hooks {
     void *(*paddr_to_vaddr)(void *addr);
     void *(*vaddr_to_paddr)(void *addr);
 
+    void (*interrupt_cpu)(struct guest_info * vm, int logical_cpu);
+
     int (*hook_interrupt)(struct guest_info * vm, unsigned int irq);
 
     int (*ack_irq)(int irq);
index 5edec8c..d1944f6 100644 (file)
@@ -209,6 +209,8 @@ static int pic_raise_intr(struct guest_info * info, void * private_data, int irq
        return -1;
     }
 
+    v3_interrupt_cpu(info, 0);
+
     return 0;
 }
 
index 098b87d..5c5f7a4 100644 (file)
@@ -923,6 +923,8 @@ int v3_apic_raise_intr(struct guest_info * info, struct vm_device * apic_dev, in
        return -1;
     } 
 
+    v3_interrupt_cpu(info, 0);
+
     return 0;
 }
 
index fea7009..2af99d2 100644 (file)
@@ -143,3 +143,11 @@ void v3_yield(struct guest_info * info) {
 }
 
 
+
+void v3_interrupt_cpu(struct guest_info * info, int logical_cpu) {
+    extern struct v3_os_hooks * os_hooks;
+
+    if ((os_hooks) && (os_hooks)->interrupt_cpu) {
+       (os_hooks)->interrupt_cpu(info, logical_cpu);
+    }
+}