From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: Re: [Qemu-devel] [PATCH 2/4] megasas: LSI MegaRAID SAS HBA emulation Date: Tue, 27 Oct 2009 17:59:28 +0100 Message-ID: <4AE726F0.9010800@redhat.com> References: <20091027152849.F37C439742@ochil.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org To: Hannes Reinecke Return-path: Received: from mx1.redhat.com ([209.132.183.28]:3864 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756140AbZJ0Q7h (ORCPT ); Tue, 27 Oct 2009 12:59:37 -0400 In-Reply-To: <20091027152849.F37C439742@ochil.suse.de> Sender: kvm-owner@vger.kernel.org List-ID: 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