qemu/hw/char
Christian Borntraeger 4f3ed190a6 s390x/sclpconsole-lm: Fix and simplify irq setup
valgrind complains about a memory leak in irq setup of sclpconsole:

==42117== 8 bytes in 1 blocks are definitely lost in loss record 89of 833
==42117==    at 0x4031AFE: malloc (vg_replace_malloc.c:292)
==42117==    by 0x8022F855: malloc_and_trace (vl.c:2715)
==42117==    by 0x4145569: g_malloc (in /usr/lib64/libglib-2.0.so.0.3400.2)
==42117==    by 0x800F696D: qemu_extend_irqs (irq.c:51)
==42117==    by 0x800F6AF7: qemu_allocate_irqs (irq.c:68)
==42117==    by 0x800F5685: console_init (sclpconsole.c:235)
==42117==    by 0x80297C79: event_realize (event-facility.c:386)
==42117==    by 0x80105071: device_set_realized (qdev.c:693)
==42117==    by 0x801CDC4B: property_set_bool (object.c:1337)
 ==42117==    by 0x801CBD7F: object_property_set (object.c:819)
[...]

We dont need the indirection of an qemu irq to inject an slcp interrupt.
Fixes a valgrind error and makes the code simpler.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
2014-03-17 22:01:19 +01:00
..
cadence_uart.c char/cadence_uart: Implement Tx flow control 2014-01-08 19:07:21 +00:00
debugcon.c qdev: Remove hex8/32/64 property types 2014-02-14 21:12:04 +01:00
digic-uart.c hw/arm/digic: add UART support 2013-12-17 20:12:51 +00:00
escc.c escc: QOM cast cleanup 2013-07-29 21:06:27 +02:00
etraxfs_ser.c etraxfs_ser: QOM cast cleanups 2013-07-29 20:45:33 +02:00
exynos4210_uart.c exynos4210: Use macro ARRAY_SIZE where possible 2013-12-23 16:02:19 +04:00
grlib_apbuart.c grlib_apbuart: QOM cast cleanup 2013-07-29 21:06:27 +02:00
imx_serial.c imx_serial: QOM cast cleanup 2013-07-29 21:06:27 +02:00
ipoctal232.c ipack: Move IndustryPack out of hw/char/ 2014-02-14 21:11:53 +01:00
lm32_juart.c lm32_uart/lm32_juart: use qemu_chr_fe_write_all() 2014-02-04 19:34:30 +01:00
lm32_uart.c lm32_uart/lm32_juart: use qemu_chr_fe_write_all() 2014-02-04 19:34:30 +01:00
Makefile.objs ipack: Move IndustryPack out of hw/char/ 2014-02-14 21:11:53 +01:00
mcf_uart.c memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
milkymist-uart.c milkymist-uart: use qemu_chr_fe_write_all() instead of qemu_chr_fe_write() 2014-02-04 19:34:29 +01:00
omap_uart.c memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
parallel.c qdev: Remove hex8/32/64 property types 2014-02-14 21:12:04 +01:00
pl011.c pl011: QOM'ify pl011 and pl011_luminary 2013-07-29 21:06:28 +02:00
sclpconsole-lm.c s390x/sclpconsole-lm: Fix and simplify irq setup 2014-03-17 22:01:19 +01:00
sclpconsole.c s390x/sclpconsole: Fix and simplify interrupt injection 2014-03-17 22:01:19 +01:00
serial-isa.c qdev: Remove hex8/32/64 property types 2014-02-14 21:12:04 +01:00
serial-pci.c hw: set interrupts using pci irq wrappers 2013-10-14 17:11:45 +03:00
serial.c char/serial: Fix emptyness check 2014-02-15 16:10:25 +04:00
sh_serial.c sh4: Fix serial line access for Linux kernels later than 3.2 2013-10-02 22:55:28 +04:00
spapr_vty.c spapr: add vio-bus devices to categories 2013-11-08 04:33:18 +01:00
virtio-console.c virtio-console: Fix VIRTIO_CONSOLE() cast macro 2014-03-13 21:12:07 +01:00
virtio-serial-bus.c virtio-serial-port: Convert to QOM realize/unrealize 2014-03-13 01:21:57 +01:00
xen_console.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
xilinx_uartlite.c xilinx_uartlite: QOM cast cleanups 2013-07-29 20:45:45 +02:00