s390x/kvm: Fixed bad SIGP SET-ARCHITECTURE handler
commit0788082a4b3f41cb453b654d1a66f87adfa794a9
authorThomas Huth <thuth@linux.vnet.ibm.com>
Wed, 22 Jan 2014 16:02:46 +0000 (22 17:02 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 27 Feb 2014 08:51:25 +0000 (27 09:51 +0100)
treeefc8c4354400713c6edc063d308c2915d8cd315b
parent819bd3091e986c1b6b10203a7138a53b849a53e0
s390x/kvm: Fixed bad SIGP SET-ARCHITECTURE handler

The SET-ARCHITECTURE handler in QEMU caused a program interruption.
This is wrong according to the "Principles of Operations" specification
(since SIGP should never cause a program interrupt) and was likely only
introduced for debugging purposes. Since we handle SET-ARCHITECTURE in
the kernel already and only dropped to user space in case of bad mode
parameters, we should just report INVALID PARAMETER in QEMU instead.

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>
target-s390x/kvm.c