KVM: s390: allow user space to handle instr 0x0000
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 21 Jun 2016 12:19:51 +0000 (14:19 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 18 Jul 2016 12:15:00 +0000 (14:15 +0200)
commit6502a34cfd6695929086187f63fe670cc3050e68
tree774e386aac358c15baeeba02a38bb8b080e3887d
parentaf1bae5497b98cb99d6b0492e6981f060420a00c
KVM: s390: allow user space to handle instr 0x0000

We will use illegal instruction 0x0000 for handling 2 byte sw breakpoints
from user space. As it can be enabled dynamically via a capability,
let's move setting of ICTL_OPEREXC to the post creation step, so we avoid
any races when enabling that capability just while adding new cpus.

Acked-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Documentation/virtual/kvm/api.txt
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/intercept.c
arch/s390/kvm/kvm-s390.c
include/uapi/linux/kvm.h