s390x/flic: migrate ais states

During migration we should transfer ais states to the target guest.
This patch introduces a subsection to kvm_s390_flic_vmstate and new
vmsd for qemu_flic. The ais states need to be migrated only when
ais is supported.

Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
Yi Min Zhao 2017-05-16 18:58:44 +08:00 committed by Christian Borntraeger
parent 3b00f702c2
commit e7be8d4997
3 changed files with 102 additions and 0 deletions

View file

@ -89,6 +89,7 @@ typedef struct QEMUS390FLICState {
void s390_flic_init(void);
S390FLICState *s390_get_flic(void);
bool ais_needed(void *opaque);
#ifdef CONFIG_KVM
DeviceState *s390_flic_kvm_create(void);