qemu-e2k/include/sysemu
Marc-André Lureau a4afa548fc char: move front end handlers in CharBackend
Since the hanlders are associated with a CharBackend, rather than the
CharDriverState, it is more appropriate to store in CharBackend. This
avoids the handler copy dance in qemu_chr_fe_set_handlers() then
mux_chr_update_read_handler(), by storing the CharBackend pointer
directly.

Also a mux CharDriver should go through mux->backends[focused], since
chr->be will stay NULL. Before that, it was possible to call
chr->handler by mistake with surprising results, for ex through
qemu_chr_be_can_write(), which would result in calling the last set
handler front end, not the one with focus.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20161022095318.17775-22-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-10-24 15:46:10 +02:00
..
accel.h
arch_init.h qmp: add QMP interface "query-cpu-model-baseline" 2016-09-06 17:06:51 +02:00
balloon.h
block-backend.h block-backend: Remember if attached device is non-qdev 2016-10-07 13:34:22 +02:00
blockdev.h
bt.h
char.h char: move front end handlers in CharBackend 2016-10-24 15:46:10 +02:00
cpus.h linux-user: remove #define smp_{cores, threads} 2016-09-27 16:17:17 -03:00
device_tree.h
dma.h
dump-arch.h
dump.h
hostmem.h
iothread.h iothread: Stop threads before main() quits 2016-09-13 11:00:57 +01:00
kvm_int.h
kvm.h kvm-all: Pass requester ID to MSI routing functions 2016-10-04 13:28:09 +01:00
memory_mapping.h
numa.h numa: reduce code duplication by adding helper numa_get_node_for_cpu() 2016-10-10 01:16:57 +03:00
os-posix.h oslib-posix: add helpers for stack alloc and free 2016-09-29 14:13:39 +02:00
os-win32.h
qtest.h
replay.h replay: allow replay stopping and restarting 2016-09-27 11:57:30 +02:00
rng-random.h
rng.h
seccomp.h
sysemu.h block: Add bdrv_runtime_opts to query-command-line-options 2016-10-07 13:34:07 +02:00
tpm_backend_int.h
tpm_backend.h
tpm.h
watchdog.h
xen-mapcache.h