1. 26 5月, 2016 3 次提交
  2. 29 1月, 2016 1 次提交
  3. 10 11月, 2015 3 次提交
  4. 20 10月, 2015 1 次提交
    • D
      coroutine: move into libqemuutil.a library · 10817bf0
      Daniel P. Berrange 提交于
      The coroutine files are currently referenced by the block-obj-y
      variable. The coroutine functionality though is already used by
      more than just the block code. eg migration code uses coroutine
      yield. In the future the I/O channel code will also use the
      coroutine yield functionality. Since the coroutine code is nicely
      self-contained it can be easily built as part of the libqemuutil.a
      library, making it widely available.
      
      The headers are also moved into include/qemu, instead of the
      include/block directory, since they are now part of the util
      codebase, and the impl was never in the block/ directory
      either.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      10817bf0
  5. 29 9月, 2015 2 次提交
  6. 07 7月, 2015 1 次提交
  7. 23 6月, 2015 1 次提交
  8. 12 6月, 2015 2 次提交
  9. 06 5月, 2015 1 次提交
  10. 16 3月, 2015 1 次提交
  11. 06 2月, 2015 1 次提交
    • A
      qemu-file: Add fast ftell code path · 97221400
      Alexander Graf 提交于
      For ftell we flush the output buffer to ensure that we don't have anything
      lingering in our internal buffers. This is a very safe thing to do.
      
      However, with the dynamic size measurement that the dynamic vmstate
      description will bring this would turn out quite slow.
      
      Instead, we can fast path this specific measurement and just take the
      internal buffers into account when telling the kernel our position.
      
      I'm sure I overlooked some corner cases where this doesn't work, so
      instead of tuning the safe, existing version, this patch adds a fast
      variant of ftell that gets used by the dynamic vmstate description code
      which isn't critical when it fails.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      97221400
  12. 16 1月, 2015 1 次提交
  13. 15 1月, 2015 1 次提交
  14. 16 12月, 2014 3 次提交
  15. 14 10月, 2014 6 次提交
  16. 06 5月, 2014 1 次提交
  17. 27 3月, 2014 1 次提交
  18. 09 3月, 2014 1 次提交
  19. 25 2月, 2014 1 次提交
    • J
      qemu_file: use fwrite() correctly · aded6539
      Juan Quintela 提交于
      fwrite() returns the number of items written.  But when there is one
      error, it can return a short write.
      
      In the particular bug that I was tracking, I did a migration to a
      read-only filesystem.  And it was able to finish the migration
      correctly.  fwrite() never returned a negative error code, nor zero,
      always 4096. (migration writes chunks of about 14000 bytes).  And it
      was able to "complete" the migration with success (yes, reading the
      file was a bit more difficult).
      
      To add insult to injury, if your amount of memory was big enough (12GB
      on my case), it overwrote some important structure, and from them,
      malloc failed.  This check makes the problem go away.
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      aded6539
  20. 13 1月, 2014 1 次提交