From: Hannes Reinecke <hare@suse.de>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-trivial@nongnu.org, "Stefan Weil" <sw@weilnetz.de>,
"Alexander Graf" <agraf@suse.de>,
qemu-devel@nongnu.org, "Anthony Liguori" <anthony@codemonkey.ws>,
"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH] megasas: Update function megasys_scsi_uninit
Date: Wed, 01 Aug 2012 00:17:04 +0200 [thread overview]
Message-ID: <50185960.9050700@suse.de> (raw)
In-Reply-To: <5017FD81.3040707@redhat.com>
On 07/31/2012 05:45 PM, Paolo Bonzini wrote:
> Il 31/07/2012 17:15, Anthony Liguori ha scritto:
>> Andreas Färber <afaerber@suse.de> writes:
>>
>>> Am 31.07.2012 16:50, schrieb Paolo Bonzini:
>>>> Il 31/07/2012 16:46, Andreas Färber ha scritto:
>>>>>>> Why would megasas be in master but not compiled/linked?
>>>>>> Because Anthony objected to how it picks the initiator WWN.
>>>>> Ah, anything keeping us from fixing that? :)
>>>>
>>>> Exact knowledge of the requirements, basically. :)
>>>
>>> I.e. waiting on feedback about numeric constraints from Hannes? :)
>>> Or waiting on general direction from Anthony?
>>> How to make progress there for 1.2 / Soft Freeze?
>>
>> You cannot build guest visible state by casting pointers.
>>
>> I'm really disappointed that this hasn't been resolved yet. If it's not
>> resolved before the soft freeze, I think we ought to revert the megasas
>> patches completely.
>
> Hannes, can you give a quick yes/no on the approach of the attached
> patch? The address of the HBA is given by a wwn property or, in the
> lack of one, by an increasing index similar to the one used for MAC
> addresses. The address of the disks is also given by a wwn property or,
> in the lack of one, by combining the HBA address with the target number.
>
Sorry for not answering earlier, but real life interfered
(customer escalations et al ...)
Anyway, Paolo, your approach is partially correct.
Ad 1, yes, we should be having a property for setting the SAS address of
the HBA. So that's okay and can go in. Anyone concerned with uniqueness
can then set it as appropriate.
Ad 2: no, the SAS address for the devices is _not_ the WWN.
The WWN is the ID of the LUN, whereas the SAS address is the ID of the
Target. So to be correct we would need to generate unique SAS addressed
per target which needs to be different from the WWN.
However, megasas does not need to present SAS addresses here; we can set
the interface to PCI-E (instead of SAS) and just use the LUN number.
Sadly I've yet to figure out the code for PCIE.
(Doing it correctly involves staring a binary output and figuring the
meaning of bits. Did I mention I don't have documentation for that beast?)
That's what's stalled the patch for now.
I see to have a patch cooked up tomorrow.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
next prev parent reply other threads:[~2012-07-31 20:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-31 5:54 [Qemu-devel] [PATCH] megasas: Update function megasys_scsi_uninit Stefan Weil
2012-07-31 14:13 ` Paolo Bonzini
2012-07-31 14:39 ` Andreas Färber
2012-07-31 14:43 ` Paolo Bonzini
2012-07-31 14:46 ` Andreas Färber
2012-07-31 14:50 ` Paolo Bonzini
2012-07-31 14:55 ` Andreas Färber
2012-07-31 15:15 ` Anthony Liguori
2012-07-31 15:45 ` Paolo Bonzini
2012-07-31 22:17 ` Hannes Reinecke [this message]
2012-08-01 7:38 ` Paolo Bonzini
2012-08-01 7:54 ` Hannes Reinecke
2012-08-01 8:01 ` Paolo Bonzini
2012-08-01 9:15 ` Hannes Reinecke
2012-07-31 15:16 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50185960.9050700@suse.de \
--to=hare@suse.de \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=anthony@codemonkey.ws \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=sw@weilnetz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).