[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e11e080f-241e-7d6e-832d-7e5d819dfc57@mellanox.com>
Date: Fri, 14 Apr 2017 10:44:12 -0500
From: Bodong Wang <bodong@...lanox.com>
To: Bjorn Helgaas <helgaas@...nel.org>
CC: <linux-pci@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<saeedm@...lanox.com>, Eli Cohen <eli@...lanox.com>
Subject: Re: [v3] PCI: Add an option to control probing of VFs before enabling
SR-IOV
On 4/14/2017 10:37 AM, Bjorn Helgaas wrote:
> On Thu, Apr 13, 2017 at 01:51:40AM +0300, bodong@...lanox.com wrote:
>> From: Bodong Wang <bodong@...lanox.com>
>>
>> Sometimes it is not desirable to probe the virtual functions after
>> SRIOV is enabled. This can save host side resource usage by VF
>> instances which would be eventually probed to VMs.
>>
>> Add a new PCI sysfs interface "sriov_drivers_autoprobe" to control
>> that from the PF, all current callers still retain the same
>> functionality. To modify it, echo 0/n/N (disable probe) or 1/y/Y
>> (enable probe) to:
>>
>> /sys/bus/pci/devices/<DOMAIN:BUS:DEVICE.FUNCTION>/sriov_drivers_autoprobe
>>
>> Note that, the choice must be made before enabling VFs. The change
>> will not take effect if VFs are already enabled. Simply, one can set
>> sriov_numvfs to 0, choose whether to probe or not, and then resume
>> sriov_numvfs.
>>
>> Signed-off-by: Bodong Wang <bodong@...lanox.com>
>> Signed-off-by: Eli Cohen <eli@...lanox.com>
>> Reviewed-by: Gavin Shan <gwshan@...ux.vnet.ibm.com>
>> Reviewed-by: Alex Williamson <alex.williamson@...hat.com>
>> Reviewed-by: Bjorn Helgaas <helgaas@...nel.org>
> Applied to pci/virtualization for v4.12, thanks, Bodong!
Thank you! Bjorn/Alex/Gavin.
Powered by blists - more mailing lists