diff options
| author | Alex Williamson <alex.williamson@nvidia.com> | 2026-06-15 13:12:33 -0600 |
|---|---|---|
| committer | Alex Williamson <alex@shazbot.org> | 2026-06-29 13:46:50 -0600 |
| commit | 3788cd493e444742bc2ba252eb5c09ffc8b345dc (patch) | |
| tree | 0b0187c00a32dadd2f54a42df737ed54643bfe6f /lib | |
| parent | f2365a63b02ddea32e7db78b742c2503ec7b81f1 (diff) | |
vfio/pci: Latch all module parameters per device
The vfio-pci module parameters of disable_idle_d3, nointxmask, and
disable_vga latch vfio-pci policy into vfio-pci-core globals each time
the vfio-pci module is initialized. The disable_idle_d3 parameter has
already migrated to a per-device flag in order to provide consistency
for refcounted PM operations for the lifetime of the device
registration.
Pull the remaining vfio-pci module-parameter policy out of vfio-pci-core
into per-device flags set at device initialization.
This also restores the mutable aspect of the disable_idle_d3 and
nointxmask module parameters for vfio-pci, with the caveat that the
parameters are latched into the device at probe.
A notable change for variant drivers is that their devices are no longer
affected by vfio-pci module parameters and those drivers may need to
adopt similar module parameters if any devices have a hidden dependency
on vfio-pci setting non-default policy.
Assisted-by: Claude:claude-opus-4-8
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Alex Williamson <alex.williamson@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20260615191241.688297-6-alex.williamson@nvidia.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
