KVM: s390: represent SIMD cap in kvm facility
authorMichael Mueller <mimu@linux.vnet.ibm.com>
Mon, 16 Mar 2015 15:05:41 +0000 (16:05 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 17 Mar 2015 15:33:14 +0000 (16:33 +0100)
commit18280d8b4bcd4a2b174ee3cd748166c6190acacb
treeff82ed01c51560e596d7321ca27d3353e3bc7c93
parent400ac6cd73633f61e42a035b910c3db2b590b9d5
KVM: s390: represent SIMD cap in kvm facility

The patch represents capability KVM_CAP_S390_VECTOR_REGISTERS by means
of the SIMD facility bit. This allows to a) disable the use of SIMD when
used in conjunction with a not-SIMD-aware QEMU, b) to enable SIMD when
used with a SIMD-aware version of QEMU and c) finally by means of a QEMU
version using the future cpu model ioctls.

Signed-off-by: Michael Mueller <mimu@linux.vnet.ibm.com>
Reviewed-by: Eric Farman <farman@linux.vnet.ibm.com>
Tested-by: Eric Farman <farman@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h