mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
65043d2dff
Migration just seems to go from bad to worse. We already had to introduce a second migration protocol when adding the QEMU driver, since the one from Xen was insufficiently flexible to cope with passing the data the QEMU driver required. It turns out that this protocol still has some flaws that we need to address. The current sequence is * Src: DumpXML - Generate XML to pass to dst * Dst: Prepare - Get ready to accept incoming VM - Generate optional cookie to pass to src * Src: Perform - Start migration and wait for send completion - Kill off VM if successful, resume if failed * Dst: Finish - Wait for recv completion and check status - Kill off VM if unsuccessful The problems with this are: - Since the first step is a generic 'DumpXML' call, we can't add in other migration specific data. eg, we can't include any VM lease data from lock manager plugins - Since the first step is a generic 'DumpXML' call, we can't emit any 'migration begin' event on the source, or have any hook that runs right at the start of the process - Since there is no final step on the source, if the Finish method fails to receive all migration data & has to kill the VM, then there's no way to resume the original VM on the source This patch attempts to introduce a version 3 that uses the improved 5 step sequence * Src: Begin - Generate XML to pass to dst - Generate optional cookie to pass to dst * Dst: Prepare - Get ready to accept incoming VM - Generate optional cookie to pass to src * Src: Perform - Start migration and wait for send completion - Generate optional cookie to pass to dst * Dst: Finish - Wait for recv completion and check status - Kill off VM if failed, resume if success - Generate optional cookie to pass to src * Src: Confirm - Kill off VM if success, resume if failed The API is designed to allow both input and output cookies in all methods where applicable. This lets us pass around arbitrary extra driver specific data between src & dst during migration. Combined with the extra 'Begin' method this lets us pass lease information from source to dst at the start of migration Moving the killing of the source VM out of Perform and into Confirm, means we can now recover if the dst host can't successfully Finish receiving migration data. |
||
---|---|---|
.. | ||
api_extension | ||
devhelp | ||
html | ||
internals | ||
schemas | ||
.gitignore | ||
32favicon.png | ||
api_extension.html.in | ||
api.html.in | ||
apibuild.py | ||
apps.html.in | ||
archdomain.html.in | ||
architecture.fig | ||
architecture.gif | ||
architecture.html.in | ||
archnetwork.html.in | ||
archnode.html.in | ||
archstorage.html.in | ||
auth.html.in | ||
bindings.html.in | ||
bugs.html.in | ||
compiling.html.in | ||
contact.html.in | ||
csharp.html.in | ||
deployment.html.in | ||
devguide.html.in | ||
docs.html.in | ||
downloads.html.in | ||
drivers.html.in | ||
drvesx.html.in | ||
drvlxc.html.in | ||
drvopenvz.html.in | ||
drvqemu.html.in | ||
drvremote.html.in | ||
drvtest.html.in | ||
drvuml.html.in | ||
drvvbox.html.in | ||
drvvmware.html.in | ||
drvxen.html.in | ||
errors.html.in | ||
et.png | ||
firewall.html.in | ||
footer_corner.png | ||
footer_pattern.png | ||
format.html.in | ||
formatcaps.html.in | ||
formatdomain.html.in | ||
formatnetwork.html.in | ||
formatnode.html.in | ||
formatnwfilter.html.in | ||
formatsecret.html.in | ||
formatsnapshot.html.in | ||
formatstorage.html.in | ||
formatstorageencryption.html.in | ||
generic.css | ||
goals.html.in | ||
hacking1.xsl | ||
hacking2.xsl | ||
hacking.html.in | ||
hooks.html.in | ||
hvsupport.pl | ||
index.html.in | ||
index.py | ||
internals.html.in | ||
intro.html.in | ||
java.html.in | ||
library.xen | ||
libvirt-daemon-arch.fig | ||
libvirt-daemon-arch.png | ||
libvirt-driver-arch.fig | ||
libvirt-driver-arch.png | ||
libvirt-header-bg.png | ||
libvirt-header-logo.png | ||
libvirt-net-logical.fig | ||
libvirt-net-logical.png | ||
libvirt-net-physical.fig | ||
libvirt-net-physical.png | ||
libvirt-object-model.fig | ||
libvirt-object-model.png | ||
libvirt.css | ||
libvirtLogo.png | ||
logging.html.in | ||
madeWith.png | ||
main.css | ||
Makefile.am | ||
newapi.xsl | ||
news.html.in | ||
news.xsl | ||
node.fig | ||
node.gif | ||
page.xsl | ||
php.html.in | ||
python.html.in | ||
relatedlinks.html.in | ||
remote.html.in | ||
search.php | ||
site.xsl | ||
sitemap.html.in | ||
storage.html.in | ||
structures.fig | ||
subsite.xsl | ||
testapi.html.in | ||
testsuites.html.in | ||
testtck.html.in | ||
todo.cfg-example | ||
todo.pl | ||
uri.html.in | ||
virshcmdref.html.in | ||
windows.html.in | ||
wrapstring.xsl |