|
|
a19a21 |
From cf3d958b14e21fde929e67262b6e192592d95359 Mon Sep 17 00:00:00 2001
|
|
|
a19a21 |
From: Thomas Huth <thuth@redhat.com>
|
|
|
a19a21 |
Date: Wed, 11 Nov 2020 12:03:15 -0500
|
|
|
a19a21 |
Subject: [PATCH 15/18] s390x: pv: Remove sclp boundary checks
|
|
|
a19a21 |
|
|
|
a19a21 |
RH-Author: Thomas Huth <thuth@redhat.com>
|
|
|
a19a21 |
Message-id: <20201111120316.707489-12-thuth@redhat.com>
|
|
|
a19a21 |
Patchwork-id: 99508
|
|
|
a19a21 |
O-Subject: [RHEL-8.4.0 qemu-kvm PATCH v2 11/12] s390x: pv: Remove sclp boundary checks
|
|
|
a19a21 |
Bugzilla: 1798506
|
|
|
a19a21 |
RH-Acked-by: Jens Freimann <jfreimann@redhat.com>
|
|
|
a19a21 |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
a19a21 |
RH-Acked-by: David Hildenbrand <david@redhat.com>
|
|
|
a19a21 |
|
|
|
a19a21 |
From: Janosch Frank <frankja@linux.ibm.com>
|
|
|
a19a21 |
|
|
|
a19a21 |
The SCLP boundary cross check is done by the Ultravisor for a
|
|
|
a19a21 |
protected guest, hence we don't need to do it. As QEMU doesn't get a
|
|
|
a19a21 |
valid SCCB address in protected mode this is even problematic and can
|
|
|
a19a21 |
lead to QEMU reporting a false boundary cross error.
|
|
|
a19a21 |
|
|
|
a19a21 |
Fixes: db13387ca0 ("s390/sclp: rework sclp boundary checks")
|
|
|
a19a21 |
Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com>
|
|
|
a19a21 |
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
|
|
|
a19a21 |
Tested-by: Marc Hartmayer <mhartmay@linux.ibm.com>
|
|
|
a19a21 |
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
|
|
|
a19a21 |
Reviewed-by: Thomas Huth <thuth@redhat.com>
|
|
|
a19a21 |
Reviewed-by: Collin Walling <walling@linux.ibm.com>
|
|
|
a19a21 |
Acked-by: Halil Pasic <pasic@linux.ibm.com>
|
|
|
a19a21 |
Acked-by: David Hildenbrand <david@redhat.com>
|
|
|
a19a21 |
Message-Id: <20201022103135.126033-2-frankja@linux.ibm.com>
|
|
|
a19a21 |
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
a19a21 |
(cherry picked from commit 3df4843d0e612a3c838e8d94c3e9c24520f2e680)
|
|
|
a19a21 |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
a19a21 |
---
|
|
|
a19a21 |
hw/s390x/sclp.c | 5 -----
|
|
|
a19a21 |
1 file changed, 5 deletions(-)
|
|
|
a19a21 |
|
|
|
a19a21 |
diff --git a/hw/s390x/sclp.c b/hw/s390x/sclp.c
|
|
|
a19a21 |
index 2931046f456..03f847b2c8a 100644
|
|
|
a19a21 |
--- a/hw/s390x/sclp.c
|
|
|
a19a21 |
+++ b/hw/s390x/sclp.c
|
|
|
a19a21 |
@@ -285,11 +285,6 @@ int sclp_service_call_protected(CPUS390XState *env, uint64_t sccb,
|
|
|
a19a21 |
goto out_write;
|
|
|
a19a21 |
}
|
|
|
a19a21 |
|
|
|
a19a21 |
- if (!sccb_verify_boundary(sccb, be16_to_cpu(work_sccb->h.length), code)) {
|
|
|
a19a21 |
- work_sccb->h.response_code = cpu_to_be16(SCLP_RC_SCCB_BOUNDARY_VIOLATION);
|
|
|
a19a21 |
- goto out_write;
|
|
|
a19a21 |
- }
|
|
|
a19a21 |
-
|
|
|
a19a21 |
sclp_c->execute(sclp, work_sccb, code);
|
|
|
a19a21 |
out_write:
|
|
|
a19a21 |
s390_cpu_pv_mem_write(env_archcpu(env), 0, work_sccb,
|
|
|
a19a21 |
--
|
|
|
a19a21 |
2.27.0
|
|
|
a19a21 |
|