1. 02 11月, 2011 8 次提交
  2. 01 11月, 2011 12 次提交
  3. 31 10月, 2011 13 次提交
  4. 30 10月, 2011 5 次提交
  5. 29 10月, 2011 2 次提交
    • P
      scsi-disk: add scsi-block for device passthrough · 336a6915
      Paolo Bonzini 提交于
      scsi-block is a new device that supports device passthrough of Linux
      block devices (i.e. /dev/sda, not /dev/sg0).  It uses SG_IO for commands
      other than I/O commands, and regular AIO read/writes for I/O commands.
      Besides being simpler to configure (no mapping required to scsi-generic
      device names), this removes the need for a large bounce buffer and,
      in the future, will get scatter/gather support for free from scsi-disk.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      336a6915
    • P
      scsi: push request restart to SCSIDevice · 71544d30
      Paolo Bonzini 提交于
      The request restart mechanism is generic and could be reused for
      scsi-generic.  In the meanwhile, pushing it to SCSIDevice avoids
      that scsi_dma_restart_bh looks at SCSIGenericReqs when working on
      a scsi-block device.
      
      The code is the same that is already in hw/scsi-disk.c, with
      the type flags replaced by req->cmd.mode and a more generic way to
      requeue SCSI_XFER_NONE commands.
      
      I also added a missing call to qemu_del_vm_change_state_handler.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      71544d30