1. 02 Jan, 2013 1 commit
    • Michael Tokarev's avatar
      savevm.c: cleanup system includes · 74e91370
      Michael Tokarev authored
      savevm.c suffers from the same problem as some other files.
      Some years ago savevm.c was created from vl.c, moving some
      code from there into a separate file.  At that time, all
      includes were just copied from vl.c to savevm.c, without
      checking which ones are needed and which are not.
      But actually most of that stuff is _not_ needed.  More, some
      stuff is wrong, for example, *BSD #ifdef'ery around <util.h>
      vs <libutil.h> - for one, it fails to build on Debian/kFreebsd.
      Just remove all this.  Maybe there's a possibility to clean
      it up further - like removing <windows.h> (and maybe including
      winsock.h for htons etc), and maybe it's possible to remove
      some internal #includes too, but I didn't check this.
      While at it, remove duplicate #include of qemu/timer.h.
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
  2. 20 Dec, 2012 2 commits
    • Juan Quintela's avatar
      savevm: New save live migration method: pending · e4ed1541
      Juan Quintela authored
      Code just now does (simplified for clarity)
          if (qemu_savevm_state_iterate(s->file) == 1) {
      Problem here is that qemu_savevm_state_iterate() returns 1 when it
      knows that remaining memory to sent takes less than max downtime.
      But this means that we could end spending 2x max_downtime, one
      downtime in qemu_savevm_iterate, and the other in
      Changed code to:
          pending_size = qemu_savevm_state_pending(s->file, max_size);
          DPRINTF("pending size %lu max %lu\n", pending_size, max_size);
          if (pending_size >= max_size) {
              ret = qemu_savevm_state_iterate(s->file);
           } else {
      So what we do is: at current network speed, we calculate the maximum
      number of bytes we can sent: max_size.
      Then we ask every save_live section how much they have pending.  If
      they are less than max_size, we move to complete phase, otherwise we
      do an iterate one.
      This makes things much simpler, because now individual sections don't
      have to caluclate the bandwidth (it was implossible to do right from
      Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
      Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    • Juan Quintela's avatar
      migration: make writes blocking · dd217b87
      Juan Quintela authored
      Move all the writes to the migration_thread, and make writings
      blocking.  Notice that are still using the iothread for everything
      that we do.
      Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
  3. 19 Dec, 2012 7 commits
  4. 02 Nov, 2012 6 commits
  5. 30 Oct, 2012 1 commit
  6. 17 Oct, 2012 9 commits
  7. 05 Oct, 2012 1 commit
  8. 15 Aug, 2012 2 commits
  9. 08 Aug, 2012 1 commit
  10. 20 Jul, 2012 6 commits
  11. 29 Jun, 2012 3 commits
  12. 18 Jun, 2012 1 commit