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.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -930,6 +930,7 @@ struct kvm_ppc_resize_hpt { · 929 unmodified lines | ||
| 930 | 930 | #define KVM_CAP_PPC_SMT_POSSIBLE 147 |
| 931 | 931 | #define KVM_CAP_HYPERV_SYNIC2 148 |
| 932 | 932 | #define KVM_CAP_HYPERV_VP_INDEX 149 |
| 933 | +#define KVM_CAP_S390_AIS_MIGRATION 150 | |
| 933 | 934 | |
| 934 | 935 | #ifdef KVM_CAP_IRQ_ROUTING |
| 935 | 936 | |