Re: [Qemu-devel] Questions about the flow of interrupt simulation

2018-06-01 Thread Peter Maydell
On 1 June 2018 at 07:17, Eva Chen wrote: > 1. There are two kinds of interrupt: edge triggered and level triggered. > I have seen two code segment related to the level: gic_set_irq() and > arm_cpu_set_irq(). > In gic_set_irq(), if level == GIC_TEST_LEVEL(irq, cm), which means the > level is not c

Re: [Qemu-devel] Questions about the flow of interrupt simulation

2018-05-31 Thread Eva Chen
​​ Thanks deeply for your clear explanation! Let me try to conclude what I learned from your description. qemu_set_irq() qemu_set_irq() [ device ] -> [ GIC ] -> [ CPU ] Detailed: [device] =>qemu_set_irq() [GIC] =>

Re: [Qemu-devel] Questions about the flow of interrupt simulation

2018-05-24 Thread Peter Maydell
On 23 May 2018 at 11:45, Eva Chen wrote: > Hi, > > I have added a new virtual device under qemu/hw, and a device driver in the > source code of guest OS (I use arm linux). > Since I want to add an interrupt to the virtual device, I am tracing the > flow of interrupt simulation of QEMU. > However,

[Qemu-devel] Questions about the flow of interrupt simulation

2018-05-23 Thread Eva Chen
Hi, I have added a new virtual device under qemu/hw, and a device driver in the source code of guest OS (I use arm linux). Since I want to add an interrupt to the virtual device, I am tracing the flow of interrupt simulation of QEMU. However, I have some questions about the flow of interrupt, and