KVM: s390: provide a capability for AIS state migration
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 9 Nov 2017 09:00:45 +0000 (10:00 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 9 Nov 2017 15:48:51 +0000 (16:48 +0100)
commitda9a1446d248f673a8560ce46251ff620214ab7b
tree1ad9a5e7c71c4c31536e0a532339ec759a2ad0e8
parent4dd6f17eb913d3d23dd6c07950627ac2c3068dca
KVM: s390: provide a capability for AIS state migration

The AIS capability was introduced in 4.12, while the interface to
migrate the state was added in 4.13. Unfortunately it is not possible
for userspace to detect the migration capability without creating a flic
kvm device. As in QEMU the cpu model detection runs on the "none"
machine this will result in cpu model issues regarding the "ais"
capability.

To get the "ais" capability properly let's add a new KVM capability that
tells userspace that AIS states can be migrated.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Documentation/virtual/kvm/api.txt
Documentation/virtual/kvm/devices/s390_flic.txt
arch/s390/kvm/kvm-s390.c
include/uapi/linux/kvm.h