[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH 2/6] scsi: support parsing of SAM logical un
From: |
Christoph Hellwig |
Subject: |
Re: [Qemu-devel] [RFC PATCH 2/6] scsi: support parsing of SAM logical unit numbers |
Date: |
Wed, 25 May 2011 15:05:01 +0200 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
On Fri, May 20, 2011 at 05:03:33PM +0200, Paolo Bonzini wrote:
> SAM logical unit numbers are complicated beasts that can address
> multiple levels of buses and targets before finally reaching
> logical units. Begin supporting them by correctly parsing vSCSI
> LUNs.
>
> Note that with the current (admittedly incorrect) code OpenFirmware
> thought the devices were at "bus X, target 0, lun 0" (because OF
> prefers access mode 0, which places bus numbers in the top byte),
> while Linux thought it was "bus 0, target Y, lun 0" (because Linux
> uses access mode 2, which places target numbers in the top byte).
> With this patch, everything consistently uses the former notation.
Do we actually need the complete LUN encoding scheme? What speaks
against always presenting the flat LUN addressing scheme to guests?
[Qemu-devel] [RFC PATCH 1/6] scsi: ignore LUN field in the CDB, Paolo Bonzini, 2011/05/20
[Qemu-devel] [RFC PATCH 4/6] scsi-disk: allow customization of the lun, Paolo Bonzini, 2011/05/20
[Qemu-devel] [RFC PATCH 5/6] scsi: let a SCSIDevice have children devices, Paolo Bonzini, 2011/05/20