1. 16 3月, 2010 1 次提交
  2. 04 3月, 2010 1 次提交
    • J
      KVM: Rework VCPU state writeback API · ea375f9a
      Jan Kiszka 提交于
      This grand cleanup drops all reset and vmsave/load related
      synchronization points in favor of four(!) generic hooks:
      
      - cpu_synchronize_all_states in qemu_savevm_state_complete
        (initial sync from kernel before vmsave)
      - cpu_synchronize_all_post_init in qemu_loadvm_state
        (writeback after vmload)
      - cpu_synchronize_all_post_init in main after machine init
      - cpu_synchronize_all_post_reset in qemu_system_reset
        (writeback after system reset)
      
      These writeback points + the existing one of VCPU exec after
      cpu_synchronize_state map on three levels of writeback:
      
      - KVM_PUT_RUNTIME_STATE (during runtime, other VCPUs continue to run)
      - KVM_PUT_RESET_STATE   (on synchronous system reset, all VCPUs stopped)
      - KVM_PUT_FULL_STATE    (on init or vmload, all VCPUs stopped as well)
      
      This level is passed to the arch-specific VCPU state writing function
      that will decide which concrete substates need to be written. That way,
      no writer of load, save or reset functions that interact with in-kernel
      KVM states will ever have to worry about synchronization again. That
      also means that a lot of reasons for races, segfaults and deadlocks are
      eliminated.
      
      cpu_synchronize_state remains untouched, just as Anthony suggested. We
      continue to need it before reading or writing of VCPU states that are
      also tracked by in-kernel KVM subsystems.
      
      Consequently, this patch removes many cpu_synchronize_state calls that
      are now redundant, just like remaining explicit register syncs.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      ea375f9a
  3. 27 1月, 2010 1 次提交
    • M
      fix savevm command without id or tag · f139a412
      Marcelo Tosatti 提交于
      savevm without id or tag segfaults in:
      
      (gdb) bt
      #0  0x00007f600a83bf8a in __strcmp_sse42 () from /lib64/libc.so.6
      #1  0x00000000004745b6 in bdrv_snapshot_find (bs=<value optimized out>,
          sn_info=0x7fff996be280, name=0x0) at savevm.c:1631
      #2  0x0000000000475c80 in del_existing_snapshots (name=<value optimized out>,
          mon=<value optimized out>) at savevm.c:1654
      #3  do_savevm (name=<value optimized out>, mon=<value optimized out>)
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      f139a412
  4. 26 12月, 2009 1 次提交
  5. 04 12月, 2009 7 次提交
  6. 03 12月, 2009 1 次提交
  7. 30 11月, 2009 1 次提交
  8. 17 11月, 2009 1 次提交
    • L
      Block live migration · c163b5ca
      lirans@il.ibm.com 提交于
      This patch introduces block migration called during live migration. Block
      are being copied to the destination in an async way. First the code will
      transfer the whole disk and then transfer all dirty blocks accumulted during
      the migration.
      Still need to improve transition from the iterative phase of migration to the
      end phase. For now transition will take place when all blocks transfered once,
      all the dirty blocks will be transfered during the end phase (guest is
      suspended).
      
      Changes from v4:
      - Global variabels moved to a global state structure allocated dynamically.
      - Minor coding style issues.
      - Poll block.c for tracking of dirty blocks instead of manage it here.
      Signed-off-by: NLiran Schour <lirans@il.ibm.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      c163b5ca
  9. 13 11月, 2009 2 次提交
  10. 28 10月, 2009 8 次提交
  11. 15 10月, 2009 1 次提交
  12. 05 10月, 2009 4 次提交
  13. 12 9月, 2009 7 次提交
  14. 11 9月, 2009 1 次提交
    • J
      Remove SaveVM v2 support · bbfe1408
      Juan Quintela 提交于
      In previosu series I remove v2 support for RAM (that was the version that was
      supported when SaveVM v3 appeared).  Now we can't load RAM for any image saved in SaveVM v2, we can as well remove SaveVM v2 entirely.
      
      Note: That SaveVM RAM was at v2 when General SaveVM support went from v2 to v3 makes talking about versions confusing at least
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      bbfe1408
  15. 10 9月, 2009 2 次提交
  16. 04 9月, 2009 1 次提交