From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755201Ab2ATQpu (ORCPT ); Fri, 20 Jan 2012 11:45:50 -0500 Received: from mail-wi0-f174.google.com ([209.85.212.174]:43112 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753940Ab2ATQpr (ORCPT ); Fri, 20 Jan 2012 11:45:47 -0500 From: Paolo Bonzini To: linux-kernel@vger.kernel.org Cc: linux-scsi@vger.kernel.org, Rusty Russell , kvm@vger.kernel.org, "Michael S . Tsirkin" , Stefan Hajnoczi , Mike Christie Subject: [PATCH v4 0/3] virtio-scsi driver Date: Fri, 20 Jan 2012 17:45:36 +0100 Message-Id: <1327077939-7084-1-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.7.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the first implementation of the virtio-scsi driver, a virtual HBA that will be supported by KVM. It implements a subset of the spec, in particular it does not implement asynchronous notifications for either LUN reset/removal/addition or CD-ROM media events, but it is already functional and usable. Other matching bits: - spec at http://people.redhat.com/pbonzini/virtio-spec.pdf - QEMU implementation at git://github.com/bonzini/qemu.git, branch virtio-scsi Please review. I would like this to be included in 3.3, since the possibility of regressions is obviously zero. Paolo Bonzini (3): virtio-scsi: first version virtio-scsi: add error handling virtio-scsi: add power management support v3->v4: renamed VIRTIO_SCSI_S_UNDERRUN to VIRTIO_SCSI_S_OVERRUN; fixed 32-bit compilation; added power management support; adjusted calls to virtqueue_add_buf drivers/scsi/Kconfig | 8 + drivers/scsi/Makefile | 1 + drivers/scsi/virtio_scsi.c | 594 +++++++++++++++++++++++++++++++++++++++++++ include/linux/virtio_ids.h | 1 + include/linux/virtio_scsi.h | 114 +++++++++ 5 files changed, 718 insertions(+), 0 deletions(-) create mode 100644 drivers/scsi/virtio_scsi.c create mode 100644 include/linux/virtio_scsi.h