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. -- Eric Blake eblake@xxxxxxxxxx +1-801-349-2682 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list