s390x/flic: fail migration on source already
commitba690c7171cb863643c21ab9f7e7116ad5df1c63
authorCornelia Huck <cornelia.huck@de.ibm.com>
Wed, 25 Jan 2017 15:01:03 +0000 (25 16:01 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 24 Feb 2017 09:15:18 +0000 (24 10:15 +0100)
tree767eabc3e940de37ebf3cb42102c67c307269ed4
parent409422cd83f36450a3c0bdd49163786cbff3a7ea
s390x/flic: fail migration on source already

Current code puts a 'FLIC_FAILED' marker into the migration stream
to indicate something went wrong while saving flic state and fails
load if it encounters that marker. VMState's put routine recently
gained the ability to return error codes (but did not wire it up
yet).

In order to be able to reap the benefits of returning an error and
failing migration on the source already once this gets wired up
in core, return an error in addition to storing 'FLIC_FAILED'.

Suggested-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
hw/intc/s390_flic_kvm.c