From: Christian Borntraeger Date: Wed, 12 Feb 2014 15:17:35 +0000 (+0100) Subject: s390-ccw.img: Fix sporadic reboot hangs: Initialize next_idx X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~386^2~42^2~132^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1028f1b5b4cf83e8af5f48996cf392fb12d391a;p=sdk%2Femulator%2Fqemu.git 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 Reviewed-by: Cornelia Huck --- diff --git a/pc-bios/s390-ccw/virtio.c b/pc-bios/s390-ccw/virtio.c index 4d6e48fcbe..a46914dd68 100644 --- a/pc-bios/s390-ccw/virtio.c +++ b/pc-bios/s390-ccw/virtio.c @@ -124,6 +124,7 @@ static void vring_init(struct vring *vr, unsigned int num, void *p, vr->used->flags = VRING_USED_F_NO_NOTIFY; vr->used->idx = 0; vr->used_idx = 0; + vr->next_idx = 0; debug_print_addr("init vr", vr); }