From: Wei Liu Subject: Re: [PATCH] xenbus_client: extend interface to suppurt multi-page ring Date: Tue, 27 Aug 2013 15:42:19 +0100 Message-ID: <20130827144219.GA15729@zion.uk.xensource.com> References: <1377296861-21464-1-git-send-email-wei.liu2@citrix.com> <521CB728.1090203@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <521CB728.1090203@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: boris.ostrovsky@oracle.com, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Aug 27, 2013 at 03:26:48PM +0100, David Vrabel wrote: > On 23/08/13 23:27, Wei Liu wrote: > > Originally Xen PV drivers only use single-page ring to pass along > > information. This might limit the throughput between frontend and > > backend. > > Why does the number of pages in the ring have to be a power of two? > Should we be able to handle any number of pages? > No they don't. There is no problem changing to handle any number of pages, given that the number of pages <= XENBUS_MAX_RING_PAGES. In fact my first version was like that. :-) I change to power of two because someone suggested that at Hackathon. But that's pretty random suggestion too so it's quite safe to ignore that. Further thought is that using arbitrary number would be more space-effecient. I will change to that. Wei. > David