From: "Jan Beulich" Subject: Re: [PATCH] xl: Use proper path for 'do_flr' functionality. Date: Tue, 24 Jun 2014 14:54:05 +0100 Message-ID: <53A99F1D020000780001CD75@mail.emea.novell.com> References: <1403621225-32654-1-git-send-email-konrad@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1403621225-32654-1-git-send-email-konrad@kernel.org> 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: konrad@kernel.org Cc: ian.jackson@eu.citrix.com, ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 24.06.14 at 16:47, wrote: > From: Konrad Rzeszutek Wilk > > Commit f74035d3b1e827ff6ff1873e2f10feb011a8d0d2 "xl: PCI code cleanups" > introduced an regression where it changed the name from: > /sys/bus/pci/drivers/pciback/do_flr > to > libxl_sprintf(ctx, "%s/pciback/do_flr", SYSFS_PCI_DEV); > > And SYSFS_PCI_DEV is "/sys/bus/pci/devices", meaning we would > do /sys/bus/pci/devices/pciback/do_flr. The proper define > should have been SYSFS_PCIBACK_DRIVER, which is what this patch does. > > Signed-off-by: Konrad Rzeszutek Wilk > --- > tools/libxl/libxl_pci.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c > index 5a7cc9e..d3b35d8 100644 > --- a/tools/libxl/libxl_pci.c > +++ b/tools/libxl/libxl_pci.c > @@ -965,7 +965,7 @@ static int libxl__device_pci_reset(libxl__gc *gc, > unsigned int domain, unsigned > char *reset; > int fd, rc; > > - reset = libxl__sprintf(gc, "%s/pciback/do_flr", SYSFS_PCI_DEV); > + reset = libxl__sprintf(gc, "%s/pciback/do_flr", SYSFS_PCIBACK_DRIVER); Don't you then need to drop the literal /pciback part here? Jan