1. 26 1月, 2012 1 次提交
  2. 15 12月, 2011 1 次提交
    • P
      block: bdrv_aio_* do not return NULL · ad54ae80
      Paolo Bonzini 提交于
      Initially done with the following semantic patch:
      
      @ rule1 @
      expression E;
      statement S;
      @@
        E =
      (
         bdrv_aio_readv
      |  bdrv_aio_writev
      |  bdrv_aio_flush
      |  bdrv_aio_discard
      |  bdrv_aio_ioctl
      )
           (...);
      (
      - if (E == NULL) { ... }
      |
      - if (E)
          { <... S ...> }
      )
      
      which however missed the occurrence in block/blkverify.c
      (as it should have done), and left behind some unused
      variables.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      ad54ae80
  3. 05 12月, 2011 1 次提交
  4. 02 12月, 2011 1 次提交
  5. 04 11月, 2011 2 次提交
  6. 29 10月, 2011 1 次提交
  7. 21 10月, 2011 1 次提交
  8. 16 9月, 2011 1 次提交
  9. 10 9月, 2011 1 次提交
  10. 21 8月, 2011 1 次提交
  11. 18 7月, 2011 2 次提交
  12. 08 6月, 2011 1 次提交
  13. 31 1月, 2011 1 次提交
  14. 13 1月, 2011 1 次提交
  15. 17 12月, 2010 3 次提交
  16. 22 10月, 2010 1 次提交
  17. 21 9月, 2010 1 次提交
  18. 08 9月, 2010 1 次提交
  19. 31 7月, 2010 1 次提交
  20. 04 6月, 2010 1 次提交
  21. 28 5月, 2010 1 次提交
  22. 22 5月, 2010 1 次提交
  23. 23 4月, 2010 2 次提交
    • C
      block: get rid of the BDRV_O_FILE flag · 6db95603
      Christoph Hellwig 提交于
      BDRV_O_FILE is only used to communicate between bdrv_file_open and bdrv_open.
      It affects two things:  first bdrv_open only searches for protocols using
      find_protocol instead of all image formats and host drivers.  We can easily
      move that to the caller and pass the found driver to bdrv_open.  Second
      it is used to not force a read-write open of a snapshot file.  But we never
      use bdrv_file_open to open snapshots and this behaviour doesn't make sense
      to start with.
      
      qemu-io abused the BDRV_O_FILE for it's growable option, switch it to
      using bdrv_file_open to make sure we only open files as growable were
      we can actually support that.
      
      This patch requires Kevin's "[PATCH] Replace calls of old bdrv_open" to
      be applied first.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      6db95603
    • K
      Replace calls of old bdrv_open · d6e9098e
      Kevin Wolf 提交于
      What is known today as bdrv_open2 becomes the new bdrv_open. All remaining
      callers of the old function are converted to the new one. In some places they
      even know the right format, so they should have used bdrv_open2 from the
      beginning.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      d6e9098e
  24. 28 3月, 2010 1 次提交
  25. 27 3月, 2010 1 次提交
  26. 27 1月, 2010 1 次提交
  27. 20 1月, 2010 1 次提交
  28. 23 12月, 2009 1 次提交
  29. 19 12月, 2009 1 次提交
  30. 13 12月, 2009 1 次提交
  31. 21 11月, 2009 1 次提交
  32. 10 9月, 2009 1 次提交
  33. 28 8月, 2009 1 次提交
    • C
      raw-posix: add Linux native AIO support · 5c6c3a6c
      Christoph Hellwig 提交于
      Now that do have a nicer interface to work against we can add Linux native
      AIO support.  It's an extremly thing layer just setting up an iocb for
      the io_submit system call in the submission path, and registering an
      eventfd with the qemu poll handler to do complete the iocbs directly
      from there.
      
      This started out based on Anthony's earlier AIO patch, but after
      estimated 42,000 rewrites and just as many build system changes
      there's not much left of it.
      
      To enable native kernel aio use the aio=native sub-command on the
      drive command line.  I have also added an option to qemu-io to
      test the aio support without needing a guest.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      5c6c3a6c
  34. 01 8月, 2009 1 次提交
  35. 22 7月, 2009 1 次提交