We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f2f392 commit 695db1bCopy full SHA for 695db1b
emulators/pic/gic.c
@@ -158,12 +158,17 @@ static void gic_update(struct gic_state *s)
158
/* Assert irq to Parent PIC */
159
vmm_devemu_emulate_irq(s->guest,
160
s->parent_irq[cpu], level);
161
- } else if (level) {
162
- /* Assert irq to VCPU */
+ } else {
163
vcpu = vmm_manager_guest_vcpu(s->guest, cpu);
164
- if (vcpu) {
+ if (level && vcpu) {
+ /* Assert irq to VCPU */
165
vmm_vcpu_irq_assert(vcpu,
166
s->parent_irq[cpu], 0x0);
167
+ }
168
+ if (!level && vcpu) {
169
+ /* Deassert irq to VCPU */
170
+ vmm_vcpu_irq_deassert(vcpu,
171
+ s->parent_irq[cpu]);
172
}
173
174
0 commit comments