1. 10 9月, 2009 1 次提交
    • K
      qcow2: Fix metadata preallocation · ea80b906
      Kevin Wolf 提交于
      The wrong version of the preallocation patch has been applied, so this is the
      remaining diff.
      
      We can't use truncate to grow the image file to the right size because we don't
      know if metadata has been written after the last data cluster. In this case
      truncate would shrink the file and destroy its metadata. Write a zero sector at
      the end of the virtual disk instead to ensure that the file is big enough.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      ea80b906
  2. 29 8月, 2009 1 次提交
  3. 28 8月, 2009 1 次提交
    • K
      qcow2: Metadata preallocation · a35e1c17
      Kevin Wolf 提交于
      This introduces a qemu-img create option for qcow2 which allows the metadata to
      be preallocated, i.e. clusters are reserved in the refcount table and L1/L2
      tables, but no data is written to them. Metadata is quite small, so this
      happens in almost no time.
      
      Especially with qcow2 on virtio this helps to gain a bit of performance during
      the initial writes. However, as soon as create a snapshot, we're back to the
      normal slow speed, obviously. So this isn't the real fix, but kind of a cheat
      while we're still having trouble with qcow2 on virtio.
      
      Note that the option is disabled by default and needs to be specified
      explicitly using qemu-img create -f qcow2 -o preallocation=metadata.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a35e1c17
  4. 16 7月, 2009 1 次提交
  5. 11 7月, 2009 1 次提交
  6. 10 7月, 2009 1 次提交
  7. 29 6月, 2009 1 次提交
  8. 17 6月, 2009 5 次提交
  9. 06 6月, 2009 1 次提交
  10. 27 5月, 2009 4 次提交
  11. 22 5月, 2009 2 次提交
  12. 21 5月, 2009 1 次提交
  13. 15 5月, 2009 2 次提交
  14. 14 5月, 2009 1 次提交
  15. 09 5月, 2009 1 次提交
  16. 23 4月, 2009 1 次提交
    • A
      implement qemu_blockalign (Stefano Stabellini) · e268ca52
      aliguori 提交于
      this patch adds a buffer_alignment field to BlockDriverState and
      implements a qemu_blockalign function that uses that field to allocate a
      memory aligned buffer to be used by the block driver.
      buffer_alignment is initialized to 512 but each block driver can set
      a different value (at the moment none of them do).
      This patch modifies ide.c, block-qcow.c, block-qcow2.c and block.c to
      use qemu_blockalign instead of qemu_memalign.
      There is only one place left that still uses qemu_memalign to allocate
      buffers used by block drivers that is posix-aio-compat:handle_aiocb_rw
      because it is not possible to get the BlockDriverState from that
      function. However I think it is not important because posix-aio-compat
      already deals with driver specific code so it is supposed to know its
      own needs.
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7229 c046a42c-6fe2-441c-8c8c-71466251a162
      e268ca52
  17. 22 4月, 2009 4 次提交
  18. 18 4月, 2009 1 次提交
  19. 14 4月, 2009 1 次提交
  20. 08 4月, 2009 2 次提交
  21. 06 4月, 2009 3 次提交
  22. 29 3月, 2009 3 次提交
  23. 12 3月, 2009 1 次提交