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 >
2026-06-29 14:26:31 -06:00
..
2026-05-19 14:20:18 +02:00
2026-02-10 18:24:09 -08:00
2024-09-03 09:54:16 +02:00
2024-01-27 17:39:21 -08:00
2025-12-17 14:43:01 +01:00
2025-02-18 14:01:22 -07:00
2024-08-13 18:11:35 +02:00
2024-08-13 10:37:05 +02:00
2024-10-16 10:45:47 +02:00
2025-05-08 16:04:00 +03:00
2025-07-17 09:52:40 +01:00
2025-09-09 15:58:35 +02:00
2025-08-12 16:02:00 -07:00
2023-05-09 11:54:42 +02:00
2024-06-23 09:53:04 +03:00
2025-07-18 20:51:59 +10:00
2025-08-16 17:22:46 +08:00
2025-03-06 08:55:54 +00:00
2026-03-22 11:17:59 +09:00
2024-11-13 14:59:33 -07:00
2026-03-22 11:17:59 +09:00
2026-03-22 11:17:59 +09:00
2024-08-10 11:17:34 +01:00
2024-08-03 14:36:45 +01:00
2024-03-01 13:51:19 +01:00
2024-04-29 12:06:21 +02:00
2025-05-15 09:16:20 +00:00
2025-04-14 10:12:13 +01:00
2024-05-31 16:32:20 +03:00
2026-06-29 14:26:31 -06:00
2026-04-01 10:16:53 -04:00
2024-01-22 10:47:53 +01:00
2026-04-01 10:16:30 -04:00
2023-08-18 11:28:40 -06:00
2026-02-02 09:54:15 -07:00
2025-12-08 22:42:31 +01:00
2025-10-15 18:46:01 +02:00
2025-11-13 09:18:06 -07:00
2023-05-22 17:05:19 -04:00
2026-03-04 09:44:23 -08:00
2025-07-21 12:57:47 +02:00
2024-07-11 14:17:03 -07:00
2024-01-04 17:01:13 +01:00
2023-08-18 11:28:40 -06:00
2025-09-23 14:14:13 +01:00
2025-12-18 10:34:23 +00:00
2025-09-23 14:14:13 +01:00
2025-09-23 14:14:13 +01:00
2025-09-23 14:14:13 +01:00
2025-09-23 14:14:13 +01:00
2025-09-23 14:14:13 +01:00
2025-09-23 14:14:13 +01:00
2026-01-07 11:26:23 +00:00
2026-03-31 11:53:50 +01:00
2025-09-23 14:14:13 +01:00
2025-08-24 16:58:53 +09:00
2026-04-01 09:59:58 -07:00
2024-02-22 10:24:40 -08:00
2024-12-23 13:53:08 -03:00
2023-10-27 15:05:08 +02:00
2025-01-08 17:20:42 -03:00
2024-05-02 11:36:11 +01:00
2023-08-16 23:54:49 +10:00
2023-02-03 11:06:08 +01:00
2026-01-15 10:04:28 +01:00
2025-09-22 14:48:57 +05:30
2024-11-27 10:40:39 +05:30
2023-08-18 11:28:40 -06:00
2023-08-18 11:28:40 -06:00
2025-08-19 12:51:22 +02:00
2024-08-07 14:43:54 +02:00
2026-04-12 16:32:11 +02:00
2026-05-31 11:01:50 +01:00
2024-04-20 15:41:32 +01:00
2025-02-08 15:39:41 +00:00
2024-12-11 19:20:49 +00:00
2024-12-11 19:20:49 +00:00
2023-09-12 10:42:04 +01:00
2024-02-28 19:26:37 +00:00
2024-08-21 21:27:24 +01:00
2026-01-29 17:35:31 +00:00
2024-08-03 10:13:37 +01:00
2024-08-03 10:13:37 +01:00
2024-08-03 10:12:48 +01:00
2025-07-14 19:24:14 +01:00
2024-08-03 10:13:41 +01:00
2024-06-13 19:19:26 +01:00
2023-10-12 09:20:50 +01:00
2023-08-18 11:28:40 -06:00
2023-07-21 14:44:47 -06:00
2023-11-03 09:27:20 +01:00
2023-10-10 13:35:55 -06:00
2025-11-14 15:06:57 -08:00
2025-05-23 11:11:45 -05:00
2024-02-09 14:32:51 +00:00
2026-06-03 19:23:29 +02:00
2023-03-10 09:47:16 +01:00
2024-11-13 15:35:36 +02:00
2024-03-27 07:57:16 +01:00
2023-12-19 05:08:23 +02:00
2023-08-08 08:13:22 +03:00
2024-03-05 07:57:23 +00:00
2024-02-21 13:44:21 -07:00
2025-05-21 13:43:48 +03:00
2023-08-18 11:28:40 -06:00
2025-02-05 04:03:31 +00:00
2025-07-14 20:23:57 +09:00
2025-09-10 09:35:33 -05:00
2023-10-05 11:20:54 +02:00
2024-10-29 14:00:14 +02:00
2026-06-09 13:48:19 -07:00
2026-06-03 14:48:22 +08:00
2025-07-03 11:09:33 +03:00
2026-06-17 11:29:02 +01:00
2023-06-01 19:46:35 +01:00
2023-11-01 11:28:48 +00:00
2026-06-17 11:30:14 +01:00
2024-03-07 08:47:58 +00:00
2024-05-02 17:32:01 +01:00
2024-03-07 08:47:59 +00:00
2023-08-18 11:28:40 -06:00
2023-08-18 11:28:40 -06:00
2023-02-02 17:39:25 +01:00
2025-06-17 15:11:51 +02:00
2023-07-03 09:25:50 +01:00
2024-03-08 10:23:26 +00:00
2024-02-12 12:13:50 +00:00
2025-11-28 12:03:22 +02:00
2026-03-18 16:08:39 +01:00
2026-06-03 23:25:40 +02:00
2025-05-01 00:34:12 +02:00
2025-01-17 22:33:04 +01:00
2023-02-03 17:09:42 +01:00
2023-02-03 14:39:20 +01:00
2025-11-03 01:44:20 +01:00
2023-08-18 11:28:40 -06:00
2026-06-13 00:01:26 +02:00
2023-08-18 11:28:40 -06:00
2026-01-27 15:55:45 +01:00
2026-01-14 12:04:34 +01:00
2023-08-18 11:28:40 -06:00
2026-01-22 17:46:44 -08:00
2026-01-23 17:18:01 +01:00
2025-10-22 10:58:31 +02:00
2024-02-17 17:02:42 +01:00
2024-11-07 11:21:25 +01:00
2026-06-03 08:14:51 -07:00
2024-09-01 20:43:37 -07:00
2023-08-18 11:28:40 -06:00
2025-11-03 19:27:41 -08:00
2024-10-14 08:54:51 +00:00
2025-09-26 18:52:01 +02:00
2025-12-29 12:36:15 +01:00
2023-03-10 09:06:22 +01:00
2026-02-27 20:50:42 +01:00
2025-05-08 19:17:43 -07:00
2025-03-04 21:49:32 +01:00
2026-02-06 18:36:08 +08:00
2023-08-10 11:10:56 +08:00
2026-05-28 13:27:14 +03:00
2023-05-29 15:55:16 +01:00
2025-09-26 15:13:01 -07:00
2023-08-18 11:28:40 -06:00
2023-12-19 11:09:44 +02:00
2025-04-24 11:46:06 +02:00
2024-10-11 12:57:48 +02:00
2026-03-10 17:53:18 +01:00
2026-03-10 17:53:18 +01:00
2024-09-13 11:21:16 +02:00
2025-04-25 10:36:42 +08:00
2025-04-25 10:36:42 +08:00
2026-01-12 17:00:29 -05:00
2026-02-20 15:50:08 +01:00
2026-04-29 09:41:59 +02:00
2024-03-28 15:34:39 +00:00
2024-10-02 10:55:17 +02:00
2025-05-30 09:14:35 -06:00
2025-06-13 17:26:17 +08:00
2026-06-05 19:36:36 +08:00
2025-05-19 13:48:19 +08:00
2026-05-22 20:25:29 +08:00
2026-03-27 18:52:43 +09:00
2025-07-22 17:38:39 +03:00
2024-10-09 14:41:00 +01:00
2026-05-28 22:23:24 +02:00
2025-06-24 15:39:58 +01:00
2026-03-07 11:04:35 -05:00
2025-11-26 15:10:39 +01:00
2026-03-31 17:27:32 +03:00
2023-03-09 17:33:19 +01:00
2025-02-25 15:42:32 +01:00
2025-02-26 11:14:40 +01:00
2025-06-10 13:54:29 -07:00
2026-03-26 15:59:53 +01:00
2023-09-11 08:13:18 +00:00
2025-07-15 04:15:30 +02:00
2023-12-15 17:23:00 +01:00
2024-05-06 22:05:18 +10:00
2024-05-06 22:05:18 +10:00
2024-05-06 22:05:18 +10:00
2024-05-06 22:05:18 +10:00
2026-01-30 09:27:26 +05:30
2023-08-18 11:28:40 -06:00
2025-03-20 17:56:57 +01:00
2026-02-03 11:05:57 +08:00
2026-05-22 03:49:06 +00:00
2024-02-23 09:40:26 +01:00
2024-07-04 12:46:47 +05:30
2025-07-01 12:18:47 +02:00
2025-02-11 10:53:00 +05:30
2025-05-21 10:48:22 -07:00
2023-03-22 15:45:17 +01:00
2025-11-27 14:24:43 -08:00
2024-12-09 11:44:03 +01:00
2025-03-16 22:06:24 -07:00
2026-06-02 15:22:34 -07:00
2023-04-21 14:52:03 -07:00
2024-02-22 10:24:46 -08:00
2025-05-21 09:55:15 -07:00
2025-05-12 23:50:33 -07:00
2024-05-05 17:53:36 -07:00
2025-05-21 10:48:22 -07:00
2025-04-17 20:10:07 -07:00
2025-06-18 13:06:26 +02:00
2025-05-21 10:48:22 -07:00
2023-08-18 11:28:40 -06:00
2026-03-19 22:24:55 +00:00
2026-03-27 07:35:03 -07:00
2024-02-14 16:28:16 +01:00
2023-07-08 09:29:29 -07:00
2024-12-10 19:18:22 +02:00
2025-04-11 13:10:21 +03:00
2026-06-11 14:51:52 +03:00
2025-11-21 17:36:19 +02:00
2023-08-18 11:28:40 -06:00
2025-06-13 12:33:31 +03:00
2023-05-09 11:54:42 +02:00
2023-08-18 11:28:40 -06:00
2023-08-07 00:01:41 +05:30
2023-08-07 00:01:41 +05:30
2025-06-11 11:29:06 +03:00
2023-03-27 16:10:20 +02:00
2025-06-13 12:33:31 +03:00
2025-06-13 12:33:31 +03:00
2023-08-18 11:28:40 -06:00
2025-02-03 14:57:27 +02:00
2025-01-15 16:26:36 +02:00
2025-04-30 14:05:29 +03:00
2023-07-19 23:15:21 +02:00
2024-01-22 11:37:28 +01:00
2023-08-18 11:28:40 -06:00
2025-10-30 20:07:00 +01:00
2025-01-08 13:18:09 +01:00
2025-02-21 10:46:49 +01:00
2026-01-30 09:27:26 +05:30
2024-09-03 15:37:48 +02:00
2023-09-18 11:14:43 +02:00