]> git.proxmox.com Git - mirror_qemu.git/commit
s390-virtio: clear {used,avail}_event_idx on reset as well
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 4 May 2015 13:27:25 +0000 (15:27 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 8 May 2015 08:36:02 +0000 (10:36 +0200)
commit77ae0b2a6e731ab7b97e9fae401c579397edb31c
tree4efb14aa0d7e770efb04016ebf924cabe5f82ca9
parentf50616a81b7f88a9adac16f3ea0236311a748eca
s390-virtio: clear {used,avail}_event_idx on reset as well

The old s390-virtio transport clears the vring used/avail indices in
the shared area on reset. When we enabled event_idx for virtio-blk, we
noticed that this is not enough: We also need to clear the published
used/avail event indices, or reboot will fail.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-virtio-bus.c