All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5][v6] Megasas HBA emulation
@ 2011-07-05 11:03 ` Hannes Reinecke
  0 siblings, 0 replies; 32+ messages in thread
From: Hannes Reinecke @ 2011-07-05 11:03 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Stefan Haynoczi, kvm, Alexander Graf, Hannes Reinecke

Hi all,

as Alex Graf reminded me the driver needed some more bugfixing
to be done. I've found some issues and also moved the megasas
emulation over to the new trace infrastructure.
Driver works for me now and a full installation of
openSUSE-12.1 works perfectly.
I've also included the fixes suggested by Stefan Hajnoczi.
And during debugging I've found two minor issues in scsi_disk.c

Changes since v5:
- scsi-disk: Fixup debugging statement
  A debugging statement wasn't converted. Do so now.
- scsi-disk: Mask out serial number EVPD
  The 'serial' parameter to scsi-disk is optional. So if it's
  not set we should mask it out in the list of supported EVPD
  pages and not return '0' here.
- megasas: Use tracing infrastructure instead of DPRINTF
- megasas: Use new PCI infrastructure
- megasas: Check for iovec mapping failure
  cpu_map_physical_memory() might fail, so we need to check for
  it when mapping iovecs.
- megasas: Trace scsi buffer overflow
  The transfer length as specified in the SCSI command might
  disagree with the length of the iovec. We should be tracing
  these issues.
- megasas: Reset frames after init firmware
  When receiving an INIT FIRMWARE command we need reset all
  frames, otherwise some frames might point to invalid memory.

Chances since v4:
- 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 (5):
  iov: Update parameter usage in iov_(to|from)_buf()
  scsi: Add 'hba_private' to SCSIRequest
  scsi-disk: Fixup debugging statement
  scsi-disk: Mask out serial number EVPD
  megasas: LSI Megaraid SAS emulation

 Makefile.objs           |    1 +
 default-configs/pci.mak |    1 +
 hw/esp.c                |    2 +-
 hw/lsi53c895a.c         |   22 +-
 hw/megasas.c            | 1950 +++++++++++++++++++++++++++++++++++++++++++++++
 hw/mfi.h                | 1197 +++++++++++++++++++++++++++++
 hw/pci_ids.h            |    3 +-
 hw/scsi-bus.c           |    9 +-
 hw/scsi-disk.c          |   21 +-
 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 +-
 trace-events            |   71 ++
 18 files changed, 3306 insertions(+), 87 deletions(-)
 create mode 100644 hw/megasas.c
 create mode 100644 hw/mfi.h

-- 
1.7.3.4


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

end of thread, other threads:[~2011-07-06  8:40 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-05 11:03 [PATCH 0/5][v6] Megasas HBA emulation Hannes Reinecke
2011-07-05 11:03 ` [Qemu-devel] " Hannes Reinecke
2011-07-05 11:03 ` [PATCH 1/5] iov: Update parameter usage in iov_(to|from)_buf() Hannes Reinecke
2011-07-05 11:03   ` [Qemu-devel] " Hannes Reinecke
2011-07-05 11:03   ` [PATCH 2/5] scsi: Add 'hba_private' to SCSIRequest Hannes Reinecke
2011-07-05 11:03     ` [Qemu-devel] " Hannes Reinecke
2011-07-05 11:03     ` [PATCH 3/5] scsi-disk: Fixup debugging statement Hannes Reinecke
2011-07-05 11:03       ` [Qemu-devel] " Hannes Reinecke
2011-07-05 11:03       ` [PATCH 4/5] scsi-disk: Mask out serial number EVPD Hannes Reinecke
2011-07-05 11:03         ` [Qemu-devel] " Hannes Reinecke
2011-07-05 11:03         ` [PATCH 5/5] megasas: LSI Megaraid SAS emulation Hannes Reinecke
2011-07-05 11:03           ` [Qemu-devel] " Hannes Reinecke
2011-07-05 13:06           ` Alexander Graf
2011-07-05 13:06             ` [Qemu-devel] " Alexander Graf
2011-07-05 13:38           ` Alexander Graf
2011-07-05 13:38             ` [Qemu-devel] " Alexander Graf
2011-07-05 13:59             ` Paolo Bonzini
2011-07-05 13:59               ` [Qemu-devel] " Paolo Bonzini
2011-07-05 14:05               ` Alexander Graf
2011-07-05 14:05                 ` [Qemu-devel] " Alexander Graf
2011-07-05 15:21           ` Stefan Hajnoczi
2011-07-05 15:21             ` Stefan Hajnoczi
2011-07-06  6:20             ` Hannes Reinecke
2011-07-06  6:20               ` Hannes Reinecke
2011-07-06  8:39               ` Paolo Bonzini
2011-07-06  8:39                 ` Paolo Bonzini
2011-07-05 11:06         ` [PATCH 4/5] scsi-disk: Mask out serial number EVPD Paolo Bonzini
2011-07-05 11:06           ` [Qemu-devel] " Paolo Bonzini
2011-07-05 11:05       ` [PATCH 3/5] scsi-disk: Fixup debugging statement Paolo Bonzini
2011-07-05 11:05         ` [Qemu-devel] " Paolo Bonzini
2011-07-05 13:01 ` [PATCH 0/5][v6] Megasas HBA emulation Alexander Graf
2011-07-05 13:01   ` [Qemu-devel] " Alexander Graf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.