Fail more cleanly in mismatched RAM cases
commitef4b722d19cab845eaa0d1f912018b09a9d8288b
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 11 Jun 2015 17:17:28 +0000 (11 18:17 +0100)
committerJuan Quintela <quintela@redhat.com>
Tue, 7 Jul 2015 12:54:50 +0000 (7 14:54 +0200)
treecf627043e28070e9cc730485800c463bd7cd30dd
parentafcddefdbe75d0c20bf6e11b5512ba768ce0700c
Fail more cleanly in mismatched RAM cases

If the number of RAMBlocks was different on the source from the
destination, QEMU would hang waiting for a disconnect on the source
and wouldn't release from that hang until the destination was manually
killed.

Mark the stream as being in error, this causes the destination to die
and the source to carry on.

(It still gets a whole bunch of warnings on the destination, and I've
not managed to complete another migration after the 1st one, still
progress).

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/rdma.c