]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Set migration FD blocking
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 26 Mar 2013 14:45:16 +0000 (15:45 +0100)
committerCole Robinson <crobinso@redhat.com>
Tue, 26 Mar 2013 22:36:40 +0000 (18:36 -0400)
commit2bcf1522ff4b72e559cd5203ab916fad2e2d6b15
tree131a9d006199ca6cc13c51ce5817ae1af06c9ce3
parent2c7638fdb4e13987cc2229d547531d2c4383ba24
qemu: Set migration FD blocking

Since we switched from direct host migration scheme to the one,
where we connect to the destination and then just pass a FD to a
qemu, we have uncovered a qemu bug. Qemu expects migration FD to
block. However, we are passing a nonblocking one which results in
cryptic error messages like:

  qemu: warning: error while loading state section id 2
  load of migration failed

The bug is already known to Qemu folks, but we should workaround
already released Qemus. Patch has been originally proposed by Stefan
Hajnoczi <stefanha@gmail.com>
(cherry picked from commit ceb31795af40f6127a541076b905935ff83e5b11)
src/qemu/qemu_migration.c