virtio-serial: Make sure virtqueue is ready before discarding data
authorAmit Shah <amit.shah@redhat.com>
Fri, 4 Feb 2011 08:54:18 +0000 (14:24 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 4 Feb 2011 12:33:26 +0000 (06:33 -0600)
commit7185f9315bcf90e99b123370cf4d19b8c20afbd5
tree7f921ec4aae1817bc99915c95ecede064a1b0e34
parent4e79bcbb96d3c189e50adbdac7b1e28d834ba43e
virtio-serial: Make sure virtqueue is ready before discarding data

This can happen if a port gets unplugged before guest has chance to
initialise vqs.

Reported-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-serial-bus.c