linux/drivers/vfio/pci
Alex Williamson 586a989d8b vfio/pci: Expose latched module parameter policy in debugfs
The nointxmask and disable_idle_d3 module parameters remain writable,
but vfio-pci now latches their values into each device at init.  Once a
device is registered, changing the module parameter only affects future
devices, leaving no direct way to confirm the effective policy for an
existing device.

Add a pci debugfs directory under the VFIO device debugfs root and
report the per-device nointxmask and disable_idle_d3 values.  These are
read-only debugfs views and use the same Y/N bool output convention as
the module parameters.

Read-only vfio-pci parameters, such as disable_vga, are not exposed here
because they cannot drift from the latched device value, therefore the
existing module parameter exposure via sysfs is sufficient.

Note that while only vfio-pci currently provides these options, the
implementation is in vfio-pci-core and therefore properly reflects the
device policy in the core, regardless of driver.

Assisted-by: OpenAI Codex:gpt-5
Cc: Guixin Liu <kanie@linux.alibaba.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-7-alex.williamson@nvidia.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
History 2026-06-29 14:26:31 -06:00
..
hisilicon hisi_acc_vfio_pci: simplify the command for reading device information 2026-05-20 14:52:09 -06:00
ism vfio/ism: Implement vfio_pci driver for ISM devices 2026-04-01 15:51:21 -06:00
mlx5 vfio/mlx5: Fix racy bitfields and tighten struct layout 2026-06-29 13:46:50 -06:00
nvgrace-gpu vfio/nvgrace-gpu: Add Blackwell-Next GPU readiness check via CXL DVSEC 2026-06-05 10:43:32 -06:00
pds Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
qat vfio/qat: fix f_pos race in qat_vf_resume_write() 2026-06-10 14:33:05 -06:00
virtio vfio/pci: Replace vfio_pci_core_setup_barmap() with vfio_pci_core_get_iomap() 2026-05-20 11:54:10 -06:00
xe vfio/xe: avoid duplicate reset in xe_vfio_pci_reset_done 2026-05-20 14:52:21 -06:00
Kconfig vfio/ism: Implement vfio_pci driver for ISM devices 2026-04-01 15:51:21 -06:00
Makefile vfio/ism: Implement vfio_pci driver for ISM devices 2026-04-01 15:51:21 -06:00
trace.h vfio/pci: Cleanup license mess 2019-01-22 11:06:05 -07:00
vfio_pci.c vfio/pci: Latch all module parameters per device 2026-06-29 13:46:50 -06:00
vfio_pci_config.c vfio/pci: Rename vfio_config_do_rw() to vfio_pci_config_rw_single() and export it 2026-04-01 15:41:02 -06:00
vfio_pci_core.c vfio/pci: Expose latched module parameter policy in debugfs 2026-06-29 14:26:31 -06:00
vfio_pci_dmabuf.c vfio/pci: Replace vfio_pci_core_setup_barmap() with vfio_pci_core_get_iomap() 2026-05-20 11:54:10 -06:00
vfio_pci_igd.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
vfio_pci_intrs.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
vfio_pci_priv.h vfio/pci: Rename vfio_config_do_rw() to vfio_pci_config_rw_single() and export it 2026-04-01 15:41:02 -06:00
vfio_pci_rdwr.c vfio/pci: Replace vfio_pci_core_setup_barmap() with vfio_pci_core_get_iomap() 2026-05-20 11:54:10 -06:00
vfio_pci_zdev.c Merge remote-tracking branch 'mlx5/mlx5-vfio' into v6.1/vfio/next 2022-09-08 10:44:34 -06:00