1. 04 6月, 2010 1 次提交
  2. 17 5月, 2010 1 次提交
    • K
      ide: Fix ide_dma_cancel · 38d8dfa1
      Kevin Wolf 提交于
      When cancelling a request, bdrv_aio_cancel may decide that it waits for
      completion of a request rather than for cancellation. IDE therefore can't
      abandon its DMA status before calling bdrv_aio_cancel; otherwise the callback
      of a completed request would use invalid data.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      38d8dfa1
  3. 15 5月, 2010 1 次提交
  4. 27 3月, 2010 2 次提交
  5. 09 3月, 2010 1 次提交
  6. 20 2月, 2010 2 次提交
  7. 11 2月, 2010 3 次提交
    • C
      ide: add topology support · 0009baf1
      Christoph Hellwig 提交于
      Export the physical block size in the ATA IDENTIFY command.  The
      other topology values are not supported in ATA so skip them.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      0009baf1
    • C
      block: add topology qdev properties · 428c149b
      Christoph Hellwig 提交于
      Add three new qdev properties to export block topology information to
      the guest.  This is needed to get optimal I/O alignment for RAID arrays
      or SSDs.
      
      The options are:
      
       - physical_block_size to specify the physical block size of the device,
         this is going to increase from 512 bytes to 4096 kilobytes for many
         modern storage devices
       - min_io_size to specify the minimal I/O size without performance impact,
         this is typically set to the RAID chunk size for arrays.
       - opt_io_size to specify the optimal sustained I/O size, this is
         typically the RAID stripe width for arrays.
      
      I decided to not auto-probe these values from blkid which might easily
      be possible as I don't know how to deal with these issues on migration.
      
      Note that we specificly only set the physical_block_size, and not the
      logial one which is the unit all I/O is described in.  The reason for
      that is that IDE does not support increasing the logical block size and
      at last for now I want to stick to one meachnisms in queue and allow
      for easy switching of transports for a given backing image which would
      not be possible if scsi and virtio use real 4k sectors, while ide only
      uses the physical block exponent.
      
      To make this more common for the different block drivers introduce a
      new BlockConf structure holding all common block properties and a
      DEFINE_BLOCK_PROPERTIES macro to add them all together, mirroring
      what is done for network drivers.  Also switch over all block drivers
      to use it, except for the floppy driver which has weird driveA/driveB
      properties and probably won't require any advanced block options ever.
      
      Example usage for a virtio device with 4k physical block size and
      8k optimal I/O size:
      
        -drive file=scratch.img,media=disk,cache=none,id=scratch \
        -device virtio-blk-pci,drive=scratch,physical_block_size=4096,opt_io_size=8192
      
      aliguori: updated patch to take into account BLOCK events
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      428c149b
    • L
      ide: Generate BLOCK_IO_ERROR QMP event · 7ad7e3c3
      Luiz Capitulino 提交于
      Just call bdrv_mon_event() in the right place.
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      7ad7e3c3
  8. 20 1月, 2010 1 次提交
    • G
      ide: device version property · 47c06340
      Gerd Hoffmann 提交于
      This patch adds a new property named 'ver' to ide-drive which allows to
      specify the version which the virtual disk/cdrom should report to the
      guest.  By default this is the qemu version (i.e. 0.12).  usage:
      
        -drive if=none,id=disk,file=...
        -device ide-drive,bus=ide.0,unit=0,drive=disk,ver=42
      
      You can also switch the version for all ide drives using:
      
        -global ide-drive.ver=42
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      47c06340
  9. 04 12月, 2009 4 次提交
  10. 09 11月, 2009 1 次提交
  11. 07 11月, 2009 1 次提交
  12. 28 10月, 2009 4 次提交
  13. 16 9月, 2009 1 次提交
  14. 11 9月, 2009 3 次提交
  15. 04 9月, 2009 2 次提交
  16. 28 8月, 2009 9 次提交
  17. 26 8月, 2009 1 次提交
  18. 24 8月, 2009 1 次提交
  19. 14 8月, 2009 1 次提交