[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 1/3] s390-ccw.img: Fix sporadic reboot hangs: Initial
From: |
Christian Borntraeger |
Subject: |
[Qemu-devel] [PULL 1/3] s390-ccw.img: Fix sporadic reboot hangs: Initialize next_idx |
Date: |
Thu, 13 Feb 2014 10:17:09 +0100 |
The current code does not initialize next_idx as the qemu
elf loader does not zero the bss section.
Make the initialization explicit.
Signed-off-by: Christian Borntraeger <address@hidden>
---
pc-bios/s390-ccw/virtio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/pc-bios/s390-ccw/virtio.c b/pc-bios/s390-ccw/virtio.c
index 4d6e48f..a46914d 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);
}
--
1.8.4.2
[Qemu-devel] [PULL 1/3] s390-ccw.img: Fix sporadic reboot hangs: Initialize next_idx,
Christian Borntraeger <=
Re: [Qemu-devel] [PULL 0/3] s390-ccw.img: fix sporadic boot errors, Peter Maydell, 2014/02/13