s390x/kvm: unknown DIAGNOSE code should give a specification exception
commit68540b1a1b505d9578699b03fe0b5da716a21dcc
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 18 Dec 2014 09:04:17 +0000 (18 10:04 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 3 Feb 2015 12:42:40 +0000 (3 13:42 +0100)
tree94a3790befc130bd220762e52b5d62e6f9f9cf3c
parent20dd25bb67a51a4a57092b6381a6d4b0e64e2153
s390x/kvm: unknown DIAGNOSE code should give a specification exception

As described in CP programming services an unimplemented DIAGNOSE
function should return a specification exception. Today we give the
guest an operation exception.
As both exception types are suppressing and Linux as a guest does not
care about the type of program check in its exception table handler
as long as both types have the same kind of error handling (nullifying,
terminating, suppressing etc.) this was unnoticed.

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