qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 00/10] SCSI scatter/gather support
@ 2011-08-04 17:14 Paolo Bonzini
  2011-08-04 17:14 ` [Qemu-devel] [PATCH 01/10] dma-helpers: allow including from target-independent code Paolo Bonzini
                   ` (11 more replies)
  0 siblings, 12 replies; 22+ messages in thread
From: Paolo Bonzini @ 2011-08-04 17:14 UTC (permalink / raw)
  To: qemu-devel

Hi,

this is the version of SCSI scatter/gather based on the existing
DMA helpers infrastructure.

The infrastructure required a little update because I need to
know the residual amount of data upon short transfers.  To this
end, my choice was to make QEMUSGList mutable and track the
current position in there.  Any other ideas are welcome, the
reason for this choice is explained in patch 2.

The patches are quite self-contained, but they depend on the
changes I posted yesterday.

Patch 11 is the sample vmw_pvscsi device model that I used to
test the code.

Paolo Bonzini (11):
  dma-helpers: allow including from target-independent code
  dma-helpers: track position in the QEMUSGList
  dma-helpers: rewrite completion/cancellation
  dma-helpers: prepare for adding dma_buf_* functions
  dma-helpers: add dma_buf_read and dma_buf_write
  scsi: pass residual amount to command_complete
  scsi: add scatter/gather functionality
  scsi-disk: commonize iovec creation between reads and writes
  scsi-disk: lazily allocate bounce buffer
  scsi-disk: enable scatter/gather functionality
  sample pvscsi driver with s/g support

 Makefile.objs                      |    1 +
 cutils.c                           |    8 +-
 default-configs/i386-softmmu.mak   |    1 +
 default-configs/pci.mak            |    1 +
 default-configs/x86_64-softmmu.mak |    1 +
 dma-helpers.c                      |  231 +++++++--
 dma.h                              |   27 +-
 hw/esp.c                           |    5 +-
 hw/lsi53c895a.c                    |    4 +-
 hw/pci.h                           |    1 +
 hw/scsi-bus.c                      |   38 ++-
 hw/scsi-disk.c                     |  117 +++--
 hw/scsi.h                          |    7 +-
 hw/spapr_vscsi.c                   |    4 +-
 hw/usb-msd.c                       |    4 +-
 hw/vmw_pvscsi.c                    |  904 ++++++++++++++++++++++++++++++++++++
 hw/vmw_pvscsi.h                    |  389 ++++++++++++++++
 qemu-common.h                      |    1 +
 trace-events                       |   15 +
 19 files changed, 1646 insertions(+), 113 deletions(-)
 create mode 100644 hw/vmw_pvscsi.c
 create mode 100644 hw/vmw_pvscsi.h

-- 
1.7.6

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2011-08-11 20:07 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-04 17:14 [Qemu-devel] [PATCH 00/10] SCSI scatter/gather support Paolo Bonzini
2011-08-04 17:14 ` [Qemu-devel] [PATCH 01/10] dma-helpers: allow including from target-independent code Paolo Bonzini
2011-08-04 17:14 ` [Qemu-devel] [PATCH 02/10] dma-helpers: track position in the QEMUSGList Paolo Bonzini
2011-08-04 17:14 ` [Qemu-devel] [PATCH 03/10] dma-helpers: rewrite completion/cancellation Paolo Bonzini
2011-08-04 17:14 ` [Qemu-devel] [PATCH 04/10] dma-helpers: prepare for adding dma_buf_* functions Paolo Bonzini
2011-08-04 17:14 ` [Qemu-devel] [PATCH 05/10] dma-helpers: add dma_buf_read and dma_buf_write Paolo Bonzini
2011-08-11  7:58   ` Stefan Hajnoczi
2011-08-11 12:10     ` Paolo Bonzini
2011-08-11 13:29       ` Stefan Hajnoczi
2011-08-11 14:24         ` Paolo Bonzini
2011-08-11 14:37           ` Kevin Wolf
2011-08-11 15:05             ` Paolo Bonzini
2011-08-11 15:12               ` Kevin Wolf
2011-08-11 15:27                 ` Paolo Bonzini
2011-08-11 20:06                   ` Stefan Hajnoczi
2011-08-04 17:14 ` [Qemu-devel] [PATCH 06/10] scsi: pass residual amount to command_complete Paolo Bonzini
2011-08-04 17:14 ` [Qemu-devel] [PATCH 07/10] scsi: add scatter/gather functionality Paolo Bonzini
2011-08-04 17:14 ` [Qemu-devel] [PATCH 08/10] scsi-disk: commonize iovec creation between reads and writes Paolo Bonzini
2011-08-04 17:14 ` [Qemu-devel] [PATCH 09/10] scsi-disk: lazily allocate bounce buffer Paolo Bonzini
2011-08-04 17:14 ` [Qemu-devel] [PATCH 10/10] scsi-disk: enable scatter/gather functionality Paolo Bonzini
2011-08-04 17:14 ` [Qemu-devel] [PATCH 11/11] sample pvscsi driver with s/g support Paolo Bonzini
2011-08-11  7:57 ` [Qemu-devel] [PATCH 00/10] SCSI scatter/gather support Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).