cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-s390x-tcg-clear-local-interrupts-on-reset-normal.patch

be904d
From 0c85e86077b42547034ec6e8330a3e61d79b97ee Mon Sep 17 00:00:00 2001
be904d
From: Thomas Huth <thuth@redhat.com>
be904d
Date: Tue, 7 Jul 2020 09:35:32 -0400
be904d
Subject: [PATCH 3/4] s390x/tcg: clear local interrupts on reset normal
be904d
be904d
RH-Author: Thomas Huth <thuth@redhat.com>
be904d
Message-id: <20200707093532.22456-3-thuth@redhat.com>
be904d
Patchwork-id: 97919
be904d
O-Subject: [RHEL-8.3.0 qemu-kvm PATCH 2/2] s390x/tcg: clear local interrupts on reset normal
be904d
Bugzilla: 1854092
be904d
RH-Acked-by: Jens Freimann <jfreimann@redhat.com>
be904d
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
be904d
RH-Acked-by: David Hildenbrand <david@redhat.com>
be904d
be904d
From: Cornelia Huck <cohuck@redhat.com>
be904d
be904d
We neglected to clean up pending interrupts and emergency signals;
be904d
fix that.
be904d
be904d
Message-Id: <20191206135404.16051-1-cohuck@redhat.com>
be904d
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
be904d
Reviewed-by: David Hildenbrand <david@redhat.com>
be904d
(cherry picked from commit bcf88d56efec4ffc153bbe98d11b689a5ebe1a91)
be904d
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
be904d
---
be904d
 target/s390x/cpu.h | 8 ++++----
be904d
 1 file changed, 4 insertions(+), 4 deletions(-)
be904d
be904d
diff --git a/target/s390x/cpu.h b/target/s390x/cpu.h
be904d
index edf8391504..a48e655c4d 100644
be904d
--- a/target/s390x/cpu.h
be904d
+++ b/target/s390x/cpu.h
be904d
@@ -98,10 +98,6 @@ struct CPUS390XState {
be904d
 
be904d
     uint64_t cregs[16]; /* control registers */
be904d
 
be904d
-    int pending_int;
be904d
-    uint16_t external_call_addr;
be904d
-    DECLARE_BITMAP(emergency_signals, S390_MAX_CPUS);
be904d
-
be904d
     uint64_t ckc;
be904d
     uint64_t cputm;
be904d
     uint32_t todpr;
be904d
@@ -117,6 +113,10 @@ struct CPUS390XState {
be904d
     struct {} start_normal_reset_fields;
be904d
     uint8_t riccb[64];     /* runtime instrumentation control */
be904d
 
be904d
+    int pending_int;
be904d
+    uint16_t external_call_addr;
be904d
+    DECLARE_BITMAP(emergency_signals, S390_MAX_CPUS);
be904d
+
be904d
     /* Fields up to this point are cleared by a CPU reset */
be904d
     struct {} end_reset_fields;
be904d
 
be904d
-- 
be904d
2.27.0
be904d