From: Gianni Tedesco Subject: Re: [PATCH 2 of 3] xl, implement pci-list-assignable-devices Date: Wed, 28 Jul 2010 18:20:53 +0100 Message-ID: <1280337653.1723.2225.camel@qabil.uk.xensource.com> References: <2147337494701090c1c0.1280247872@habil.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <2147337494701090c1c0.1280247872@habil.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Devel Cc: Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Tue, 2010-07-27 at 17:24 +0100, Gianni Tedesco wrote: > + bdf = libxl_xs_read(ctx, XBT_NULL, devpath); > + if ( bdf ) { > + unsigned dom, bus, dev, func; > + if ( sscanf(bdf, PCI_BDF, &dom, &bus, &dev, &func) != 4 ) > + continue; > + > + new = realloc(pcidevs, ((*num) + 1) * sizeof(*new)); > + if ( NULL == new ) > + continue; > + > + pcidevs = new; > + new = pcidevs + *num; > + > + libxl_device_pci_init(new, dom, bus, dev, func, ~0); > + (*num)++; > + } Please don't apply patch 2 and therefore 3 from this set. This part is erroneous. Fixed in my tree and will submit the latest batch of updates soon. Thanks