|
|
ddf19c |
From 680154545d1f9d75fb33615b1900661e7d09be4e Mon Sep 17 00:00:00 2001
|
|
|
ddf19c |
From: Thomas Huth <thuth@redhat.com>
|
|
|
ddf19c |
Date: Fri, 29 May 2020 05:54:15 -0400
|
|
|
ddf19c |
Subject: [PATCH 33/42] s390x: protvirt: Handle SIGP store status correctly
|
|
|
ddf19c |
|
|
|
ddf19c |
RH-Author: Thomas Huth <thuth@redhat.com>
|
|
|
ddf19c |
Message-id: <20200529055420.16855-34-thuth@redhat.com>
|
|
|
ddf19c |
Patchwork-id: 97054
|
|
|
ddf19c |
O-Subject: [RHEL-8.3.0 qemu-kvm PATCH v2 33/38] s390x: protvirt: Handle SIGP store status correctly
|
|
|
ddf19c |
Bugzilla: 1828317
|
|
|
ddf19c |
RH-Acked-by: Claudio Imbrenda <cimbrend@redhat.com>
|
|
|
ddf19c |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
ddf19c |
RH-Acked-by: David Hildenbrand <david@redhat.com>
|
|
|
ddf19c |
|
|
|
ddf19c |
From: Janosch Frank <frankja@linux.ibm.com>
|
|
|
ddf19c |
|
|
|
ddf19c |
For protected VMs status storing is not done by QEMU anymore.
|
|
|
ddf19c |
|
|
|
ddf19c |
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
|
|
|
ddf19c |
Reviewed-by: Thomas Huth <thuth@redhat.com>
|
|
|
ddf19c |
Reviewed-by: David Hildenbrand <david@redhat.com>
|
|
|
ddf19c |
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
|
|
|
ddf19c |
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
|
|
|
ddf19c |
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
ddf19c |
Message-Id: <20200319131921.2367-15-frankja@linux.ibm.com>
|
|
|
ddf19c |
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
ddf19c |
(cherry picked from commit f2a2d9a2bae8f6fdc5e9a40c1241e9428f15b4df)
|
|
|
ddf19c |
[thuth: fixed contextual conflict due to missing commit 44eaccd091a7365fd37)
|
|
|
ddf19c |
Signed-off-by: Thomas Huth <thuth@redhat.com>
|
|
|
ddf19c |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
ddf19c |
---
|
|
|
ddf19c |
target/s390x/helper.c | 6 ++++++
|
|
|
ddf19c |
1 file changed, 6 insertions(+)
|
|
|
ddf19c |
|
|
|
ddf19c |
diff --git a/target/s390x/helper.c b/target/s390x/helper.c
|
|
|
ddf19c |
index 6808dfda01..36b6d3d9d1 100644
|
|
|
ddf19c |
--- a/target/s390x/helper.c
|
|
|
ddf19c |
+++ b/target/s390x/helper.c
|
|
|
ddf19c |
@@ -25,6 +25,7 @@
|
|
|
ddf19c |
#include "qemu/timer.h"
|
|
|
ddf19c |
#include "qemu/qemu-print.h"
|
|
|
ddf19c |
#include "hw/s390x/ioinst.h"
|
|
|
ddf19c |
+#include "hw/s390x/pv.h"
|
|
|
ddf19c |
#include "sysemu/hw_accel.h"
|
|
|
ddf19c |
#include "sysemu/runstate.h"
|
|
|
ddf19c |
#ifndef CONFIG_USER_ONLY
|
|
|
ddf19c |
@@ -246,6 +247,11 @@ int s390_store_status(S390CPU *cpu, hwaddr addr, bool store_arch)
|
|
|
ddf19c |
hwaddr len = sizeof(*sa);
|
|
|
ddf19c |
int i;
|
|
|
ddf19c |
|
|
|
ddf19c |
+ /* For PVMs storing will occur when this cpu enters SIE again */
|
|
|
ddf19c |
+ if (s390_is_pv()) {
|
|
|
ddf19c |
+ return 0;
|
|
|
ddf19c |
+ }
|
|
|
ddf19c |
+
|
|
|
ddf19c |
sa = cpu_physical_memory_map(addr, &len, 1);
|
|
|
ddf19c |
if (!sa) {
|
|
|
ddf19c |
return -EFAULT;
|
|
|
ddf19c |
--
|
|
|
ddf19c |
2.27.0
|
|
|
ddf19c |
|