virtio-serial-bus: Unset guest_connected at reset and driver reset
commit439972253a15870be6777c9f4cdb3985797a9b7c
authorAmit Shah <amit.shah@redhat.com>
Tue, 24 Apr 2012 14:03:59 +0000 (24 19:33 +0530)
committerAmit Shah <amit.shah@redhat.com>
Wed, 25 Apr 2012 11:14:07 +0000 (25 16:44 +0530)
tree835928452ceeeaca5756b07a4cde48edb1c8f00b
parent62a9fbf7fd022103c6b271abd7b7834b84ba7071
virtio-serial-bus: Unset guest_connected at reset and driver reset

When a guest driver resets the virtio status to not ready, or when qemu
is reset, reset all ports' guest_connected bit and let port users know
of this event if they have the guest_close() callback registered.

Reviewed-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/virtio-serial-bus.c