Received: from eggs.gnu.org ([140.186.70.92]:42852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHIo3-0003zj-7L for qemu-devel@nongnu.org; Tue, 03 May 2011 12:50:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHIo2-0000Bl-3i for qemu-devel@nongnu.org; Tue, 03 May 2011 12:50:39 -0400 Received: from mail-ww0-f53.google.com ([74.125.82.53]:35653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHIo1-0000Bg-VY for qemu-devel@nongnu.org; Tue, 03 May 2011 12:50:38 -0400 Received: by wwj40 with SMTP id 40so289608wwj.10 for ; Tue, 03 May 2011 09:50:37 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 3 May 2011 18:50:12 +0200 Message-Id: <1304441432-27434-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 00/20] SCSI subsystem improvements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This series includes the following improvements to the SCSI subsystem: 1) introduction of SCSIBusOps that generalize the existing command_complete callback; 2) widespread use of the SCSIRequest abstraction, with simpler memory management (refcounting) and with various common idioms converted into simple C functions instead of duplicating them all over the place; 3) support for autosense. Some patches are from Hannes Reinecke's megasas patchset posted last November, forward ported and applied to the new vSCSI controller as well. Testing: - RHEL6.1 install complete to scsi-disk with lsi, from scsi-generic CD - iozone run with lsi on scsi-disk target - RHEL6.1 install to usb-msd from IDE CD hangs (probably) when formatting the USB disk, gets I/O errors even earlier without the series - RHEL6.1 install started with vscsi, from scsi-generic CD including playing with opening/closing the tray (to exercise autosense), plan to do a complete test later if no one beats me to it esp is only compile tested. Hannes Reinecke (4): scsi: Use 'SCSIRequest' directly scsi: Update sense code handling scsi: Implement 'get_sense' callback scsi-disk: add data direction checking Paolo Bonzini (16): scsi: add tracing of scsi requests scsi-generic: Remove bogus double complete scsi: introduce scsi_req_data scsi: introduce SCSIBusOps scsi: reference-count requests lsi: extract lsi_find_by_tag scsi: commonize purging requests scsi: introduce scsi_req_abort scsi: introduce scsi_req_cancel scsi: use scsi_req_complete scsi: do not call send_command directly scsi: introduce scsi_req_new scsi: introduce scsi_req_kick scsi: introduce scsi_req_get_buf scsi: make write_data return void scsi-generic: Handle queue full hw/esp.c | 61 ++++++++----- hw/lsi53c895a.c | 158 ++++++++++++++++++++------------ hw/scsi-bus.c | 203 +++++++++++++++++++++++++++++++++++++--- hw/scsi-disk.c | 264 ++++++++++++++++++++++------------------------------- hw/scsi-generic.c | 218 +++++++++++++++++++++----------------------- hw/scsi.h | 84 ++++++++++++++--- hw/spapr_vscsi.c | 91 +++++++++++-------- hw/usb-msd.c | 55 +++++++----- trace-events | 8 ++ 9 files changed, 697 insertions(+), 445 deletions(-) -- 1.7.4.4