s390-ccw.img: Fix sporadic reboot hangs: Initialize next_idx
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 12 Feb 2014 15:17:35 +0000 (16:17 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 27 Feb 2014 08:51:25 +0000 (09:51 +0100)
commitd1028f1b5b4cf83e8af5f48996cf392fb12d391a
tree9d340b40ab005a89a05ac86952fcb047459cb033
parentc804c2a71752dd1e150cde768d8c54b02fa8bad9
s390-ccw.img: Fix sporadic reboot hangs: Initialize next_idx

The current code does not initialize next_idx in the virtio ring.
As the ccw bios will always use guest memory at a fixed location,
this queue might != 0 after a reboot.
Lets make the initialization explicit.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
pc-bios/s390-ccw/virtio.c