From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH for-4.6 v2 7/8] python/xc: reinstate original implementation of next_bdf Date: Mon, 27 Jul 2015 23:58:46 +0100 Message-ID: <55B6B7A6.90608@citrix.com> References: <1438019109-31997-1-git-send-email-wei.liu2@citrix.com> <1438019109-31997-8-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZJrMD-0008D5-Dr for xen-devel@lists.xenproject.org; Mon, 27 Jul 2015 22:58:53 +0000 In-Reply-To: <1438019109-31997-8-git-send-email-wei.liu2@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: Wei Liu , Xen-devel Cc: Tiejun Chen , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org On 27/07/2015 18:45, 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. > > 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. XenServer still uses a few methods from the lowlevel xc bindings, but this only extends to debug situations (our version of xen-bugtool) and I am not aware of us using this particular bit of the bindings. ~Andrew