qemu/backends
Marc-André Lureau 41ac54b253 char: allocate CharDriverState as a single object
Use a single allocation for CharDriverState, this avoids extra
allocations & pointers, and is a step towards more object-oriented
CharDriver.

Gtk console is a bit peculiar, gd_vc_chr_set_echo() used to have a
temporary VirtualConsole to save the echo bit. Instead now, we consider
whether vcd->console is set or not, and restore the echo bit saved in
VCDriverState when calling gd_vc_vte_init().

The casts added are temporary, they are replaced with QOM type-safe
macros in a later patch in this series.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-01-27 18:07:59 +01:00
..
baum.c char: allocate CharDriverState as a single object 2017-01-27 18:07:59 +01:00
cryptodev-builtin.c cryptodev: wrap the ready flag 2017-01-10 07:02:52 +02:00
cryptodev.c cryptodev: wrap the ready flag 2017-01-10 07:02:52 +02:00
hostmem-file.c hostmem-file: Register TYPE_MEMORY_BACKEND_FILE properties as class properties 2016-10-17 15:48:40 -02:00
hostmem-ram.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
hostmem.c monitor: fix qmp/hmp query-memdev not reporting IDs of memory backends 2017-01-12 15:35:06 -02:00
Makefile.objs cryptodev: introduce a new cryptodev backend 2016-10-30 20:06:22 +02:00
msmouse.c char: allocate CharDriverState as a single object 2017-01-27 18:07:59 +01:00
rng-egd.c char: remove explicit_fe_open, use a set_handlers argument 2016-10-24 15:46:10 +02:00
rng-random.c rng-random: rename RndRandom to RngRandom 2016-05-23 12:18:43 +05:30
rng.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
testdev.c char: allocate CharDriverState as a single object 2017-01-27 18:07:59 +01:00
tpm.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00