Re: [PATCH] Force FLR on for buggy SR-IOV devices.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/26/10 - 01:45:29PM, Eric Blake wrote:
> On 07/26/2010 12:51 PM, Chris Lalancette wrote:
> > Some buggy PCI devices actually support FLR, but
> > forget to advertise that fact in their PCI config space.
> > However, Virtual Functions on SR-IOV devices are
> > *required* to support FLR by the spec, so force has_flr
> > on if this is a virtual function.
> > 
> > Signed-off-by: Chris Lalancette <clalance@xxxxxxxxxx>
> > ---
> >  src/util/pci.c |   48 ++++++++++++++++++++++++++++++++++++++++++++----
> >  1 files changed, 44 insertions(+), 4 deletions(-)
> >  
> > +    /* there are some buggy devices that do support FLR, but forget to
> > +     * advertise that fact in their capabilities.  However, FLR is *required*
> > +     * to be present for virtual functions (VFs), so if we see that this
> > +     * device is a VF, we just assume FLR works
> > +     */
> > +
> > +    if (virAsprintf(&path, PCI_SYSFS "devices/%s/physfn", dev->name) < 0) {
> > +        virReportOOMError();
> > +        return -1;
> 
> ACK - this fixed my concerns from v1.

Thanks, I've pushed this.

--
Chris Lalancette

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]