]> Git Repo - qemu.git/commitdiff
s390x/kvm: fix small race reboot vs. cmma
authorChristian Borntraeger <[email protected]>
Tue, 24 Jan 2017 21:17:47 +0000 (22:17 +0100)
committerChristian Borntraeger <[email protected]>
Wed, 1 Feb 2017 08:11:56 +0000 (09:11 +0100)
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: [email protected]
Signed-off-by: Christian Borntraeger <[email protected]>
hw/s390x/s390-virtio.c

index 0a963473ad486b7d5983b7f8cdf22781f6b5921a..7a3a7fe5fd518217c098daf8f736599fda17639f 100644 (file)
@@ -204,8 +204,8 @@ void s390_machine_reset(void)
 {
     S390CPU *ipl_cpu = S390_CPU(qemu_get_cpu(0));
 
-    qemu_devices_reset();
     s390_cmma_reset();
+    qemu_devices_reset();
     s390_crypto_reset();
 
     /* all cpus are stopped - configure and start the ipl cpu only */
This page took 0.027528 seconds and 4 git commands to generate.