virtio-scsi: Prevent assertion on missed events
commit49fb65c7f985baa56d2964e0a85c1f098e3e2a9d
authorEric Farman <farman@linux.vnet.ibm.com>
Tue, 14 Jan 2014 19:16:26 +0000 (14 14:16 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jan 2014 09:36:24 +0000 (15 10:36 +0100)
treea783bd93c800cc5ef58d8eb4b8329cc868d79b05
parente9c0f0f58ad0a41c3c4b19e1911cfe095afc09ca
virtio-scsi: Prevent assertion on missed events

In some cases, an unplug can cause events to be dropped, which
leads to an assertion failure when preparing to notify the guest
kernel.

Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/virtio-scsi.c