• aliguori's avatar
    Switch the memory savevm handler to be "live" · 475e4277
    aliguori authored
    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: default avatarAnthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5437 c046a42c-6fe2-441c-8c8c-71466251a162
    475e4277
vl.c 250 KB