CA-195652: Call VM_check_state twice on a failed VM_migrate
CA-195652: Call VM_check_state twice on a failed VM_migrate

During a failed migration the sending Xenopsd has no handle on the
cleanup operations that the receiving Xenopsd will perform as a result
of the failed VM_receive_memory. Therefore, during a localhost
migration, the sending Xenopsd needs to perform two VM_check_state
operations to ensure that both domains have been cleaned up before
returning from the VM_migrate operation.

Signed-off-by: Si Beaumont <a0992b7f1f450b4c7716d34b81a2d6f0877ae11a@citrix.com>

johnelse/xenopsd,thomassa/xenopsd,thomassa/xenopsd,thomassa/xenopsd,euanh/xenopsd,euanh/xenopsd,johnelse/xenopsd,euanh/xenopsd,johnelse/xenopsd