• Extend kvm_physical_sync_dirty_bitmap() so that is can sync across
    multiple slots. Useful for updating the whole dirty log during
    migration. Moreover, properly pass down errors the whole call chain.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »
  • The buffer passed to KVM_GET_DIRTY_LOG requires one bit per page. Fix
    the size calculation in kvm_physical_sync_dirty_bitmap accordingly,
    avoiding allocation of extremly oversized buffers.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »
  • Introduce a global dirty logging flag that enforces logging for all
    slots. This can be used by the live migration code to enable/disable
    global logging withouth destroying the per-slot setting.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »
  • Only apply the workaround for broken slot joining in KVM when the
    capability was not found that signals the corresponding fix existence.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »
  • Add an option to specify the cluster size of a newly created qcow2 image.
    Default is 4k which is the same value that was hard-coded before.
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Kevin Wolf authored
     
    Browse Code »
  • This is part two of the qemu-img conversion. This really works the same as the
    previous conversion of qemu-img create: It introduces a new -o option for the
    generic approach and adds the old-style options to this option set.
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Kevin Wolf authored
     
    Browse Code »
  • This patch changes qemu-img to actually use the new bdrv_create interface. It
    translates the old-style qemu-img options which have been bdrv_create2
    parameters or flags so far to option structures. As the generic approach, it
    introduces an -o option which accepts any parameter the driver knows.
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Kevin Wolf authored
     
    Browse Code »
  • Now we can make use of the newly introduced option structures. Instead of
    having bdrv_create carry more and more parameters (which are format specific in
    most cases), just pass a option structure as defined by the driver itself.
    
    bdrv_create2() contains an emulation of the old interface to simplify the
    transition.
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Kevin Wolf authored
     
    Browse Code »
  • This patch creates a new header file and the corresponding implementation file
    for parsing of parameter strings for options (like used in -drive). Part of
    this is code moved from vl.c (so qemu-img can use it later).
    
    The idea is to have a data structure describing all accepted parameters. When
    parsing a parameter string, the structure is copied and filled with the
    parameter values.
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Kevin Wolf authored
     
    Browse Code »
  • This patch allow us to call migrate_set_speed on running
    migrations. This should allow mgmt tools to increase the allocated
    bandwidth of a running migration if there is no progress, and they
    really want the migration to succeed.
    
    Signed-off-by: Glauber Costa <glommer@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Glauber Costa authored
     
    Browse Code »
  • This patch converts the current callers of qemu_fopen_ops().
    
    Signed-off-by: Glauber Costa <glommer@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Glauber Costa authored
     
    Browse Code »
  • This patch augments info migrate output with status about:
    * ram bytes remaining
    * ram bytes transferred
    * ram bytes total
    
    This should be enough for management tools to realize
    whether or not there is progress in migration. We can
    add more information later on, if the need arrives
    
    [v2: fixes bytes_transferred type]
    
    Signed-off-by: Glauber Costa <glommer@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Glauber Costa authored
     
    Browse Code »
  • Use timer to separate them in time.
    
    Signed-off-by: Gleb Natapov <gleb@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gleb Natapov authored
     
    Browse Code »
  • Signed-off-by: Gleb Natapov <gleb@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gleb Natapov authored
     
    Browse Code »
  • Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
     
    Browse Code »
  • From Paul Brook:
    
     "the fdc is tied to the ISA DMA engine. We don't currently have a target
      independent method of handling inter-device data transfer."
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
     
    Browse Code »
  • This reverts commit ec6bd8de.
    
    This broke any target that uses virtio.  Virtio devices live in libhw and
    without whole-archive, the constructors will never be called for virtio.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
     
    Browse Code »