From: Wei Liu Subject: Re: [PATCH for-4.6 v2 7/8] python/xc: reinstate original implementation of next_bdf Date: Tue, 28 Jul 2015 11:44:22 +0100 Message-ID: <20150728104422.GA15909@zion.uk.xensource.com> References: <1438019109-31997-1-git-send-email-wei.liu2@citrix.com> <1438019109-31997-8-git-send-email-wei.liu2@citrix.com> <1438079909.11600.122.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZK2N6-00029Z-Eo for xen-devel@lists.xenproject.org; Tue, 28 Jul 2015 10:44:32 +0000 Content-Disposition: inline In-Reply-To: <1438079909.11600.122.camel@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: Ian Campbell Cc: Xen-devel , Wei Liu , Ian Jackson , Tiejun Chen List-Id: xen-devel@lists.xenproject.org On Tue, Jul 28, 2015 at 11:38:29AM +0100, Ian Campbell wrote: > On Mon, 2015-07-27 at 18:45 +0100, Wei Liu wrote: > > I missed the fact that next_bdf is used to parsed user supplied > > strings when reviewing. The user supplied string is a NULL-terminated > > string separated by comma. User can supply several PCI devices in that > > string. There is, however, no delimiter for different devices, hence > > we can't change the syntax of that string. > > > > This patch reinstate the original implementation of next_bdf to > > preserve the original syntax. The last argument for xc_assign_device > > is always 0. > > Specifically it returns us to exactly the state in 9b34056cb4ca~1, I > believe? Plus an extra 0 flags parameter? > Yes to both questions. > > > > Signed-off-by: Wei Liu > > --- > > Cc: Tiejun Chen > > > > Tiejun, are you actually using this python binding? I don't think we > > have in tree user. > > > > If nobody is using it, I propose we remove this binding in next > > release. > > > > I don't have live example of that string. My analysis is based on > > reverse-engineering of original code. > > FWIW I've said several times that it is not necessary to plumb new options > such as this through the Python bindings, it is sufficient to pass in > whatever value means "do as you did before". If a user of the Python > bindings wants to then plumb in the ability to actually set the option > (i.e. there is a use case for it) then that can be done later. > > Acked-by: Ian Campbell