[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 15/22] s390-ccw.img: Fix sporadic reboot hangs: Initi
From: |
Christian Borntraeger |
Subject: |
[Qemu-devel] [PULL 15/22] s390-ccw.img: Fix sporadic reboot hangs: Initialize next_idx |
Date: |
Fri, 28 Feb 2014 10:30:59 +0100 |
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 <address@hidden>
Reviewed-by: Cornelia Huck <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 00/22] s390/kvm: features, fixes and cleanups for 2.0, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 03/22] s390x/async_pf: Check for apf extension and enable pfault, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 06/22] s390x/virtio-hcall: Specification exception for illegal subcodes, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 05/22] s390x/virtio-hcall: Add range check for hypervisor call, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 09/22] s390x/sclp: Add missing checks to SCLP handler, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 15/22] s390-ccw.img: Fix sporadic reboot hangs: Initialize next_idx,
Christian Borntraeger <=
- [Qemu-devel] [PULL 10/22] s390x/sclp: Fixed setting of condition code register, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 01/22] update linux headers to kvm/next, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 08/22] s390x/sclp: Fixed the size of sccb and code parameter, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 11/22] s390x/event-facility: some renaming, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 17/22] s390-ccw.img: new binary rom to match latest fixes, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 12/22] s390x/event-facility: code restructure, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 16/22] s390-ccw.img: Fix sporadic errors with ccw boot image - initialize css, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 20/22] s390x/kvm: Add missing SIGP CPU RESET order, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 02/22] s390x/kvm: implement floating-interrupt controller device, Christian Borntraeger, 2014/02/28
- [Qemu-devel] [PULL 07/22] s390x/eventfacility: mask out commands, Christian Borntraeger, 2014/02/28