[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Why my interrupt is not connected? qemu_irq_is_connected( ) returns
From: |
Chan Kim |
Subject: |
RE: Why my interrupt is not connected? qemu_irq_is_connected( ) returns false. |
Date: |
Mon, 4 Apr 2022 23:14:36 +0900 |
>
> No, prio = 0xff means "no pending interrupt available" (either there
> really is none in the pending state, or interrupts are disabled generally,
> or a specific interrupt which might otherwise be signalled to the CPU has
> been disabled).
>
Ah, I see.
>
> Priorities are set by the guest OS, which programs the GIC priority
> registers with the priorities it wants to use for the interrupt. (0xff is
> not actually a valid priority for an interrupt, which is why we can use it
> as our "nothing is pending" value.)
>
I registered the handler in the driver using request_irq function hoping the OS
will set the registers for me but it's not working.
I don't know what's wrong and I'll check the qemu interrupt path and the
driver..
Thank you.
Chan Kim