1. 08 2月, 2010 1 次提交
  2. 07 2月, 2010 1 次提交
  3. 27 1月, 2010 1 次提交
  4. 20 1月, 2010 1 次提交
  5. 14 1月, 2010 2 次提交
    • K
      qemu-img rebase · 3e85c6fd
      Kevin Wolf 提交于
      This adds a rebase subcommand to qemu-img which allows to change the backing
      file of an image.
      
      In default mode, both the current and the new backing file need to exist, and
      after the rebase, the COW image is guaranteed to have the same guest visible
      content as before. To achieve this, old and new backing file are compared and,
      if necessary, data is copied from the old backing file into the COW image.
      
      With -u an unsafe mode is enabled that doesn't require the backing files to
      exist. It merely changes the backing file reference in the COW image. This is
      useful for renaming or moving the backing file. The user is responsible to make
      sure that the new backing file has no changes compared to the old one, or
      corruption may occur.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      3e85c6fd
    • K
      block: Introduce BDRV_O_NO_BACKING · b783e409
      Kevin Wolf 提交于
      If an image references a backing file that doesn't exist, qemu-img info fails
      to open this image. Exactly in this case the info would be valuable, though:
      the user might want to find out which file is missing.
      
      This patch introduces a BDRV_O_NO_BACKING flag to ignore the backing file when
      opening the image. qemu-img info is the first user and provides info now even
      if the backing file is invalid.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      b783e409
  6. 04 12月, 2009 3 次提交
  7. 09 11月, 2009 2 次提交
  8. 05 10月, 2009 1 次提交
    • K
      qcow2: Increase maximum cluster size to 2 MB · 80ee15a6
      Kevin Wolf 提交于
      This patch increases the maximum qcow2 cluster size to 2 MB. Starting with 128k
      clusters, L2 tables span 2 GB or more of virtual disk space, causing 32 bit
      truncation and wraparound of signed integers. Therefore some variables need to
      use a larger data type.
      
      While being at reviewing data types, change some integers that are used for
      array indices to unsigned. In some places they were checked against some upper
      limit but not for negative values. This could avoid potential segfaults with
      corrupted qcow2 images.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      80ee15a6
  9. 02 10月, 2009 2 次提交
  10. 22 7月, 2009 1 次提交
  11. 07 6月, 2009 1 次提交
  12. 06 6月, 2009 2 次提交
  13. 22 5月, 2009 3 次提交
  14. 15 5月, 2009 1 次提交
  15. 14 5月, 2009 1 次提交
  16. 22 4月, 2009 1 次提交
  17. 15 4月, 2009 1 次提交
  18. 06 4月, 2009 1 次提交
    • A
      Add host_device support to qemu-img. (Nolan Leake) · 93c65b47
      aliguori 提交于
      This patch allows the use a host_device as the destination for "qemu-img
      convert".
      
      I added a ->bdrv_create function host_device.  It merely verifies that
      the device exists and is large enough.
      
      A check is needed in the qemu-img convert loop to ensure that we write
      out all 0 sectors to the host_device.  Otherwise they end up with stale
      garbage where all zero sectors were expected.
      
      I also made the check against bdrv_is_allocated enabled for everything
      _except_ host devices, since there is no point in making the block
      backend write a bunch of zeros just so that we can memcmp them
      immediately afterwards.  Host devices can't benefit from this because
      there is no way to differentiate between a sector being unallocated
      because it was never written, or because it was written with all zeros
      and then made a trip through qemu-img convert.
      
      Finally, there is an unrelated fix for a typo in the error message
      printed if the destination device does not support ->bdrv_create.
      
      Signed-off-by: Nolan Leake <nolan <at> sigbus.net>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6978 c046a42c-6fe2-441c-8c8c-71466251a162
      93c65b47
  19. 29 3月, 2009 1 次提交
  20. 12 3月, 2009 1 次提交
  21. 09 3月, 2009 3 次提交
  22. 10 2月, 2009 1 次提交
  23. 02 2月, 2009 1 次提交
  24. 25 1月, 2009 1 次提交
    • B
      Synch code, help and docs · d2c639d6
      blueswir1 提交于
      Rearrange code, help printout and docs so that they are in the same
      (hopefully more logical) order for easier maintenance.
      
      Add help and docs for undocumented options.
      
      Reformat slightly for more consistent help output.
      
      Add comments to encourage better synchronization in the future.
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6432 c046a42c-6fe2-441c-8c8c-71466251a162
      d2c639d6
  25. 24 1月, 2009 1 次提交
  26. 23 1月, 2009 1 次提交
  27. 16 1月, 2009 1 次提交
  28. 15 1月, 2009 1 次提交
    • B
      Add noreturn function attribute · 7d99a001
      blueswir1 提交于
      Introduce noreturn attribute and attach it to cpu_loop_exit as well as
      interrupt/exception helpers for i386. This avoids a bunch of gcc4
      warnings.
      
      [ Note that this patch comes with a workaround to include qemu-common.h
      even in cases where is currently causes conflicts with dyngen-exec.h.
      I've been told that these conflicts will get resolved in the future
      (/me will try to have a look as well - as time permits). ]
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6303 c046a42c-6fe2-441c-8c8c-71466251a162
      7d99a001
  29. 08 1月, 2009 1 次提交
  30. 01 12月, 2008 1 次提交