mbox series

[0/2] Solve vt82c686 qemu_irq leak.

Message ID cover.1719690591.git.balaton@eik.bme.hu (mailing list archive)
Headers show
Series Solve vt82c686 qemu_irq leak. | expand

Message

BALATON Zoltan June 29, 2024, 8:01 p.m. UTC
This is an alternative appriach to solve the qemu_irq leak in
vt82c686. Allowing embedding an irq and init it in place like done
with other objects may allow cleaner fix for similar issues and I also
plan to use this for adding qemu_itq to pegasos2 machine state for
which gpio would not work.

BALATON Zoltan (2):
  hw: Move declaration of IRQState to header and add init function
  hw/isa/vt82c686.c: Embed i8259 irq in device state instead of
    allocating

 hw/core/irq.c     | 25 +++++++++++--------------
 hw/isa/vt82c686.c |  7 ++++---
 include/hw/irq.h  | 18 ++++++++++++++++++
 3 files changed, 33 insertions(+), 17 deletions(-)