Hello, This series converts VirtIOSerialPort to QOM realize/unrealize.
v3 minimizes changes by adopting Anthony's new scheme of just replacing fields, as done for VirtioDevices already. I have simple qtests for virtio-serial-bus and virtio-console on a different branch that I'll submit shortly, with the intent of queuing first the tests and then these leftover conversions on qom-next. Available from: https://github.com/afaerber/qemu-cpu/commits/realize-virtio-console.v3 git://github.com/afaerber/qemu-cpu.git realize-virtio-console.v3 Regards, Andreas v2 -> v3: * Revert changes to just change init/exit signature to realize/unrealize, leave the base class in control over realize/unrealize and call in-order. * Rebased on Paolo's version of virtio QOM realize conversion - no changes. v1 -> v2: * Split off virtserialport fix for 1.6. * Split off from main virtio realization series. * Split out cleanups (mst). Cc: Amit Shah <amit.s...@redhat.com> Cc: Michael S. Tsirkin <m...@redhat.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Anthony Liguori <anth...@codemonkey.ws> Cc: Frederic Konrad <fred.kon...@greensocs.com> Andreas Färber (2): virtio-console: QOM cast cleanup for VirtConsole virtio-serial-port: Convert to QOM realize/unrealize hw/char/virtio-console.c | 57 +++++++++++++++++++++------------------ hw/char/virtio-serial-bus.c | 52 ++++++++++++++++++----------------- include/hw/virtio/virtio-serial.h | 14 +++++----- 3 files changed, 65 insertions(+), 58 deletions(-) -- 1.8.4.5