qemu/hw/char
Marc-André Lureau c39860e6dc char: replace qemu_chr_claim/release with qemu_chr_fe_init/deinit
Now that all front end use qemu_chr_fe_init(), we can move chardev
claiming in init(), and add a function deinit() to release the chardev
and cleanup handlers.

The qemu_chr_fe_claim_no_fail() for property are gone, since the
property will raise an error instead. In other cases, where there is
already an error path, an error is raised instead. Finally, other cases
are handled by &error_abort in qemu_chr_fe_init().

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20161022095318.17775-19-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-10-24 15:27:21 +02:00
..
bcm2835_aux.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
cadence_uart.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
debugcon.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
digic-uart.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
escc.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
etraxfs_ser.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
exynos4210_uart.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
grlib_apbuart.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
imx_serial.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
ipoctal232.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
lm32_juart.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
lm32_uart.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
Makefile.objs bcm2835_aux: add emulation of BCM2835 AUX (aka UART1) block 2016-03-16 17:42:18 +00:00
mcf_uart.c char: replace qemu_chr_claim/release with qemu_chr_fe_init/deinit 2016-10-24 15:27:21 +02:00
milkymist-uart.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
omap_uart.c char: remove init callback 2016-10-24 15:27:20 +02:00
parallel.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
pl011.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
sclpconsole-lm.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
sclpconsole.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
serial-isa.c sun4uv: fix serial initialization regression 2016-10-24 15:27:20 +02:00
serial-pci.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
serial.c char: replace qemu_chr_claim/release with qemu_chr_fe_init/deinit 2016-10-24 15:27:21 +02:00
sh_serial.c char: replace qemu_chr_claim/release with qemu_chr_fe_init/deinit 2016-10-24 15:27:21 +02:00
spapr_vty.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
stm32f2xx_usart.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
trace-events hw/char/pl011: Add trace events 2016-10-17 19:32:44 +01:00
virtio-console.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
virtio-serial-bus.c virtio: cleanup VMSTATE_VIRTIO_DEVICE 2016-10-10 02:21:43 +03:00
xen_console.c char: replace qemu_chr_claim/release with qemu_chr_fe_init/deinit 2016-10-24 15:27:21 +02:00
xilinx_uartlite.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00