]> xenbits.xensource.com Git - libvirt.git/commit
save: wire up trivial save/restore flags implementations
authorEric Blake <eblake@redhat.com>
Sat, 9 Jul 2011 02:55:29 +0000 (20:55 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 21 Jul 2011 22:24:05 +0000 (16:24 -0600)
commitb1083a4c533f16af13b980b46ec738141cc002e8
treef7327d0815f962a78c011dd502af32726ae374f4
parent170034570879541cb0f7acea2ced105641e45220
save: wire up trivial save/restore flags implementations

For all hypervisors that support save and restore, the new API
now performs the same functions as the old.

VBox is excluded from this list, because its existing domainsave
is broken (there is no corresponding domainrestore, and there
is no control over the filename used in the save).  A later
patch should change vbox to use its implementation for
managedsave, and teach start to use managedsave results.

* src/libxl/libxl_driver.c (libxlDomainSave): Move guts...
(libxlDomainSaveFlags): ...to new function.
(libxlDomainRestore): Move guts...
(libxlDomainRestoreFlags): ...to new function.
* src/test/test_driver.c (testDomainSave, testDomainSaveFlags)
(testDomainRestore, testDomainRestoreFlags): Likewise.
* src/xen/xen_driver.c (xenUnifiedDomainSave)
(xenUnifiedDomainSaveFlags, xenUnifiedDomainRestore)
(xenUnifiedDomainRestoreFlags): Likewise.
* src/qemu/qemu_driver.c (qemudDomainSave, qemudDomainRestore):
Rename and move guts.
(qemuDomainSave, qemuDomainSaveFlags, qemuDomainRestore)
(qemuDomainRestoreFlags): ...here.
(qemudDomainSaveFlag): Rename...
(qemuDomainSaveInternal): ...to this, and update callers.
src/libxl/libxl_driver.c
src/qemu/qemu_driver.c
src/test/test_driver.c
src/xen/xen_driver.c