On Thu, Aug 18, 2016 at 10:29:16AM +0300, Ilya Lesokhin wrote: > +static int vfio_pci_sriov_configure(struct pci_dev *pdev, int num_vfs) > +{ > + if (!num_vfs) { > + pci_disable_sriov(pdev); > + return 0; > + } > + > + return pci_enable_sriov_with_override(pdev, > + num_vfs, > + "vfio-pci"); > +} I have to admit that I don't really like this API. Would it be major burden for use case to just have a flag instead that disables automatic driver attachments for VFs and requires manual binding instead? -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html