1. 14 2月, 2011 1 次提交
  2. 10 2月, 2011 1 次提交
    • C
      QCOW2: bug fix - read base image beyond its size · e0d9c6f9
      Chunqiang Tang 提交于
      This patch fixes the following bug in QCOW2. For a QCOW2 image that is larger
      than its base image, when handling a read request straddling over the end of the
      base image, the QCOW2 driver attempts to read beyond the end of the base image
      and the request would fail.
      
      This bug was found by Fast Virtual Disk (FVD)'s fully automated testing tool.
      The following test triggered the bug.
      
      dd if=/dev/zero of=/var/ramdisk/truth.raw count=0 bs=1 seek=1098561536
      dd if=/dev/zero of=/var/ramdisk/zero-500M.raw count=0 bs=1 seek=593099264
      ./qemu-img create -f qcow2 -ocluster_size=65536,backing_fmt=blksim -b /var/ramdisk/zero-500M.raw /var/ramdisk/test.qcow2 1098561536
      ./qemu-io --auto --seed=30477694 --truth=/var/ramdisk/truth.raw --format=qcow2 --test=blksim:/var/ramdisk/test.qcow2 --verify_write=true --compare_before=false --compare_after=true --round=100000 --parallel=100 --io_size=10485760 --fail_prob=0 --cancel_prob=0 --instant_qemubh=true
      Signed-off-by: NChunqiang Tang <ctang@us.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      e0d9c6f9
  3. 31 1月, 2011 2 次提交
  4. 24 1月, 2011 2 次提交
  5. 17 12月, 2010 1 次提交
  6. 09 12月, 2010 1 次提交
  7. 22 11月, 2010 1 次提交
  8. 04 11月, 2010 1 次提交
  9. 30 10月, 2010 4 次提交
  10. 23 10月, 2010 2 次提交
  11. 20 10月, 2010 1 次提交
  12. 19 10月, 2010 1 次提交
  13. 03 10月, 2010 1 次提交
  14. 23 9月, 2010 1 次提交
  15. 21 9月, 2010 1 次提交
  16. 08 9月, 2010 1 次提交
  17. 24 8月, 2010 1 次提交
    • B
      Rearrange block headers · 2446333c
      Blue Swirl 提交于
      Changing block.h or blockdev.h resulted in recompiling most objects.
      
      Move DriveInfo typedef and BlockInterfaceType enum definitions
      to qemu-common.h and rearrange blockdev.h use to decrease churn.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      2446333c
  18. 19 6月, 2010 1 次提交
  19. 15 6月, 2010 1 次提交
    • C
      cow: stop using mmap · 893a9cb4
      Christoph Hellwig 提交于
      We don't have an equivalent to mmap in the qemu block API, so read and
      write the bitmap directly.  At least in the dumb implementation added
      in this patch this is a lot less efficient, but it means cow can also
      work on windows, and over nbd or curl.  And it fixes qemu-iotests testcase
      012 which did not work properly due to issues with read-only mmap access.
      
      In addition we can also get rid of the now unused get_mmap_addr function.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      893a9cb4
  20. 14 6月, 2010 1 次提交
  21. 12 5月, 2010 1 次提交
  22. 02 4月, 2010 2 次提交
  23. 30 3月, 2010 2 次提交
  24. 20 3月, 2010 1 次提交
  25. 18 3月, 2010 1 次提交
  26. 19 2月, 2010 1 次提交
  27. 17 2月, 2010 1 次提交
  28. 14 2月, 2010 1 次提交
  29. 27 1月, 2010 3 次提交
  30. 20 1月, 2010 1 次提交
    • K
      Fix QEMU_WARN_UNUSED_RESULT · beb6f0de
      Kevin Wolf 提交于
      Since commit 747bbdf7 QEMU_WARN_UNUSED_RESULT is never defined as it is
      conditional on a define from config-host.h which is included only later.
      Include that file earlier to get the warnings back.
      
      Reactivating it unfortunately leads to some warnings about unused qdev_init
      results. These calls are changed to qdev_init_nofail to avoid build failures.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      beb6f0de