]> www.infradead.org Git - users/dwmw2/qemu.git/commit
s390x/kvm: fix small race reboot vs. cmma
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 24 Jan 2017 21:17:47 +0000 (22:17 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 16 Mar 2017 17:10:40 +0000 (12:10 -0500)
commit5f4b9013e66433e68b9f401a33e76b745f6fe7dd
tree77bafb1e7316460574e68d0e8a7b7f80a7b9bd86
parent5e40f283e5a9cc2f39ae7a5bbb1ec122d346d50a
s390x/kvm: fix small race reboot vs. cmma

Right now we reset all devices before we reset the cmma states.  This
can result in the host kernel discarding guest pages that were
previously in the unused state but already contain a bios or a -kernel
file before the cmma reset has finished.  This race results in random
guest crashes or hangs during very early reboot.

Fixes: 1cd4e0f6f0a6 ("s390x/cmma: clean up cmma reset")
Cc: qemu-stable@nongnu.org
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
(cherry picked from commit 1a0e4c8b02ea510508970c333ee610a90b921cbb)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/s390x/s390-virtio.c