From: Hannes Reinecke <hare@suse.de>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
LKML <linux-kernel@vger.kernel.org>,
linux-scsi <linux-scsi@redhat.com>,
virtualization <virtualization@lists.linux-foundation.org>
Subject: Re: virtio-scsi spec (was Re: [PATCH] Add virtio-scsi to the virtio spec)
Date: Thu, 01 Dec 2011 10:52:20 +0100 [thread overview]
Message-ID: <4ED74E54.3070303@suse.de> (raw)
In-Reply-To: <4ED65BA4.3000003@redhat.com>
On 11/30/2011 05:36 PM, Paolo Bonzini wrote:
> On 11/30/2011 03:17 PM, Hannes Reinecke wrote:
>>> seg_max is the maximum number of segments that can be in a
>>> command. A bidirectional command can include seg_max input
>>> segments and seg_max output segments.
>>>
>> I would like to have the other request_queue limitations exposed
>> here, too.
>> Most notably we're missing the maximum size of an individual segment
>> and the maximum size of the overall I/O request.
>
> The virtio transport does not put any limit, as far as I know.
>
Virtio doesn't, but the underlying device/driver might.
And if we don't expose these values we cannot format the request correctly.
>> As this is the host specification I really would like to see an host
>> identifier somewhere in there.
>> Otherwise we won't be able to reliably identify a virtio SCSI host.
>
> I thought about it, but I couldn't figure out exactly how to use it. If
> it's just allocating 64 bits in the configuration space (with the
> stipulation that they could be zero), let's do it now. Otherwise a
> controlq command is indeed better, and it can come later.
>
> But even if it's just a 64-bit value, then: 1) where would you place it
> in sysfs for userspace? I can make up a random name, but existing user
> tools won't find it and that's against the design of virtio-scsi. 2) How
> would it be encoded as a transport ID? Is it FC, or firewire, or SAS, or
> what?
>
I was thinking of something along the lines of the TransportID as
defined in SPC.
Main idea is to have a unique ID by which we can identify a given
virtio-scsi host. Admittedly it might not be useful in general, so it
might be an idea to delegate this to another controlq command.
>> Plus you can't calculate the ITL nexus information, making
>> Persistent Reservations impossible.
>
> They are not impossible, only some features such as SPEC_I_PT. If you
> use NPIV or iSCSI in the host, then the persistent reservations will
> already get the correct initiator port. If not, much more work is needed.
>
Yes, for a a shared (physical) SCSI host persistent reservations will be
tricky.
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:[~2011-12-01 7:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-30 13:50 [PATCH] Add virtio-scsi to the virtio spec Paolo Bonzini
2011-11-30 13:50 ` virtio-scsi spec (was Re: [PATCH] Add virtio-scsi to the virtio spec) Paolo Bonzini
2011-11-30 14:17 ` Hannes Reinecke
2011-11-30 16:36 ` Paolo Bonzini
2011-12-01 9:52 ` Hannes Reinecke [this message]
2011-12-01 8:49 ` Paolo Bonzini
2011-12-01 3:14 ` [PATCH] Add virtio-scsi to the virtio spec Rusty Russell
2011-12-01 8:55 ` Paolo Bonzini
2011-12-02 0:51 ` Rusty Russell
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=4ED74E54.3070303@suse.de \
--to=hare@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=stefanha@linux.vnet.ibm.com \
--cc=virtualization@lists.linux-foundation.org \
/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