Received: from [140.186.70.92] (port=36546 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJRbd-0005P1-Q0 for qemu-devel@nongnu.org; Fri, 19 Nov 2010 09:06:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJRbc-0008RP-Ko for qemu-devel@nongnu.org; Fri, 19 Nov 2010 09:06:25 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJRbc-0008R7-E4 for qemu-devel@nongnu.org; Fri, 19 Nov 2010 09:06:24 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH 16/16] megasas: LSI Megaraid SAS emulation References: <20101118144755.442B2F90AB@ochil.suse.de> <4CE64151.7050601@redhat.com> Date: Fri, 19 Nov 2010 15:06:07 +0100 In-Reply-To: <4CE64151.7050601@redhat.com> (Jes Sorensen's message of "Fri, 19 Nov 2010 10:20:17 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jes Sorensen Cc: stefanha@gmail.com, kraxel@redhat.com, Hannes Reinecke , nab@linux-iscsi.org, qemu-devel@nongnu.org Jes Sorensen writes: > On 11/18/10 15:47, Hannes Reinecke wrote: >> This patch adds an emulation for the LSI Megaraid SAS HBA. >> >> Signed-off-by: Hannes Reinecke >> --- >> Makefile.objs | 2 +- >> hw/megasas.c | 1826 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> hw/mfi.h | 1197 +++++++++++++++++++++++++++++++++++++ >> hw/pci_ids.h | 2 + >> hw/scsi.h | 1 + >> 5 files changed, 3027 insertions(+), 1 deletions(-) >> create mode 100644 hw/megasas.c >> create mode 100644 hw/mfi.h >> >> diff --git a/Makefile.objs b/Makefile.objs >> index 15569af..54c6e02 100644 >> --- a/Makefile.objs >> +++ b/Makefile.objs >> @@ -231,7 +231,7 @@ hw-obj-$(CONFIG_IDE_MACIO) += ide/macio.o >> hw-obj-$(CONFIG_IDE_VIA) += ide/via.o >> >> # SCSI layer >> -hw-obj-y += lsi53c895a.o >> +hw-obj-y += lsi53c895a.o megasas.o >> hw-obj-$(CONFIG_ESP) += esp.o >> >> hw-obj-y += dma-helpers.o sysbus.o isa-bus.o > > Just had a look through your patches and have to say nice work. Haven't > tested it though, but looks like a good step in the right direction. > > Only comment, as you are adding another SCSI driver, maybe it's time to > make the driver selection configurable, rather than hard coding the build? What do you mean by that? We hardcode lsi53c895a in two places where we really mean "default SCSI controller type": pc_pci_device_init(), which applies to "-drive if=scsi", and qemu_pci_hot_add_storage(), which applies to "pci_add storage if=scsi". Not sure making that default configurable is worth it. If you want more control than -drive and pci_add provice, use -device and device_add.