]> Git Repo - qemu.git/commitdiff
s390x: pv: Remove sclp boundary checks
authorJanosch Frank <[email protected]>
Thu, 22 Oct 2020 10:31:34 +0000 (06:31 -0400)
committerCornelia Huck <[email protected]>
Thu, 22 Oct 2020 13:47:27 +0000 (15:47 +0200)
The SCLP boundary cross check is done by the Ultravisor for a
protected guest, hence we don't need to do it. As QEMU doesn't get a
valid SCCB address in protected mode this is even problematic and can
lead to QEMU reporting a false boundary cross error.

Fixes: db13387ca0 ("s390/sclp: rework sclp boundary checks")
Reported-by: Marc Hartmayer <[email protected]>
Signed-off-by: Janosch Frank <[email protected]>
Tested-by: Marc Hartmayer <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Reviewed-by: Collin Walling <[email protected]>
Acked-by: Halil Pasic <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Message-Id: <20201022103135[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
hw/s390x/sclp.c

index 00f1e4648db268029a6730dca276b277d5e7c7e7..0cf229082670dede687c8a49fddfb24a2464d63b 100644 (file)
@@ -285,11 +285,6 @@ int sclp_service_call_protected(CPUS390XState *env, uint64_t sccb,
         goto out_write;
     }
 
-    if (!sccb_verify_boundary(sccb, be16_to_cpu(work_sccb->h.length), code)) {
-        work_sccb->h.response_code = cpu_to_be16(SCLP_RC_SCCB_BOUNDARY_VIOLATION);
-        goto out_write;
-    }
-
     sclp_c->execute(sclp, work_sccb, code);
 out_write:
     s390_cpu_pv_mem_write(env_archcpu(env), 0, work_sccb,
This page took 0.027391 seconds and 4 git commands to generate.