]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit074efee0dd0620d7fae9cc9d78f026c9dbc18d97
tree1ad9a5e7c71c4c31536e0a532339ec759a2ad0e8
parent4f5d26f74f8ebed327d82cc0990e26203591741f
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