virtio-serial-bus: use bh for unthrottling
commit199646d81522509ac2dba6d28c31e8c7d807bc93
authorAlon Levy <alevy@redhat.com>
Fri, 29 Apr 2011 11:25:06 +0000 (29 14:25 +0300)
committerAmit Shah <amit.shah@redhat.com>
Fri, 27 May 2011 10:20:55 +0000 (27 15:50 +0530)
tree18d4fc8c481f03ccfebff3c2a3a24647954764de
parentaa29141d84d58171c2d219f0a4b599bd76fb2e37
virtio-serial-bus: use bh for unthrottling

Instead of calling flush_queued_data when unthrottling, schedule
a bh. That way we can return immediately to the caller, and the
flush uses the same call path as a have_data for callbackee.

No migration change is required because bh are called from vm_stop.

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