thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-s390x-Don-t-do-a-normal-reset-on-the-initial-cpu.patch

77c23f
From 511638161566d4944a572a31d787eb27bbc0bc8e Mon Sep 17 00:00:00 2001
77c23f
From: Thomas Huth <thuth@redhat.com>
77c23f
Date: Fri, 29 May 2020 05:53:45 -0400
77c23f
Subject: [PATCH 03/42] s390x: Don't do a normal reset on the initial cpu
77c23f
MIME-Version: 1.0
77c23f
Content-Type: text/plain; charset=UTF-8
77c23f
Content-Transfer-Encoding: 8bit
77c23f
77c23f
RH-Author: Thomas Huth <thuth@redhat.com>
77c23f
Message-id: <20200529055420.16855-4-thuth@redhat.com>
77c23f
Patchwork-id: 97017
77c23f
O-Subject: [RHEL-8.3.0 qemu-kvm PATCH v2 03/38] s390x: Don't do a normal reset on the initial cpu
77c23f
Bugzilla: 1828317
77c23f
RH-Acked-by: Claudio Imbrenda <cimbrend@redhat.com>
77c23f
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
77c23f
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
77c23f
RH-Acked-by: David Hildenbrand <david@redhat.com>
77c23f
77c23f
From: Janosch Frank <frankja@linux.ibm.com>
77c23f
77c23f
The initiating cpu needs to be reset with an initial reset. While
77c23f
doing a normal reset followed by a initial reset is not wrong per se,
77c23f
the Ultravisor will only allow the correct reset to be performed.
77c23f
77c23f
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
77c23f
Reviewed-by: David Hildenbrand <david@redhat.com>
77c23f
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
77c23f
Message-Id: <20191127175046.4911-2-frankja@linux.ibm.com>
77c23f
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
77c23f
(cherry picked from commit ec9227339fce99412830d44a37eb0bd2fadd5f75)
77c23f
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
77c23f
---
77c23f
 hw/s390x/s390-virtio-ccw.c | 3 +++
77c23f
 1 file changed, 3 insertions(+)
77c23f
77c23f
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
77c23f
index c2c83d2fce..4ea01c53c0 100644
77c23f
--- a/hw/s390x/s390-virtio-ccw.c
77c23f
+++ b/hw/s390x/s390-virtio-ccw.c
77c23f
@@ -348,6 +348,9 @@ static void s390_machine_reset(MachineState *machine)
77c23f
         break;
77c23f
     case S390_RESET_LOAD_NORMAL:
77c23f
         CPU_FOREACH(t) {
77c23f
+            if (t == cs) {
77c23f
+                continue;
77c23f
+            }
77c23f
             run_on_cpu(t, s390_do_cpu_reset, RUN_ON_CPU_NULL);
77c23f
         }
77c23f
         subsystem_reset();
77c23f
-- 
77c23f
2.27.0
77c23f