]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
Switch the memory savevm handler to be "live"
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 6 Oct 2008 20:21:51 +0000 (20:21 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 6 Oct 2008 20:21:51 +0000 (20:21 +0000)
commit475e4277721eca10e98bd926fa1d3ebc74d0ac35
tree19382473b062c841833810eb6ecbdcd59303f2f0
parente18231a3ffe12a1f2004964594c7dd8ba3f78f33
Switch the memory savevm handler to be "live"

This patch replaces the static memory savevm/loadvm handler with a "live" one.
This handler is used even if performing a non-live migration.

The key difference between this handler and the previous is that each page is
prefixed with the address of the page.  The QEMUFile rate limiting code, in
combination with the live migration dirty tracking bits, is used to determine
which pages should be sent and how many should be sent.

The live save code "converges" when the number of dirty pages reaches a fixed
amount.  Currently, this is 10 pages.  This is something that should eventually
be derived from whatever the bandwidth limitation is.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5437 c046a42c-6fe2-441c-8c8c-71466251a162
vl.c