Thread (9 messages) 9 messages, 3 authors, 2018-03-12

Re: [pci PATCH v4 1/4] pci-iov: Add support for unmanaged SR-IOV

From: Alex Williamson <hidden>
Date: 2018-03-12 03:59:12
Also in: kvm, linux-nvme, linux-pci, lkml

On Thu, 08 Mar 2018 11:02:29 -0800
Alexander Duyck [off-list ref] wrote:
From: Alexander Duyck <redacted>

This patch is meant to add some basic functionality to support for SR-IOV
on devices when the VFs are not managed by some other entity in the device
other than the kernel.

A new sysfs value called sriov_unmanaged_autoprobe has been added. This
value is used as the drivers_autoprobe setting of the VFs when they are
being managed by an external entity such as device firmware instead of
being managed by the kernel.

One side effect of this change is that the sriov_drivers_autoprobe and
sriov_unmanaged_autoprobe will only apply their updates when SR-IOV VFs
are allocated. Attempts to update them when SR-IOV is in use will only
update the local value and will not update sriov->autoprobe.

Signed-off-by: Alexander Duyck <redacted>
---

I still struggle to understand why we need this "unmanaged"
complication and how a user of the sysfs API is expected to have any
idea whether a PF is managed or unmanaged and why they should care.
Can't we just have a pci_simple_sriov_configure() helper and ignore
this unmanaged business?  Thanks,

Alex
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help