summaryrefslogtreecommitdiffstats
path: root/hw/virtio-scsi.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-07-16 14:50:27 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-07-27 08:25:27 +0200
commit2baa1beb1e47ec207e0f9bcacdb5c68e4bf1d8f5 (patch)
treeb3a3e009122a5f7fb8d14e16ae7170e86404dd4e /hw/virtio-scsi.c
parent64f64855d0ec2c5979f6986d2f52e8861d58e208 (diff)
downloadhqemu-2baa1beb1e47ec207e0f9bcacdb5c68e4bf1d8f5.zip
hqemu-2baa1beb1e47ec207e0f9bcacdb5c68e4bf1d8f5.tar.gz
virtio-scsi: do not report dropped events after reset
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/virtio-scsi.c')
-rw-r--r--hw/virtio-scsi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c
index d5c5984..bf18861 100644
--- a/hw/virtio-scsi.c
+++ b/hw/virtio-scsi.c
@@ -563,6 +563,7 @@ static void virtio_scsi_reset(VirtIODevice *vdev)
s->sense_size = VIRTIO_SCSI_SENSE_SIZE;
s->cdb_size = VIRTIO_SCSI_CDB_SIZE;
+ s->events_dropped = false;
}
/* The device does not have anything to save beyond the virtio data.
OpenPOWER on IntegriCloud