• This patch introduces a command line parameter and monitor command for starting
    a live migration.  The next patch will provide an example of how to use these
    parameters.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5476 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • This patch introduces a buffered QEMUFile wrapper.  This allows QEMUFile's to be
    rate limited.  It also makes it easier to implement a QEMUFile that is
    asynchronous since the current QEMUFile API requires that all reads and writes
    be synchronous.
    
    The only real non-obvious part of the API is the "frozen" concept.  If the
    backend returns EAGAIN, the QEMUFile is said to be "frozen".  This means no
    additional output will be sent to the backend until the file is unfrozen.
    qemu_file_put_notify can be used to unfreeze a frozen file.
    
    A synchronous interface is also provided to wait for an unfreeze event.  This is
    used during the final part of live migration when the VM is no longer running.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5475 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • This patch allows QEMUFile's read and write operations to return 
    negative error codes.  This is necessary to detect things like closed 
    streams during live migration.
    
    It also removes unused code for QEMUFileFD write path.  Finally, it 
    makes sure to avoid attempting to flush an output buffer if the file
    is only being used for input.  This was spotted by Uri Lublin.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5474 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »






  • 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
    aliguori authored
     
    Browse Code »