From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2pOc-0000nm-DB for qemu-devel@nongnu.org; Tue, 27 Oct 2009 12:59:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2pOX-0000k9-7C for qemu-devel@nongnu.org; Tue, 27 Oct 2009 12:59:45 -0400 Received: from [199.232.76.173] (port=48385 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2pOW-0000jx-Qf for qemu-devel@nongnu.org; Tue, 27 Oct 2009 12:59:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18594) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2pOW-0005q2-7P for qemu-devel@nongnu.org; Tue, 27 Oct 2009 12:59:40 -0400 Message-ID: <4AE726F0.9010800@redhat.com> Date: Tue, 27 Oct 2009 17:59:28 +0100 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/4] megasas: LSI MegaRAID SAS HBA emulation References: <20091027152849.F37C439742@ochil.suse.de> In-Reply-To: <20091027152849.F37C439742@ochil.suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hannes Reinecke Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Hi, > + /* The current Qemu infrastructure allows only for LUN 0 */ > + if (lun == 0&& target< MAX_RAID_DEVS) > + cmd->lun =&s->luns[target]; One more thing which should be fixed in qemu instead of worked around in your driver. After all even good old parallel scsi knows multiple luns. Guess this is how you end up with 128 scsi devices (16 ids with 8 luns each)? cheers, Gerd