KVM: s390: implement KVM_(S|G)ET_MP_STATE for user space state control
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Thu, 10 Apr 2014 15:35:00 +0000 (17:35 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 10 Jul 2014 12:11:17 +0000 (14:11 +0200)
commit6352e4d2dd9a349024a41356148eced553e1dce4
tree2835b0ebeacb7dc0f13e4df266f38e441b08243a
parent0b4820d6d8b6448bc9f7fac1bb1a801a53b425e1
KVM: s390: implement KVM_(S|G)ET_MP_STATE for user space state control

This patch
- adds s390 specific MP states to linux headers and documents them
- implements the KVM_{SET,GET}_MP_STATE ioctls
- enables KVM_CAP_MP_STATE
- allows user space to control the VCPU state on s390.

If user space sets the VCPU state using the ioctl KVM_SET_MP_STATE, we can disable
manual changing of the VCPU state and trust user space to do the right thing.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.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/diag.c
arch/s390/kvm/intercept.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
include/uapi/linux/kvm.h