[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 60/81] s390x/kvm: fix small race reboot vs. cmma

From: Michael Roth
Subject: [Qemu-devel] [PATCH 60/81] s390x/kvm: fix small race reboot vs. cmma
Date: Mon, 20 Mar 2017 18:08:24 -0500

From: Christian Borntraeger <address@hidden>

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: address@hidden
Signed-off-by: Christian Borntraeger <address@hidden>
(cherry picked from commit 1a0e4c8b02ea510508970c333ee610a90b921cbb)
Signed-off-by: Michael Roth <address@hidden>
 hw/s390x/s390-virtio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/s390x/s390-virtio.c b/hw/s390x/s390-virtio.c
index 0a96347..7a3a7fe 100644
--- a/hw/s390x/s390-virtio.c
+++ b/hw/s390x/s390-virtio.c
@@ -204,8 +204,8 @@ void s390_machine_reset(void)
     S390CPU *ipl_cpu = S390_CPU(qemu_get_cpu(0));
-    qemu_devices_reset();
+    qemu_devices_reset();
     /* all cpus are stopped - configure and start the ipl cpu only */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]