linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] virtio-scsi driver
@ 2012-01-20 16:45 Paolo Bonzini
  2012-01-20 16:45 ` [PATCH v4 1/3] virtio-scsi: first version Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Paolo Bonzini @ 2012-01-20 16:45 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-scsi, Rusty Russell, kvm, Michael S . Tsirkin,
	Stefan Hajnoczi, Mike Christie

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


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [PATCH v4 1/3] virtio-scsi: first version
@ 2012-02-02 12:47 Christian Hoff
  0 siblings, 0 replies; 10+ messages in thread
From: Christian Hoff @ 2012-02-02 12:47 UTC (permalink / raw)
  To: linux-kernel

Hallo Paolo,

Paolo Bonzini wrote:
> +              cmd->req.cmd = (struct virtio_scsi_cmd_req){
> +                              .lun[0] = 1,
> +                              .lun[1] = sc->device->id,
> +                              .lun[2] = (sc->device->lun >> 8) | 0x40,
> +                              .lun[3] = sc->device->lun & 0xff,
> +                              .tag = (unsigned long)sc,
> +                              .task_attr = VIRTIO_SCSI_S_SIMPLE,
> +                              .prio = 0,
> +                              .crn = 0,
> +              };

just wondering why you truncate target IDs to one byte? Also, why do you 
limit LUN numbers to 16 bits?

Also will it be possible to extend virtio-scsi to support more than one 
HBA without changing the ABI?

Other than that the patch looks good and I have been using virtio-scsi 
successfully for some time now on my private clone of qemu. 

Mit freundlichen Grüßen / Kind regards Christian Hoff 
-----------------------------------------------------------------------------------------------------------------------------------
IBM Deutschland
Am Fichtenberg 
171083 Herrenberg
-----------------------------------------------------------------------------------------------------------------------------------
IBM Deutschland GmbH / Vorsitzender des Aufsichtsrats: Martin 
JetterGeschäftsführung: Martina Koederitz (Vorsitzende), Reinhard Reschke, 
Dieter Scholz, Michael Diemer, Gregor PillenSitz der Gesellschaft: 
Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 14562 / 
WEEE-Reg.-Nr. DE 99369940


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

end of thread, other threads:[~2012-02-02 12:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-20 16:45 [PATCH v4 0/3] virtio-scsi driver Paolo Bonzini
2012-01-20 16:45 ` [PATCH v4 1/3] virtio-scsi: first version Paolo Bonzini
2012-01-20 16:45 ` [PATCH v4 2/3] virtio-scsi: add error handling Paolo Bonzini
2012-01-20 16:45 ` [PATCH v4 3/3] virtio-scsi: add power management support Paolo Bonzini
2012-01-30  8:48 ` [PATCH v4 0/3] virtio-scsi driver Paolo Bonzini
2012-02-01  7:31   ` Pekka Enberg
2012-02-01  8:13     ` Paolo Bonzini
2012-02-01  8:18       ` Pekka Enberg
2012-02-01  8:21         ` Paolo Bonzini
  -- strict thread matches above, loose matches on Subject: below --
2012-02-02 12:47 [PATCH v4 1/3] virtio-scsi: first version Christian Hoff

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