[libvirt] Tunnelled post-copy live migration - support of bidirectional communication over the tunnel
cima.vojtech at gmail.com
Thu Jan 15 13:45:13 UTC 2015
we are very interested about the post-copy live migration mechanism in
libvirt  using QEMU. Mentioning post-copy in this context means the
setup with the first full iteration of standard pre-copy and then
switching to the post-copy. VIR_MIGRATE_ENABLE_POSTCOPY,
VIR_MIGRATE_POSTCOPY_AFTER_PRECOPY together with VIR_MIGRATE_TUNNELLED flag.
Recently we have noticed the issue that post-copy live migration doesn't
work over the tunnel since since current tunnel implementation in
libvirt supports only uni-directional communication. I spent some time
trying to enable bidirectional communication over the tunnel but still
facing several issues and I would appreciate any hints how to move forward.
The idea is to add a function (probably a callback function) responsible
for handling the traffic in the opposite direction (dest->src) reading
from the virStream and writing to the QEMU . To be able to do so I
replaced the current 'pipe' calls with the 'socketpair' calls to create
Now, trying to use tunnelled post-copy live migration, it gets
initiated, there is some traffic going from source to destination
(obviously the pre-copy phase) but at some point it gets stuck on the
'saferead' function  which is now blocking. Can this issue issue be
linked with the default socket blocking policy?
Trying to use standard 'read' function instead of 'saferead' results
that the lower data transfers and it seems it's missing significant part
Another point is that we suppose that the virStream on its own supports
bidirectional communication, is that correct?
Thank you very much for any ideas on this topic.
More information about the libvir-list