From: "Jan Beulich" Subject: Re: [PATCH V2] Update pvSCSI protocol description Date: Mon, 25 Aug 2014 14:14:36 +0100 Message-ID: <53FB52DC020000780002D404@mail.emea.novell.com> References: <1408968810-19172-1-git-send-email-jgross@suse.com> <53FB4927020000780002D367@suse.com> <53FB3166.1070903@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53FB3166.1070903@suse.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Juergen Gross Cc: keir@xen.org, ian.campbell@citrix.com, ian.jackson@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org, david.vrabel@citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 25.08.14 at 14:51, wrote: > On 08/25/2014 02:33 PM, Jan Beulich wrote: >>>>> On 25.08.14 at 14:13, <"jgross@suse.com".non-mime.internet> wrote: >>> + uint8_t nr_segments; /* Number of pieces of scatter-gather */ >>> +#define VSCSIIF_SG_GRANT 0x80 /* flag: SG elements via grant page */ >>> + /* nr_segments counts grant pages with >>> + SG elements. >>> + usable if "feature-sg-grant" set */ >> >> Is that really accurate? If said value is to go into nr_segments, >> all such requests would have to have exactly 128 "grant pages >> with SG elements". > > Have you read the comment just above the #define of VSCSIIF_ACT_SCSI_CDB > describing the interface? Yes, but - people looking here don't necessarily also look there - it being correct there doesn't provide room for it getting described incorrectly here Jan