]> xenbits.xensource.com Git - libvirt.git/commit
qemu: consolidate migration to file code
authorEric Blake <eblake@redhat.com>
Thu, 10 Mar 2011 00:35:13 +0000 (17:35 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 28 Mar 2011 16:26:33 +0000 (10:26 -0600)
commit6034ddd55954251f454ca0a0632d5bb6ef4a5db4
tree7fa7079e21116d1ffa02928bf000e595b84a9b4a
parent80449b325e31a215129d98391b92f85d737e6b35
qemu: consolidate migration to file code

This points out that core dumps (still) don't work for root-squash
NFS, since the fd is not opened correctly.  This patch should not
introduce any functionality change, it is just a refactoring to
avoid duplicated code.

* src/qemu/qemu_migration.h (qemuMigrationToFile): New prototype.
* src/qemu/qemu_migration.c (qemuMigrationToFile): New function.
* src/qemu/qemu_driver.c (qemudDomainSaveFlag, doCoreDump): Use
it.
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_migration.h