(Bad style to reply to my own post. I know.) On 08/01/2012 11:12 AM, Hannes Reinecke wrote: > This patch introduces a new property 'sas_address' which > allows the user to specify the SAS address for the HBA. > The default address it taken from the qumranet IEEE number > and the pci slot address. That ensures it'll be unique > and reproduceable locally. > > The port addresses are now calculated based on the magic > number 0x1221 (which is found in real hardware, too) plus > the device number. > > Signed-off-by: Hannes Reinecke <h...@suse.de> > Cc: Paolo Bonzini <pbonz...@redhat.com> > Cc: Andreas Faerber <afaer...@suse.de> > Cc: Anthony Liguori <aligu...@codemonkey.ws> > Cc: Alexander Graf <ag...@suse.de> > --- > hw/megasas.c | 63 ++++++++++++++++++++++++++++++++++++++++++--------------- > hw/mfi.h | 1 + > 2 files changed, 47 insertions(+), 17 deletions(-) > > diff --git a/hw/megasas.c b/hw/megasas.c > index 9a0eab1..e709d4d 100644 > --- a/hw/megasas.c > +++ b/hw/megasas.c > @@ -38,6 +38,8 @@ > #define MEGASAS_MAX_SECTORS 0xFFFF /* No real limit */ > #define MEGASAS_MAX_ARRAYS 128 > > +#define IEEE_COMPANY_QUMRANET 0x001A4AULL > +
Something worth of note: To generate a valid SAS address I need an IEEE number. I seem to remember Qumranet donated their PCI id for KVM use. I don't actually know if that donation extends to the IEEE number, too. If not then obviously I would need to use another one here. Who would be best in a position to answer this? Paolo? Someone at RH should know ... Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@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)