1. 16 2月, 2015 2 次提交
    • M
      qemu-io: Use BlockBackend · 4c7b7e9b
      Max Reitz 提交于
      qemu-io should behave like a guest, therefore it should use BlockBackend
      to access the block layer.
      
      There are a couple of places where that is infeasible: First, the
      bdrv_debug_* functions could theoretically be mirrored in the
      BlockBackend, but since these are functions internal to the block layer,
      they should not be visible externally (qemu-io as a test tool is exempt
      from this).
      
      Second, bdrv_get_info() and bdrv_get_specific_info() work on a single
      BDS alone, therefore they should stay BDS-specific.
      
      Third, bdrv_is_allocated() mainly works on a single BDS as well. Some
      data may be passed through from the BDS's file (if sectors which are
      apparently allocated in the file are not really allocated there but just
      zero).
      
      [Fixed conflicts around block_acct_start() usage from Fam Zheng's
      "qemu-io: Account IO by aio_read and aio_write" commit.  Use
      BlockBackend and blk_get_stats() instead of BlockDriverState.
      --Stefan]
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 1423162705-32065-14-git-send-email-mreitz@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      4c7b7e9b
    • F
      qemu-io: Account IO by aio_read and aio_write · a91f9584
      Fam Zheng 提交于
      This will enable accounting of aio requests issued from qemu-io aio
      read/write commands.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      Message-id: 1422586186-9925-2-git-send-email-famz@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      a91f9584
  2. 12 12月, 2014 1 次提交
  3. 23 10月, 2014 1 次提交
  4. 20 8月, 2014 3 次提交
  5. 09 7月, 2014 1 次提交
  6. 19 3月, 2014 1 次提交
  7. 13 3月, 2014 1 次提交
  8. 25 1月, 2014 1 次提交
  9. 22 1月, 2014 1 次提交
  10. 29 11月, 2013 1 次提交
  11. 28 11月, 2013 1 次提交
  12. 11 10月, 2013 1 次提交
  13. 06 9月, 2013 1 次提交
  14. 23 8月, 2013 1 次提交
  15. 06 6月, 2013 10 次提交
  16. 24 5月, 2013 1 次提交
    • K
      qemu-io: Fix 'map' output · a00e81e9
      Kevin Wolf 提交于
      The output of the 'map' command in qemu-io used to directly resemble
      bdrv_is_allocated() and could contain many lines for small chunks that
      all have the same allocation status. After this patch, they will be
      coalesced into a single output line for a large chunk.
      
      As a side effect, the command gains some error handling.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      a00e81e9
  17. 23 3月, 2013 1 次提交
  18. 15 3月, 2013 1 次提交
  19. 23 2月, 2013 1 次提交
    • P
      block: implement BDRV_O_UNMAP · 9e8f1835
      Paolo Bonzini 提交于
      It is better to present homogeneous hardware independent of the storage
      technology that is chosen on the host, hence we make discard a host
      parameter; the user can choose whether to pass it down to the image
      format and protocol, or to ignore it.
      
      Using DISCARD with filesystems can cause very severe fragmentation, so it
      is left default-off for now.  This can change later when we implement the
      "anchor" operation for efficient management of preallocated files.
      
      There is still one choice to make: whether DISCARD has an effect on the
      dirty bitmap or not.  I chose yes, though there is a disadvantage: if
      the guest is buggy and issues discards for data that is in use, there
      will be no way to migrate storage for that guest without downgrading
      the machine type to an older one.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      9e8f1835
  20. 19 12月, 2012 2 次提交
  21. 12 12月, 2012 1 次提交
    • K
      qemu-io: Add AIO debugging commands · 41c695c7
      Kevin Wolf 提交于
      This makes the blkdebug suspend/resume functionality available in
      qemu-io. Use it like this:
      
        $ ./qemu-io blkdebug::/tmp/test.qcow2
        qemu-io> break write_aio req_a
        qemu-io> aio_write 0 4k
        qemu-io> blkdebug: Suspended request 'req_a'
        qemu-io> resume req_a
        blkdebug: Resuming request 'req_a'
        qemu-io> wrote 4096/4096 bytes at offset 0
        4 KiB, 1 ops; 0:00:30.71 (133.359788 bytes/sec and 0.0326 ops/sec)
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      41c695c7
  22. 11 12月, 2012 1 次提交
  23. 15 11月, 2012 1 次提交
  24. 06 11月, 2012 1 次提交
  25. 07 8月, 2012 1 次提交
  26. 17 7月, 2012 1 次提交
  27. 10 5月, 2012 1 次提交