Hi again, Let's assume that I want to modify jailhouse/inmates/demos/arm/gic-demo.c to also handle ivshmem interrupts generated by the hypervisor to the bare-metal cell when writing the virtual PCI driver config area using uio_ivshmem/uio_send in the root-cell.
The first thing I would have to do is enable the IVSHMEM_IRQ in jailhouse/inmates/demos/arm/gic-demo.c:inmate_main() by calling gic_enable_irq(IVSHMEM_IRQ); in the same manner as gic_enable_irq(TIMER_IRQ);. I would also have to check what irqn is passed in jailhouse/inmates/demos/arm/gic-demo.c:handle_IRQ(unsigned int irqn), in order to distinguish between TIMER_IRQ and IVSHMEM_IRQ, right? TIMER_IRQ is defined (to 27) in jailhouse/inmates/lib/arm/include/mach.h. Where does this value come from? How do I know what value to set IVSHMEM_IRQ to? Still a bit confused - Jonas -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
