1. 13 12月, 2011 1 次提交
  2. 05 12月, 2011 1 次提交
  3. 02 12月, 2011 1 次提交
  4. 22 11月, 2011 1 次提交
  5. 02 11月, 2011 1 次提交
  6. 22 10月, 2011 1 次提交
  7. 20 10月, 2011 11 次提交
  8. 19 10月, 2011 1 次提交
  9. 04 10月, 2011 1 次提交
    • L
      RunState: Rename enum values as generated by the QAPI · 0461d5a6
      Luiz Capitulino 提交于
      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_
       - RUN_STATE_SAVEVM to RUN_STATE_SAVE_VM
       - RUN_STATE_IN_MIGRATE to RUN_STATE_INMIGRATE
       - RUN_STATE_PANICKED to RUN_STATE_INTERNAL_ERROR
       - RUN_STATE_POST_MIGRATE to RUN_STATE_POSTMIGRATE
       - RUN_STATE_PRE_LAUNCH to RUN_STATE_PRELAUNCH
       - RUN_STATE_PRE_MIGRATE to RUN_STATE_PREMIGRATE
       - RUN_STATE_RESTORE to RUN_STATE_RESTORE_VM
       - RUN_STATE_PRE_MIGRATE to RUN_STATE_FINISH_MIGRATE
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      0461d5a6
  10. 16 9月, 2011 2 次提交
  11. 06 9月, 2011 1 次提交
    • M
      savevm: Include writable devices with removable media · 07b70bfb
      Markus Armbruster 提交于
      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
      media.
      
      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: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      07b70bfb
  12. 21 8月, 2011 1 次提交
  13. 25 7月, 2011 1 次提交
    • B
      Wrap recv to avoid warnings · 00aa0040
      Blue Swirl 提交于
      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: NAnthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      00aa0040
  14. 20 7月, 2011 1 次提交
  15. 16 6月, 2011 1 次提交
    • J
      Reset system before loadvm · 5a8a49d7
      Jan Kiszka 提交于
      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: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      5a8a49d7
  16. 08 6月, 2011 1 次提交
  17. 16 4月, 2011 2 次提交
  18. 22 3月, 2011 1 次提交
  19. 21 3月, 2011 2 次提交
    • P
      change all other clock references to use nanosecond resolution accessors · 74475455
      Paolo Bonzini 提交于
      This was done with:
      
          sed -i 's/qemu_get_clock\>/qemu_get_clock_ns/' \
              $(git grep -l 'qemu_get_clock\>' )
          sed -i 's/qemu_new_timer\>/qemu_new_timer_ns/' \
              $(git grep -l 'qemu_new_timer\>' )
      
      after checking that get_clock and new_timer never occur twice
      on the same line.  There were no missed occurrences; however, even
      if there had been, they would have been caught by the compiler.
      
      There was exactly one false positive in qemu_run_timers:
      
           -    current_time = qemu_get_clock (clock);
           +    current_time = qemu_get_clock_ns (clock);
      
      which is of course not in this patch.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      74475455
    • P
      change all rt_clock references to use millisecond resolution accessors · 7bd427d8
      Paolo Bonzini 提交于
      This was done with:
      
          sed -i '/get_clock\>.*rt_clock/s/get_clock\>/get_clock_ms/' \
              $(git grep -l 'get_clock\>.*rt_clock' )
          sed -i '/new_timer\>.*rt_clock/s/new_timer\>/new_timer_ms/' \
              $(git grep -l 'new_timer\>.*rt_clock' )
      
      after checking that get_clock and new_timer never occur twice
      on the same line.  There were no missed occurrences; however, even
      if there had been, they would have been caught by the compiler.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      7bd427d8
  20. 15 3月, 2011 1 次提交
  21. 11 3月, 2011 3 次提交
  22. 14 2月, 2011 1 次提交
  23. 04 2月, 2011 1 次提交
  24. 31 1月, 2011 1 次提交
    • M
      blockdev: Fix regression in -drive if=scsi,index=N · 27d6bf40
      Markus Armbruster 提交于
      Before commit 622b520f, index=12 meant bus=1,unit=5.
      
      Since the commit, it means bus=0,unit=12.  The drive is created, but
      not the guest device.  That's because the controllers we use with
      if=scsi drives (lsi53c895a and esp) support only 7 units, and
      scsi_bus_legacy_handle_cmdline() ignores drives with unit numbers
      exceeding that limit.
      
      Changing the mapping of index to bus, unit is a regression.  Breaking
      -drive invocations that used to work just makes it worse.
      
      Revert the part of commit 622b520f that causes this, and clean up
      some.
      
      Note that the fix only affects if=scsi.  You can still put more than 7
      units on a SCSI bus with -device & friends.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      27d6bf40
  25. 18 1月, 2011 1 次提交
    • A
      savevm: Fix no_migrate · dc912121
      Alex Williamson 提交于
      The no_migrate save state flag is currently only checked in the
      last phase of migration.  This means that we potentially waste
      a lot of time and bandwidth with the live state handlers before
      we ever check the no_migrate flags.  The error message printed
      when we catch a non-migratable device doesn't get printed for
      a detached migration.  And, no_migrate does nothing to prevent
      an incoming migration to a target that includes a non-migratable
      device.  This attempts to fix all of these.
      
      One notable difference in behavior is that an outgoing migration
      now checks for non-migratable devices before ever connecting to
      the target system.  This means the target will remain listening
      rather than exit from failure.
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      dc912121