From: Juergen Gross <jgross@suse.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: keir@xen.org, ian.campbell@citrix.com, tim@xen.org,
ian.jackson@eu.citrix.com, xen-devel@lists.xen.org,
david.vrabel@citrix.com
Subject: Re: [PATCH] Update pvSCSI protocol description
Date: Mon, 25 Aug 2014 13:13:44 +0200 [thread overview]
Message-ID: <53FB1A68.1070904@suse.com> (raw)
In-Reply-To: <53FB0B88020000780002D0D1@mail.emea.novell.com>
On 08/25/2014 10:10 AM, Jan Beulich wrote:
>>>> On 25.08.14 at 07:05, <"jgross@suse.com".non-mime.internet> wrote:
>> Update the protocol description of the pvSCSI framework used to pass through
>> SCSI devices to a guest (pv or hvm).
>>
>> The main changes are:
>> - added comments
>> - adapt to Linux style guide
>
> This is a Xen header, so no, Linux style isn't what we want here (it
> is going to remain an exercise of changing the style when carrying
> changes to this header over to the individual consuming OSes).
Okay.
>
>> - add support for larger SG-lists by putting them in an own granted page
>> - remove stale definitions
>
> With the significant amount of formatting changes it doesn't really
> become clear which ones these are. If, after reverting the Linux
> style changes, this still ends up being hard to spot, please enumerate
> them here.
Yep.
>
>> @@ -30,11 +33,144 @@
>> #include "ring.h"
>> #include "../grant_table.h"
>>
>> -/* commands between backend and frontend */
>> -#define VSCSIIF_ACT_SCSI_CDB 1 /* SCSI CDB command */
>> -#define VSCSIIF_ACT_SCSI_ABORT 2 /* SCSI Device(Lun) Abort*/
>> -#define VSCSIIF_ACT_SCSI_RESET 3 /* SCSI Device(Lun) Reset*/
>> -#define VSCSIIF_ACT_SCSI_SG_PRESET 4 /* Preset SG elements */
>> +/*
>> + * Front->back notifications: When enqueuing a new request, sending a
>> + * notification can be made conditional on req_event (i.e., the generic
>> + * hold-off mechanism provided by the ring macros). Backends must set
>> + * req_event appropriately (e.g., using RING_FINAL_CHECK_FOR_REQUESTS()).
>> + *
>> + * Back->front notifications: When enqueuing a new response, sending a
>> + * notification can be made conditional on rsp_event (i.e., the generic
>> + * hold-off mechanism provided by the ring macros). Frontends must set
>> + * rsp_event appropriately (e.g., using RING_FINAL_CHECK_FOR_RESPONSES()).
>> + */
>
> I don't think this belongs here; a referral to ring.h would be the most
> to be put here (but I think the mere fact that this header includes
> ring.h is enough of a reference).
I just copied blkif.h - I'll remove that section again.
>
>> +/*
>> + * Feature and Parameter Negotiation
>> + * =================================
>> + * The two halves of a Xen pvSCSI driver utilize nodes within the XenStore to
>> + * communicate capabilities and to negotiate operating parameters. This
>> + * section enumerates these nodes which reside in the respective front and
>> + * backend portions of the XenStore, following the XenBus convention.
>> + *
>> + * All data in the XenStore is stored as strings. Nodes specifying numeric
>> + * values are encoded in decimal. Integer value ranges listed below are
>> + * expressed as fixed sized integer types capable of storing the conversion
>> + * of a properly formated node string, without loss of information.
>
> Mostly the same very likely goes for this paragraph.
Okay.
>
>> + * feature-sg-grant
>> + * Values: <uint16_t>
>
> Since when can XenStore encode fixed-width values? Same further
> down - they're all plain (perhaps unsigned) integer values at this
> layer.
This documents the supported value range - I'd rather keep it.
>
>> -
>> -#endif /*__XEN__PUBLIC_IO_SCSI_H__*/
>> -/*
>> - * Local variables:
>> - * mode: C
>> - * c-file-style: "BSD"
>> - * c-basic-offset: 4
>> - * tab-width: 4
>> - * indent-tabs-mode: nil
>> - * End:
>> - */
>> +#endif /*__XEN__PUBLIC_IO_SCSI_H__*/
>
> These markers shouldn't get removed either.
Okay.
Juergen
next prev parent reply other threads:[~2014-08-25 11:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-25 5:05 [PATCH] Update pvSCSI protocol description Juergen Gross
2014-08-25 8:10 ` Jan Beulich
2014-08-25 11:13 ` Juergen Gross [this message]
2014-08-25 11:21 ` Jan Beulich
2014-08-25 11:32 ` Juergen Gross
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=53FB1A68.1070904@suse.com \
--to=jgross@suse.com \
--cc=JBeulich@suse.com \
--cc=david.vrabel@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=keir@xen.org \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.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;
as well as URLs for NNTP newsgroup(s).