1. 13 6月, 2017 2 次提交
  2. 09 6月, 2017 1 次提交
  3. 02 6月, 2017 2 次提交
  4. 19 5月, 2017 3 次提交
  5. 21 4月, 2017 1 次提交
  6. 16 3月, 2017 1 次提交
  7. 13 3月, 2017 1 次提交
  8. 01 3月, 2017 3 次提交
  9. 08 6月, 2016 3 次提交
  10. 26 5月, 2016 1 次提交
    • K
      block: Fix bdrv_next() memory leak · 88be7b4b
      Kevin Wolf 提交于
      The bdrv_next() users all leaked the BdrvNextIterator after completing
      the iteration. Simply changing bdrv_next() to free the iterator before
      returning NULL at the end of list doesn't work because some callers exit
      the loop before looking at all BDSes.
      
      This patch moves the BdrvNextIterator from the heap to the stack of
      the caller and switches to a bdrv_first()/bdrv_next() interface for
      initialising the iterator.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      88be7b4b
  11. 19 5月, 2016 1 次提交
  12. 23 3月, 2016 2 次提交
    • V
      util: move declarations out of qemu-common.h · f348b6d1
      Veronia Bahaa 提交于
      Move declarations out of qemu-common.h for functions declared in
      utils/ files: e.g. include/qemu/path.h for utils/path.c.
      Move inline functions out of qemu-common.h and into new files (e.g.
      include/qemu/bcd.h)
      Signed-off-by: NVeronia Bahaa <veroniabahaa@gmail.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      f348b6d1
    • M
      include/qemu/osdep.h: Don't include qapi/error.h · da34e65c
      Markus Armbruster 提交于
      Commit 57cb38b3 included qapi/error.h into qemu/osdep.h to get the
      Error typedef.  Since then, we've moved to include qemu/osdep.h
      everywhere.  Its file comment explains: "To avoid getting into
      possible circular include dependencies, this file should not include
      any other QEMU headers, with the exceptions of config-host.h,
      compiler.h, os-posix.h and os-win32.h, all of which are doing a
      similar job to this file and are under similar constraints."
      qapi/error.h doesn't do a similar job, and it doesn't adhere to
      similar constraints: it includes qapi-types.h.  That's in excess of
      100KiB of crap most .c files don't actually need.
      
      Add the typedef to qemu/typedefs.h, and include that instead of
      qapi/error.h.  Include qapi/error.h in .c files that need it and don't
      get it now.  Include qapi-types.h in qom/object.h for uint16List.
      
      Update scripts/clean-includes accordingly.  Update it further to match
      reality: replace config.h by config-target.h, add sysemu/os-posix.h,
      sysemu/os-win32.h.  Update the list of includes in the qemu/osdep.h
      comment quoted above similarly.
      
      This reduces the number of objects depending on qapi/error.h from "all
      of them" to less than a third.  Unfortunately, the number depending on
      qapi-types.h shrinks only a little.  More work is needed for that one.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      [Fix compilation without the spice devel packages. - Paolo]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      da34e65c
  13. 25 2月, 2016 1 次提交
  14. 22 2月, 2016 1 次提交
  15. 29 1月, 2016 1 次提交
  16. 25 11月, 2015 1 次提交
  17. 10 11月, 2015 2 次提交
  18. 04 11月, 2015 3 次提交
    • L
      migration: code clean up · 6ad2a215
      Liang Li 提交于
      Just clean up code, no behavior change.
      Signed-off-by: NLiang Li <liang.z.li@intel.com>
      Reviewed-by: Juan Quintela <quintela@redhat.com>al3
      Reviewed-by: Amit Shah <amit.shah@redhat.com>al3
      Signed-off-by: Juan Quintela <quintela@redhat.com>al3
      6ad2a215
    • L
      migration: rename cancel to cleanup in SaveVMHandles · d1a8548c
      Liang Li 提交于
      'cleanup' seems more appropriate than 'cancel'.
      Signed-off-by: NLiang Li <liang.z.li@intel.com>
      Reviewed-by: Juan Quintela <quintela@redhat.com>al3
      Reviewed-by: Amit Shah <amit.shah@redhat.com>al3
      Signed-off-by: Juan Quintela <quintela@redhat.com>al3
      d1a8548c
    • L
      migration: defer migration_end & blk_mig_cleanup · 94f5a437
      Liang Li 提交于
      Because of the patch 3ea3b7fa9af067982f34b of kvm, which introduces a
      lazy collapsing of small sptes into large sptes mechanism, now
      migration_end() is a time consuming operation because it calls
      memroy_global_dirty_log_stop(), which will trigger the dropping of small
      sptes operation and takes about dozens of milliseconds, so call
      migration_end() before all the vmsate data has already been transferred
      to the destination will prolong VM downtime. This operation should be
      deferred after all the data has been transferred to the destination.
      
      blk_mig_cleanup() can be deferred too.
      
      For a VM with 8G RAM, this patch can reduce the VM downtime about 30 ms.
      Signed-off-by: NLiang Li <liang.z.li@intel.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: Juan Quintela <quintela@redhat.com>al3
      Reviewed-by: Amit Shah <amit.shah@redhat.com>al3
      Signed-off-by: Juan Quintela <quintela@redhat.com>al3
      94f5a437
  19. 24 10月, 2015 1 次提交
  20. 07 7月, 2015 1 次提交
  21. 28 4月, 2015 2 次提交
  22. 17 3月, 2015 1 次提交
  23. 13 1月, 2015 2 次提交
    • V
      migration/block: fix pending() return value · 04636dc4
      Vladimir Sementsov-Ogievskiy 提交于
      Because of wrong return value of .save_live_pending() in
      migration/block.c, migration finishes before the whole disk is
      transferred. Such situation occurs when the migration process is fast
      enough, for example when source and dest are on the same host.
      
      If in the bulk phase we return something < max_size, we will skip
      transferring the tail of the device. Currently we have "set pending to
      BLOCK_SIZE if it is zero" for bulk phase, but there no guarantee, that
      it will be < max_size.
      
      True approach is to return, for example, max_size+1 when we are in the
      bulk phase.
      Signed-off-by: NVladimir Sementsov-Ogievskiy <vsementsov@parallels.com>
      Message-id: 1419933856-4018-2-git-send-email-vsementsov@parallels.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      04636dc4
    • V
      block: fix spoiling all dirty bitmaps by mirror and migration · c4237dfa
      Vladimir Sementsov-Ogievskiy 提交于
      Mirror and migration use dirty bitmaps for their purposes, and since
      commit [block: per caller dirty bitmap] they use their own bitmaps, not
      the global one. But they use old functions bdrv_set_dirty and
      bdrv_reset_dirty, which change all dirty bitmaps.
      
      Named dirty bitmaps series by Fam and Snow are affected: mirroring and
      migration will spoil all (not related to this mirroring or migration)
      named dirty bitmaps.
      
      This patch fixes this by adding bdrv_set_dirty_bitmap and
      bdrv_reset_dirty_bitmap, which change concrete bitmap. Also, to prevent
      such mistakes in future, old functions bdrv_(set,reset)_dirty are made
      static, for internal block usage.
      Signed-off-by: NVladimir Sementsov-Ogievskiy <vsementsov@parallels.com>
      CC: John Snow <jsnow@redhat.com>
      CC: Fam Zheng <famz@redhat.com>
      CC: Denis V. Lunev <den@openvz.org>
      CC: Stefan Hajnoczi <stefanha@redhat.com>
      CC: Kevin Wolf <kwolf@redhat.com>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      Message-id: 1417081246-3593-1-git-send-email-vsementsov@parallels.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      c4237dfa
  24. 16 12月, 2014 2 次提交
  25. 12 12月, 2014 1 次提交