qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] [v5] Megasas HBA Emulation
@ 2011-07-01 15:35 Hannes Reinecke
  2011-07-01 15:35 ` [Qemu-devel] [PATCH 1/3] iov: Update parameter usage in iov_(to|from)_buf() Hannes Reinecke
  0 siblings, 1 reply; 21+ messages in thread
From: Hannes Reinecke @ 2011-07-01 15:35 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Hannes Reinecke, Stefan Haynoczi, kvm,
	Alexander Graf

Hi all,

after getting various feedback from Paolo, Stefan, and Alexander
I've respun the patches.

Chances since the previous version:
- iov: Update parameter usage in iov_(to|from)_buf()
  Updated description for the first patch and clarified the usage
  Renamed arguments for io_XXX for clarification
- scsi: Add 'hba_private' to SCSIRequest
  Kept 'tag' for tracing and just add 'hba_private' as an
  additional field as per request from Paolo
- megasas: checkpatch.pl fixes and update to work with the
  changed interface in scsi_req_new(). Also included the
  suggested fixes from Alex.

Hannes Reinecke (3):
  iov: Update parameter usage in iov_(to|from)_buf()
  scsi: Add 'hba_private' to SCSIRequest
  megasas: LSI Megaraid SAS emulation

 Makefile.objs           |    1 +
 default-configs/pci.mak |    1 +
 hw/esp.c                |    2 +-
 hw/lsi53c895a.c         |   22 +-
 hw/megasas.c            | 1920 +++++++++++++++++++++++++++++++++++++++++++++++
 hw/mfi.h                | 1197 +++++++++++++++++++++++++++++
 hw/pci_ids.h            |    3 +-
 hw/scsi-bus.c           |    9 +-
 hw/scsi-disk.c          |    4 +-
 hw/scsi-generic.c       |    5 +-
 hw/scsi.h               |   10 +-
 hw/spapr_vscsi.c        |   29 +-
 hw/usb-msd.c            |    9 +-
 hw/virtio-net.c         |    2 +-
 hw/virtio-serial-bus.c  |    2 +-
 iov.c                   |   49 +-
 iov.h                   |   10 +-
 17 files changed, 3192 insertions(+), 83 deletions(-)
 create mode 100644 hw/megasas.c
 create mode 100644 hw/mfi.h

-- 
1.7.3.4

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [Qemu-devel] [PATCH 0/3] [v4] Megasas HBA emulation
@ 2011-07-01  7:42 Hannes Reinecke
  2011-07-01  7:42 ` [Qemu-devel] [PATCH 1/3] iov: Add 'offset' parameter to iov_to_buf() Hannes Reinecke
  0 siblings, 1 reply; 21+ messages in thread
From: Hannes Reinecke @ 2011-07-01  7:42 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Hannes Reinecke, Stefan Haynoczi, kvm,
	Alexander Graf

Hi all,

thanks to Paolo and Stefan most of the SCSI patches are now in, so
I've made the next attempt of submitting my Megaraid SAS HBA emulation.

To do so, I've done two additional patches, both should be valid cleanups.

- Replace 'tag' by 'hba_private'
  The SCSIRequest structure has a 'tag', which is being used by the
  drivers to match the SCSIRequest to the internal request structure.
  The only driver actually to benefit from this is the lsi53c895a
  driver, everyone else either leaves it blank or uses some internal
  numberting here.
  So this patch converts the 'tag' to a 'hba_private' pointer, which
  allows the driver to store a pointer to the internal structure
  directly within the SCSIRequest. This saves the lookup and an
  additional field in the driver internal request structure.
- Add an 'offset' parameter to iov_to_buf()
  iov_from_buf() has it, but iov_to_buf() has it not. But we'll be
  needing it if the iovec is larger than the buffer. So there.

And, of course, the megasas driver itself. Which has been modified
to work with the new interface; otherwise there have been no changes
to the previous submission.

Hannes Reinecke (3):
  iov: Add 'offset' parameter to iov_to_buf()
  scsi: replace 'tag' with 'hba_private' pointer
  megasas: LSI Megaraid SAS emulation

 Makefile.objs           |    1 +
 default-configs/pci.mak |    1 +
 hw/esp.c                |    2 +-
 hw/lsi53c895a.c         |   17 +-
 hw/megasas.c            | 1923 +++++++++++++++++++++++++++++++++++++++++++++++
 hw/mfi.h                | 1197 +++++++++++++++++++++++++++++
 hw/pci_ids.h            |    3 +-
 hw/scsi-bus.c           |   22 +-
 hw/scsi-disk.c          |    5 +-
 hw/scsi-generic.c       |    4 +-
 hw/scsi.h               |    8 +-
 hw/spapr_vscsi.c        |   41 +-
 hw/usb-msd.c            |   10 +-
 hw/virtio-net.c         |    2 +-
 hw/virtio-serial-bus.c  |    2 +-
 iov.c                   |   23 +-
 iov.h                   |    2 +-
 trace-events            |   14 +-
 18 files changed, 3193 insertions(+), 84 deletions(-)
 create mode 100644 hw/megasas.c
 create mode 100644 hw/mfi.h

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

end of thread, other threads:[~2011-07-04 12:56 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-01 15:35 [Qemu-devel] [PATCH 0/3] [v5] Megasas HBA Emulation Hannes Reinecke
2011-07-01 15:35 ` [Qemu-devel] [PATCH 1/3] iov: Update parameter usage in iov_(to|from)_buf() Hannes Reinecke
2011-07-01 15:35   ` [Qemu-devel] [PATCH 2/3] scsi: Add 'hba_private' to SCSIRequest Hannes Reinecke
2011-07-01 15:35     ` [Qemu-devel] [PATCH 3/3] megasas: LSI Megaraid SAS emulation Hannes Reinecke
2011-07-01 16:42       ` Alexander Graf
2011-07-02 13:50         ` Hannes Reinecke
2011-07-02 12:28           ` Alexander Graf
2011-07-03 14:36           ` Paolo Bonzini
2011-07-04  6:13             ` Hannes Reinecke
2011-07-04  6:34               ` Paolo Bonzini
2011-07-04  7:26                 ` Hannes Reinecke
2011-07-04 10:29                   ` Paolo Bonzini
2011-07-04 12:52                     ` Hannes Reinecke
2011-07-04 12:56                       ` Paolo Bonzini
2011-07-02 16:14       ` Stefan Hajnoczi
2011-07-04  8:37         ` Hannes Reinecke
2011-07-01 15:57     ` [Qemu-devel] [PATCH 2/3] scsi: Add 'hba_private' to SCSIRequest Paolo Bonzini
2011-07-01 16:19   ` [Qemu-devel] [PATCH 1/3] iov: Update parameter usage in iov_(to|from)_buf() Alexander Graf
  -- strict thread matches above, loose matches on Subject: below --
2011-07-01  7:42 [Qemu-devel] [PATCH 0/3] [v4] Megasas HBA emulation Hannes Reinecke
2011-07-01  7:42 ` [Qemu-devel] [PATCH 1/3] iov: Add 'offset' parameter to iov_to_buf() Hannes Reinecke
2011-07-01  7:42   ` [Qemu-devel] [PATCH 2/3] scsi: replace 'tag' with 'hba_private' pointer Hannes Reinecke
2011-07-01  7:42     ` [Qemu-devel] [PATCH 3/3] megasas: LSI Megaraid SAS emulation Hannes Reinecke
2011-07-01  9:16       ` Alexander Graf
2011-07-03  8:09         ` Michael S. Tsirkin

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).