diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2013-08-29 17:52:43 +0200 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2013-09-20 12:46:53 +0200 |
commit | 441ea695f9e9d64399f69904c2dd12e59963f1a4 (patch) | |
tree | 80e9164bfc52201e7b521c5b33efa0cb6337fb8e /pc-bios/s390-ccw/virtio.h | |
parent | abd137a1bc72614e1e6ca1cd9502426e4b4f7e6a (diff) | |
download | qemu-441ea695f9e9d64399f69904c2dd12e59963f1a4.zip qemu-441ea695f9e9d64399f69904c2dd12e59963f1a4.tar.gz qemu-441ea695f9e9d64399f69904c2dd12e59963f1a4.tar.bz2 |
s390/ipl: Fix waiting for virtio processing
The guest side must not manipulate the index for the used buffers. Instead,
remember the state of the used buffer locally and wait until it has moved.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'pc-bios/s390-ccw/virtio.h')
-rw-r--r-- | pc-bios/s390-ccw/virtio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pc-bios/s390-ccw/virtio.h b/pc-bios/s390-ccw/virtio.h index 86fdd57..772a63f 100644 --- a/pc-bios/s390-ccw/virtio.h +++ b/pc-bios/s390-ccw/virtio.h @@ -115,6 +115,7 @@ struct vring_used { struct vring { unsigned int num; int next_idx; + int used_idx; struct vring_desc *desc; struct vring_avail *avail; struct vring_used *used; |