Adds a new char device backend callback to check connectedness, implemented for virtio console, and used by spice-char-dev in post migration.
Is using NULL for DeviceState the intention for non device vmstates? It works fine in practice. Alon Levy (3): virtio-serial: add virtio_serial_guest_connected qemu-char: add qemu_chr_be_connected spice-qemu-char: register interface on post load backends/rng-egd.c | 4 ++-- gdbstub.c | 2 +- hw/ccid-card-passthru.c | 1 + hw/debugcon.c | 2 +- hw/ivshmem.c | 8 ++++---- hw/qdev-properties.c | 2 +- hw/serial.c | 4 ++-- hw/usb/dev-serial.c | 4 ++-- hw/usb/redirect.c | 2 +- hw/virtio-console.c | 12 ++++++++++-- hw/virtio-serial-bus.c | 9 +++++++++ hw/virtio-serial.h | 5 +++++ main-loop.h | 1 + monitor.c | 4 ++-- net/slirp.c | 2 +- qemu-char.c | 11 ++++++++++- qemu-char.h | 13 +++++++++++++ qtest.c | 2 +- spice-qemu-char.c | 34 ++++++++++++++++++++++++++++++++++ 19 files changed, 101 insertions(+), 21 deletions(-) -- 1.8.0