1. 10 3月, 2014 1 次提交
  2. 25 2月, 2014 1 次提交
  3. 04 2月, 2014 3 次提交
  4. 13 1月, 2014 3 次提交
  5. 07 1月, 2014 1 次提交
    • L
      migration: qmp_migrate(): keep working after syntax error · c9501142
      Luiz Capitulino 提交于
      If a user or QMP client enter a bad syntax for the migrate
      command in QMP/HMP, then the migrate command will never succeed
      from that point on.
      
      For example, if you enter:
      
      (qemu) migrate tcp;0:4444
      migrate: Parameter 'uri' expects a valid migration protocol
      
      Then the migrate command will always fail from now on:
      
      (qemu) migrate tcp:0:4444
      migrate: There's a migration process in progress
      
      The problem is that qmp_migrate() sets the migration status to
      MIG_STATE_SETUP and doesn't reset it on syntax error. This bug
      was introduced by commit 29ae8a41.
      Reviewed-by: NMichael R. Hines <mrhines@us.ibm.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      c9501142
  6. 05 10月, 2013 1 次提交
  7. 24 9月, 2013 1 次提交
  8. 23 8月, 2013 2 次提交
  9. 01 8月, 2013 2 次提交
  10. 29 7月, 2013 2 次提交
    • S
      migration: fix spice migration · 02edd2e7
      Stefan Hajnoczi 提交于
      Commit 29ae8a41 ("rdma: introduce
      MIG_STATE_NONE and change MIG_STATE_SETUP state transition") changed the
      state transitions during migration setup.
      
      Spice used to be notified with MIG_STATE_ACTIVE and it detected this
      using migration_is_active().  Spice is now notified with
      MIG_STATE_SETUP and migration_is_active() no longer works.
      
      Replace migration_is_active() with migration_in_setup() to fix spice
      migration.
      
      Cc: Michael R. Hines <mrhines@us.ibm.com>
      Reviewed-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      02edd2e7
    • S
      migration: notify migration state before starting thread · 9287ac27
      Stefan Hajnoczi 提交于
      The migration thread runs outside the QEMU global mutex when possible.
      Therefore we must notify migration state change *before* starting the
      migration thread.
      
      This allows registered listeners to act before live migration iterations
      begin.  Therefore they can get into a state that allows for live
      migration.  When the migration thread starts everything will be ready.
      
      Without this patch there is a race condition during migration setup,
      depending on whether the migration thread has already transitioned from
      SETUP to ACTIVE state.
      Acked-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      9287ac27
  11. 23 7月, 2013 4 次提交
  12. 19 7月, 2013 1 次提交
  13. 15 7月, 2013 1 次提交
    • K
      migration: Fail migration on bdrv_flush_all() error · 0e1146a7
      Kevin Wolf 提交于
      If bdrv_flush_all() returns an error, there is an inconsistency in the
      view of an image file between the source and the destination host.
      Completing the migration would lead to corruption. Better abort
      migration in this case.
      
      To reproduce this case, try the following (ensures that there is
      something to flush, and then fails that flush):
      
      $ qemu-img create -f qcow2 test.qcow2 1G
      $ cat blkdebug.cfg
      [inject-error]
      event = "flush_to_os"
      errno = "5"
      $ qemu-system-x86_64 -hda blkdebug:blkdebug.cfg:test.qcow2 -monitor stdio
      (qemu) qemu-io ide0-hd0 "write 0 4k"
      (qemu) migrate ...
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      0e1146a7
  14. 13 7月, 2013 1 次提交
  15. 04 7月, 2013 1 次提交
  16. 27 6月, 2013 2 次提交
  17. 01 6月, 2013 1 次提交
  18. 17 5月, 2013 1 次提交
    • M
      Revert "migration: don't account sleep time for calculating bandwidth" · 77417f10
      Michael Roth 提交于
      This reverts commit 7161082c.
      
      Reverting this patch fixes a divide-by-zero error in qemu that can be
      fairly reliably triggered by doing block migration. In this case, the
      configuration/error was:
      
      source: temp/x86_64-softmmu/qemu-system-x86_64 -enable-kvm -L temp-bios
      -M pc-i440fx-1.4 -m 512M -kernel boot/vmlinuz-x86_64 -initrd
      boot/test-initramfs-x86_64.img.gz -vga std -append seed=1234 -drive
      file=disk1.img,if=virtio -drive file=disk2.img,if=virtio -device
      virtio-net-pci,netdev=net0 -netdev user,id=net0 -monitor
      unix:/tmp/vm-hmp.sock,server,nowait -qmp
      unix:/tmp/vm-qmp.sock,server,nowait -vnc :100
      
      16837 Floating point exception(core dumped)
      
      target: temp/x86_64-softmmu/qemu-system-x86_64 -enable-kvm -L temp-bios
      -M pc-i440fx-1.4 -m 512M -kernel boot/vmlinuz-x86_64 -initrd
      boot/test-initramfs-x86_64.img.gz -vga std -append seed=1234 -drive
      file=target_disk1.img,if=virtio -drive file=target_disk2.img,if=virtio
      -device virtio-net-pci,netdev=net0 -netdev user,id=net0 -incoming
      unix:/tmp/migrate.sock -monitor
      unix:/tmp/vm-hmp-incoming.sock,server,nowait -qmp
      unix:/tmp/vm-qmp-incoming.sock,server,nowait -vnc :101
      
      Receiving block device images
      20 %
      21 %
      load of migration failed
      
      This revert potentially re-introduces a bug that was present in 1.4,
      but fixes a prevalent issue with block migration so we should revert
      it for now and take an updated patch later.
      
      Conflicts:
      
      	migration.c
      
      * fixed up to remove logic introduced in 7161082c while leaving
        changes in HEAD intact
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Message-id: 1368739544-31021-1-git-send-email-mdroth@linux.vnet.ibm.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      77417f10
  19. 17 4月, 2013 1 次提交
  20. 02 4月, 2013 1 次提交
  21. 26 3月, 2013 1 次提交
  22. 11 3月, 2013 8 次提交