On Fri, Jul 29, 2011 at 09:54, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> wrote: >> > > > On Wed, 2011-07-27 at 15:17 -0700, Greg Rose wrote: >> > > > > Device drivers that create and destroy SR-IOV virtual functions via >> > > > > calls to pci_enable_sriov() and pci_disable_sriov can cause >> > catastrophic >> > > > > failures if they attempt to destroy VFs while they are assigned to >> > > > > guest virtual machines. By adding a flag for use by the KVM module >> > > > > to indicate that a device is assigned a device driver can check that >> > > > > flag and avoid destroying VFs while they are assigned and avoid >> > system >> > > > > failures. >> OK, but I hope Xen can still use the dev_flag assignment bit. > > Yeah, I think the attached patch would do it, but I need to double check it. > Do you have a git tree with this patchset? Not yet, Greg was send these patches out as a RFC to make sure this was the correct direction to go. > > Um, so you are fixing up ixgbe only - what about the cxgb4 and be driver? > Shouldn't they also get some of this treatment? > Yes, Greg made changes to ixgbe to give an idea of what changes would need to be made with the suggested changes. From the feedback Greg received, there is definite changes needed. When Greg gets finished with the necessary changes to the kernel/ethtool, we will have a better idea of what changes are needed for the drivers. -- Cheers, Jeff -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html