]> git.proxmox.com Git - mirror_qemu.git/commit - hw/char/serial-pci.c
serial: initial qom-ification
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 21 Oct 2019 21:32:12 +0000 (23:32 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 7 Jan 2020 12:50:15 +0000 (16:50 +0400)
commit7781b88ee458ff933459503ade0b0a6ddaad08de
tree9bbe400fc3c5d02e5b36ebb89ce4db84f2bef2f3
parent4305d4825c729222926ef498189e03cdccf125ae
serial: initial qom-ification

Make SerialState a device (the following patches will introduce IO/MM
sysbus serial devices)

None of the serial_{,mm}_init() callers actually free the returned
value (even if they did, it would be quite harmless), so we can change
the object allocation at will.

However, the devices that embed SerialState must now have their field
QOM-initialized manually (isa, pci, pci-multi).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
hw/char/serial-isa.c
hw/char/serial-pci-multi.c
hw/char/serial-pci.c
hw/char/serial.c
include/hw/char/serial.h