On Mon, Nov 02, 2015 at 03:23:26 +0530, Shivaprasad G Bhat wrote: > The reprobe needs to be called multiple times for vfio devices for each > device in the iommu group in future patch. So split the reprobe into a > new function. No functional change. > > Signed-off-by: Shivaprasad G Bhat <sbhat@xxxxxxxxxxxxxxxxxx> > --- > src/util/virpci.c | 44 ++++++++++++++++++++++++++++---------------- > 1 file changed, 28 insertions(+), 16 deletions(-) > > diff --git a/src/util/virpci.c b/src/util/virpci.c > index f401e1d..77ae455 100644 > --- a/src/util/virpci.c > +++ b/src/util/virpci.c > @@ -1098,6 +1098,33 @@ virPCIIsAKnownStub(char *driver) > return ret; > } > > +static int virPCIDeviceReprobeHostDriver(virPCIDevicePtr dev, char *driver, char *drvdir) Please format the header the same way as other headers are formatted in this file. > +{ > + char *path = NULL; > + int result = -1; We usually use 'ret' for this kind of variable. Peter
Attachment:
signature.asc
Description: Digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list