Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jose Martins <[email protected]>
- Loading branch information
Signed-off-by: Jose Martins <[email protected]>
dde8a88
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For ipc sharemem device, when it is initialize, the device interrupt->hw set true, so here use vcpu_inject_irq to replace vcpu_inject_hw_irq, but vcpu_inject_irq function still will use vgic_inject_hw to inject interrupt because vgic_int_is_hw(interrupt) will be true.
dde8a88
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gaojunhao Thanks for taking a look at the code. I am trying to find the place where you say the ipc interrupt->hw is set to true for ipc interrupts but can't. Can you please point it out in the code? From what I see, the interrupt->hw is only set to true via the
interrupts_vm_assign
function, and that function is only called for physical devices in the vm initialization ,not for the ipc objects. But maybe I am missing something.