]> git.proxmox.com Git - mirror_qemu.git/commit - gdbstub.c
char: replace qemu_chr_claim/release with qemu_chr_fe_init/deinit
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 22 Oct 2016 09:52:58 +0000 (12:52 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 Oct 2016 13:27:21 +0000 (15:27 +0200)
commitc39860e6dc90f6ee2e82ee078f978c5d7f3df86a
tree7af723a578b9f33ee172254b20fd9bbdd519cd0c
parent5d300164d00cf9d37a4481831d2c993255dfa0e8
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>
19 files changed:
backends/rng-egd.c
gdbstub.c
hw/arm/pxa2xx.c
hw/char/mcf_uart.c
hw/char/serial.c
hw/char/sh_serial.c
hw/char/xen_console.c
hw/core/qdev-properties-system.c
hw/usb/ccid-card-passthru.c
hw/usb/redirect.c
include/sysemu/char.h
monitor.c
net/colo-compare.c
net/filter-mirror.c
net/slirp.c
net/vhost-user.c
qemu-char.c
tests/vhost-user-test.c
vl.c