]> git.proxmox.com Git - mirror_qemu.git/commit - migration/rdma.c
migration: poll the cm event while wait RDMA work request completion
authorLidong Chen <jemmy858585@gmail.com>
Mon, 6 Aug 2018 13:29:33 +0000 (21:29 +0800)
committerJuan Quintela <quintela@redhat.com>
Wed, 22 Aug 2018 10:14:19 +0000 (12:14 +0200)
commitd5882995a16bb44f85b1c7ae3a45d89ef1e1be09
treec9ace369e80819812572b6e20341f474a5b06b28
parent5d5f4d84366d61cf37c5009a669945f52ed9bdf9
migration: poll the cm event while wait RDMA work request completion

If the peer qemu is crashed, the qemu_rdma_wait_comp_channel function
maybe loop forever. so we should also poll the cm event fd, and when
receive RDMA_CM_EVENT_DISCONNECTED and RDMA_CM_EVENT_DEVICE_REMOVAL,
we consider some error happened.

Signed-off-by: Lidong Chen <lidongchen@tencent.com>
Signed-off-by: Gal Shachaf <galsha@mellanox.com>
Signed-off-by: Aviad Yehezkel <aviadye@mellanox.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/rdma.c