1. 25 9月, 2014 1 次提交
  2. 22 9月, 2014 1 次提交
    • S
      block: delete cow block driver · 550830f9
      Stefan Hajnoczi 提交于
      This patch removes support for the cow file format.
      
      Normally we do not break backwards compatibility but in this case there
      is no impact and it is the most logical option.  Extraordinary claims
      require extraordinary evidence so I will show why removing the cow block
      driver is the right thing to do.
      
      The cow file format is the disk image format for Usermode Linux, a way
      of running a Linux system in userspace.  The performance of UML was
      never great and it was hacky, but it enjoyed some popularity before
      hardware virtualization support became mainstream.
      
      QEMU's block/cow.c is supposed to read this image file format.
      Unfortunately the file format was underspecified:
      
      1. Earlier Linux versions used the MAXPATHLEN constant for the backing
         filename field.  The value of MAXPATHLEN can change, so Linux
         switched to a 4096 literal but QEMU has a 1024 literal.
      
      2. Padding was not used on the header struct (both in the Linux kernel
         and in QEMU) so the struct layout varied across architectures.  In
         particular, i386 and x86_64 were different due to int64_t alignment
         differences.  Linux now uses __attribute__((packed)), QEMU does not.
      
      Therefore:
      
      1. QEMU cow images do not conform to the Linux cow image file format.
      
      2. cow images cannot be shared between different host architectures.
      
      This means QEMU cow images are useless and QEMU has not had bug reports
      from users actually hitting these issues.
      
      Let's get rid of this thing, it serves no purpose and no one will be
      affected.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1410877464-20481-1-git-send-email-stefanha@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      550830f9
  3. 15 8月, 2014 1 次提交
  4. 28 6月, 2014 1 次提交
    • M
      iotests: Allow out-of-tree run · e8f8624d
      Max Reitz 提交于
      As out-of-tree builds are preferred for qemu, running the qemu-iotests
      in that out-of-tree build should be supported as well. To do so, a
      symbolic link has to be created pointing to the check script in the
      source directory. That script will check whether it has been run through
      a symlink, and if so, will assume it is run in the build tree. All
      output and temporary operations performed by iotests are then redirected
      here and, unless specified otherwise by the user, QEMU_PROG etc. will be
      set to paths appropriate for the build tree.
      
      Also, drop making every test case executable if it is not yet, as this
      would modify the source tree which is not desired for out-of-tree runs
      and should be fixed in the repository anyway.
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      e8f8624d
  5. 01 4月, 2014 3 次提交
  6. 09 2月, 2014 1 次提交
  7. 04 12月, 2013 3 次提交
  8. 07 11月, 2013 1 次提交
  9. 11 10月, 2013 1 次提交
    • J
      block: qemu-iotests for vhdx, read sample dynamic image · 89e91181
      Jeff Cody 提交于
      This adds the VHDX format to the qemu-iotests format, and adds
      a read test.  The test reads from an existing sample image, that
      was created with Hyper-V under Windwos Server 2012.
      
      The image file is a 1GB dynamic image, with 32MB blocks.
      
      The pattern 0xa5 exists from 0MB-33MB (past a block size boundary)
      
      The pattern 0x96 exists from 33MB-66MB (past another block boundary,
      and leaving a partial blank block)
      
      From 66MB-1024MB, all reads should return 0.
      
      Although 1GB dynamic image with 66MB of data, the bzip2'ed image
      file size is only 874 bytes.
      
      This also adds in the IMGFMT_GENERIC flag, so r/o images can be
      tested (e.g. ./check -vhdx) without failing tests that assume
      r/w support.
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      89e91181
  10. 06 9月, 2013 1 次提交
  11. 15 4月, 2013 1 次提交
  12. 15 11月, 2012 1 次提交
  13. 17 7月, 2012 1 次提交
  14. 20 4月, 2012 1 次提交
  15. 23 2月, 2012 2 次提交
  16. 22 2月, 2012 4 次提交