[SeaBIOS] [PATCH] megasas: Add boot support for LSI MegaRAID SAS

Hannes Reinecke hare at suse.de
Tue Nov 13 08:06:28 CET 2012

On 11/12/2012 06:28 PM, Paolo Bonzini wrote:
> Il 12/11/2012 15:45, Hannes Reinecke ha scritto:
>> This patch adds support for LSI MegaRAID SAS controllers.
>> Currently only 8708EM2 is supported.
> Did you test it on real hardware?  For example via PCI passthrough.
Not yet.

>> diff --git a/src/megasas.c b/src/megasas.c
>> new file mode 100644
>> index 0000000..4b81334
>> --- /dev/null
>> +++ b/src/megasas.c
>> @@ -0,0 +1,311 @@
>> +// (qemu-emulated) megaraid_sas boot support.
> If also "real" MegaSAS is supported, please fix the comment.  Otherwise
> make it depend on QEMU too.
The goal here is to have this work on any MegaRAID SAS HBA, as they 
only differ in the low-level interface.
IE only the 'outl' line in megasas_fire_cmd needs to be modified, 
the rest is pretty much the same.

Hence I've omitted the dependency on Qemu, as this should work on 

I'll be updating the patch to include all PCI-IDs, and put in the 
correct low-level functions.


Dr. Hannes Reinecke		      zSeries & Storage
hare at suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

More information about the SeaBIOS mailing list