]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Support passing QEMU lock state to dest during migration
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 18 May 2011 16:34:21 +0000 (12:34 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 2 Jun 2011 09:54:01 +0000 (10:54 +0100)
commit7474560befe412cb46d644a717141e7801d998ae
tree715a595ff92536cfa9d95d79b5f8ef5032ee3118
parent12317957ecd6c37a2fb16275dcdeeacfe25c517e
Support passing QEMU lock state to dest during migration

Some lock managers associate state with leases, allowing a process
to temporarily release its leases, and re-acquire them later, safe
in the knowledge that no other process has acquired + released the
leases in between.

This is already used between suspend/resume operations, and must
also be used across migration. This passes the lockstate in the
migration cookie. If the lock manager uses lockstate, then it
becomes compulsory to use the migration v3 protocol to get the
cookie support.

* src/qemu/qemu_driver.c: Validate that migration v2 protocol is
  not used if lock manager needs state transfer
* src/qemu/qemu_migration.c: Transfer lock state in migration
  cookie XML
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c