162306a36Sopenharmony_ciWhat: /sys/bus/vdpa/driver_autoprobe 262306a36Sopenharmony_ciDate: March 2020 362306a36Sopenharmony_ciContact: virtualization@lists.linux-foundation.org 462306a36Sopenharmony_ciDescription: 562306a36Sopenharmony_ci This file determines whether new devices are immediately bound 662306a36Sopenharmony_ci to a driver after the creation. It initially contains 1, which 762306a36Sopenharmony_ci means the kernel automatically binds devices to a compatible 862306a36Sopenharmony_ci driver immediately after they are created. 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci Writing "0" to this file disable this feature, any other string 1162306a36Sopenharmony_ci enable it. 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciWhat: /sys/bus/vdpa/driver_probe 1462306a36Sopenharmony_ciDate: March 2020 1562306a36Sopenharmony_ciContact: virtualization@lists.linux-foundation.org 1662306a36Sopenharmony_ciDescription: 1762306a36Sopenharmony_ci Writing a device name to this file will cause the kernel binds 1862306a36Sopenharmony_ci devices to a compatible driver. 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci This can be useful when /sys/bus/vdpa/driver_autoprobe is 2162306a36Sopenharmony_ci disabled. 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ciWhat: /sys/bus/vdpa/drivers/.../bind 2462306a36Sopenharmony_ciDate: March 2020 2562306a36Sopenharmony_ciContact: virtualization@lists.linux-foundation.org 2662306a36Sopenharmony_ciDescription: 2762306a36Sopenharmony_ci Writing a device name to this file will cause the driver to 2862306a36Sopenharmony_ci attempt to bind to the device. This is useful for overriding 2962306a36Sopenharmony_ci default bindings. 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ciWhat: /sys/bus/vdpa/drivers/.../unbind 3262306a36Sopenharmony_ciDate: March 2020 3362306a36Sopenharmony_ciContact: virtualization@lists.linux-foundation.org 3462306a36Sopenharmony_ciDescription: 3562306a36Sopenharmony_ci Writing a device name to this file will cause the driver to 3662306a36Sopenharmony_ci attempt to unbind from the device. This may be useful when 3762306a36Sopenharmony_ci overriding default bindings. 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ciWhat: /sys/bus/vdpa/devices/.../driver_override 4062306a36Sopenharmony_ciDate: November 2021 4162306a36Sopenharmony_ciContact: virtualization@lists.linux-foundation.org 4262306a36Sopenharmony_ciDescription: 4362306a36Sopenharmony_ci This file allows the driver for a device to be specified. 4462306a36Sopenharmony_ci When specified, only a driver with a name matching the value 4562306a36Sopenharmony_ci written to driver_override will have an opportunity to bind to 4662306a36Sopenharmony_ci the device. The override is specified by writing a string to the 4762306a36Sopenharmony_ci driver_override file (echo vhost-vdpa > driver_override) and may 4862306a36Sopenharmony_ci be cleared with an empty string (echo > driver_override). 4962306a36Sopenharmony_ci This returns the device to standard matching rules binding. 5062306a36Sopenharmony_ci Writing to driver_override does not automatically unbind the 5162306a36Sopenharmony_ci device from its current driver or make any attempt to 5262306a36Sopenharmony_ci automatically load the specified driver. If no driver with a 5362306a36Sopenharmony_ci matching name is currently loaded in the kernel, the device will 5462306a36Sopenharmony_ci not bind to any driver. This also allows devices to opt-out of 5562306a36Sopenharmony_ci driver binding using a driver_override name such as "none". 5662306a36Sopenharmony_ci Only a single driver may be specified in the override, there is 5762306a36Sopenharmony_ci no support for parsing delimiters. 58