1. 18 Jun, 2012 1 commit
  2. 15 Apr, 2012 1 commit
  3. 19 Mar, 2012 1 commit
    • Stefano Stabellini's avatar
      Introduce "xen-save-devices-state" · a7ae8355
      Stefano Stabellini authored
      - add an "is_ram" flag to SaveStateEntry;
      - register_savevm_live sets is_ram for live_savevm devices;
      - introduce a "xen-save-devices-state" QAPI command that can be used to save
      the state of all devices, but not the RAM or the block devices of the
      Changes in v8:
      - rename save-devices-state to xen-save-devices-state.
      Changes in v7:
      - rename save_devices to save-devices-state.
      Changes in v6:
      - remove the is_ram parameter from register_savevm_live and sets is_ram
      if the device is a live_savevm device;
      - introduce save_devices as a QAPI command, write a better description
      for it;
      - fix CODING_STYLE;
      - introduce a new doc to explain the save format used by save_devices.
      Signed-off-by: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Reviewed-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      Acked-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
  4. 17 Mar, 2012 1 commit
  5. 15 Mar, 2012 2 commits
    • Luiz Capitulino's avatar
      qapi: Convert migrate · e1c37d0e
      Luiz Capitulino authored
      The migrate command is one of those commands where HMP and QMP completely
      mix up together. This made the conversion to the QAPI (which separates the
      command into QMP and HMP parts) a bit difficult.
      The first important change to be noticed is that this commit completes the
      removal of the Monitor object from migration code, started by the previous
      Another important and tricky change is about supporting the non-detached
      mode. That is, if the user doesn't pass '-d' the migrate command will lock
      the monitor and will only release it when migration is finished.
      To support this in the new HMP command (hmp_migrate()), it is necessary
      to create a timer which runs every second and checks if the migration is
      still active. If it is, the timer callback will re-schedule itself to run
      one second in the future. If the migration has already finished, the
      monitor lock is released and the user can use it normally.
      All these changes should be transparent to the user.
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
    • Luiz Capitulino's avatar
      Purge migration of (almost) everything to do with monitors · 539de124
      Luiz Capitulino authored
      The Monitor object is passed back and forth within the migration/savevm
      code so that it can print errors and progress to the user.
      However, that approach assumes a HMP monitor, being completely invalid
      in QMP.
      This commit drops almost every single usage of the Monitor object, all
      monitor_printf() calls have been converted into DPRINTF() ones.
      There are a few remaining Monitor objects, those are going to be dropped
      by the next commit.
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
  6. 08 Jan, 2012 1 commit
  7. 04 Jan, 2012 1 commit
    • Avi Kivity's avatar
      vmstate, memory: decouple vmstate from memory API · c5705a77
      Avi Kivity authored
      Currently creating a memory region automatically registers it for
      live migration.  This differs from other state (which is enumerated
      in a VMStateDescription structure) and ties the live migration code
      into the memory core.
      Decouple the two by introducing a separate API, vmstate_register_ram(),
      for registering a RAM block for migration.  Currently the same
      implementation is reused, but later it can be moved into a separate list,
      and registrations can be moved to VMStateDescription blocks.
      Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
  8. 15 Dec, 2011 1 commit
  9. 12 Dec, 2011 4 commits
  10. 05 Dec, 2011 1 commit
  11. 02 Dec, 2011 1 commit
  12. 21 Nov, 2011 1 commit
  13. 01 Nov, 2011 1 commit
  14. 21 Oct, 2011 1 commit
  15. 20 Oct, 2011 11 commits
  16. 19 Oct, 2011 1 commit
  17. 04 Oct, 2011 1 commit
    • Luiz Capitulino's avatar
      RunState: Rename enum values as generated by the QAPI · 0461d5a6
      Luiz Capitulino authored
      Next commit will convert the query-status command to use the
      RunState type as generated by the QAPI.
      In order to "transparently" replace the current enum by the QAPI
      one, we have to make some changes to some enum values.
      As the changes are simple renames, I'll do them in one shot. The
      changes are:
       - Rename the prefix from RSTATE_ to RUN_STATE_
      Signed-off-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
  18. 15 Sep, 2011 2 commits
  19. 06 Sep, 2011 1 commit
    • Markus Armbruster's avatar
      savevm: Include writable devices with removable media · 07b70bfb
      Markus Armbruster authored
      savevm and loadvm silently ignore block devices with removable media,
      such as floppies and SD cards.  Rolling back a VM to a previous
      checkpoint will *not* roll back writes to block devices with removable
      Moreover, bdrv_is_removable() is a confused mess, and wrong in at
      least one case: it considers "-drive if=xen,media=cdrom -M xenpv"
      removable.  It'll be cleaned up later in this series.
      Read-only block devices are also ignored, but that's okay.
      Fix by ignoring only read-only block devices and empty block devices.
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
  20. 21 Aug, 2011 1 commit
  21. 25 Jul, 2011 1 commit
    • Blue Swirl's avatar
      Wrap recv to avoid warnings · 00aa0040
      Blue Swirl authored
      Avoid warnings like these by wrapping recv():
        CC    slirp/ip_icmp.o
      /src/qemu/slirp/ip_icmp.c: In function 'icmp_receive':
      /src/qemu/slirp/ip_icmp.c:418:5: error: passing argument 2 of 'recv' from incompatible pointer type [-Werror]
      /usr/local/lib/gcc/i686-mingw32msvc/4.6.0/../../../../i686-mingw32msvc/include/winsock2.h:547:32: note: expected 'char *' but argument is of type 'struct icmp *'
      Remove also casts used to avoid warnings.
      Reviewed-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
  22. 20 Jul, 2011 1 commit
  23. 16 Jun, 2011 1 commit
    • Jan Kiszka's avatar
      Reset system before loadvm · 5a8a49d7
      Jan Kiszka authored
      In case we load the vmstate during incoming migration, we start from a
      clean, default machine state as we went through system reset before. But
      if we load from a snapshot, the machine can be in any state. That can
      cause troubles if loading an older image which does not carry all state
      information the executing QEMU requires. Hardly any device takes care of
      this scenario.
      However, fixing this is trivial. We just need to issue a system reset
      during loadvm as well.
      Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
  24. 08 Jun, 2011 1 commit
  25. 16 Apr, 2011 1 commit