s390x/sclp: Add missing checks to SCLP handler
commit6e25280216fc23c8387892f76d961559da124528
authorThomas Huth <thuth@linux.vnet.ibm.com>
Mon, 13 Jan 2014 11:55:55 +0000 (13 12:55 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 27 Feb 2014 08:51:25 +0000 (27 09:51 +0100)
treeb9ad13209c579336fab439eb9eea7f2e6e18eb48
parenta0fa2cb8ccf0b73cfd3ac01d557401a2303c0de4
s390x/sclp: Add missing checks to SCLP handler

If the 51 most significant bits of the SCCB address are zero or equal to
the prefix, we should throw an specification exception, too.
Also moved the check for privileged mode to sclp_service_call() to have
all program checks in one place now.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
hw/s390x/sclp.c
target-s390x/cpu.h
target-s390x/kvm.c
target-s390x/misc_helper.c