From: Alexander Graf Subject: Re: [Qemu-devel] [PATCH][v7] megasas: LSI Megaraid SAS emulation Date: Tue, 19 Jul 2011 18:39:35 +0200 Message-ID: <02A8F9BA-D2C4-44EE-A455-433F161E8509@suse.de> References: <1311074364-3489-1-git-send-email-hare@suse.de> <20110719160843.GA3414@lst.de> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8BIT Cc: Hannes Reinecke , qemu-devel@nongnu.org, Paolo Bonzini , Stefan Haynoczi , kvm@vger.kernel.org To: Christoph Hellwig Return-path: Received: from cantor2.suse.de ([195.135.220.15]:58642 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400Ab1GSQjk convert rfc822-to-8bit (ORCPT ); Tue, 19 Jul 2011 12:39:40 -0400 In-Reply-To: <20110719160843.GA3414@lst.de> Sender: kvm-owner@vger.kernel.org List-ID: On 19.07.2011, at 18:08, Christoph Hellwig wrote: > I've mentioned this a few times before, but just to make sure it's not > lost: > > This is a really bad idea for adding to qemu. It's not a controller that > actually speaks a plain SCSI protocol to disks, but a RAID controller, that > has it's own command set for data plan operation, and minimal support for > a few SCSI CDBs around it. I also supports passthrough channels for > CDROMs and other periphals, but using those with disks is not recommended > by LSI, thus explicitly disabled in most drivers and most certainly not > tested. So it fits the qemu model, especially if using scsi-generic > undeneath pretty badly and I don't think it helps us in practice. I don't understand where your reluctance comes from. Conceptually, it's basically the same as having a virtio-blk driver also exporting a scsi interface, which is the perfect case wrt performance. So worst case what do we get? Worst case we get a working block adapter that can handle disk I/O pretty straight forward and is comparable to AHCI. Best case, we can also use SGIO on top of it. Either way, we get something that's a lot faster than the current LSI parallel SCSI adapter and also calls itself "SCSI", thus has drivers for a good bunch of OSs. I don't see how anything would go against this adapter - we really have nothing to lose. If you want to sit down and write an emulation layer for an even better (recent) SCSI HBA, please, go ahead and do so. This one is the best SCSI adapter we'd have in Qemu at the time of its commit though and can at least help us straighten out our internal APIs. Alex