19c25cdebSStefano GarzarellaWhat: /sys/bus/vdpa/driver_autoprobe 29c25cdebSStefano GarzarellaDate: March 2020 39c25cdebSStefano GarzarellaContact: virtualization@lists.linux-foundation.org 49c25cdebSStefano GarzarellaDescription: 59c25cdebSStefano Garzarella This file determines whether new devices are immediately bound 69c25cdebSStefano Garzarella to a driver after the creation. It initially contains 1, which 79c25cdebSStefano Garzarella means the kernel automatically binds devices to a compatible 89c25cdebSStefano Garzarella driver immediately after they are created. 99c25cdebSStefano Garzarella 109c25cdebSStefano Garzarella Writing "0" to this file disable this feature, any other string 119c25cdebSStefano Garzarella enable it. 129c25cdebSStefano Garzarella 139c25cdebSStefano GarzarellaWhat: /sys/bus/vdpa/driver_probe 149c25cdebSStefano GarzarellaDate: March 2020 159c25cdebSStefano GarzarellaContact: virtualization@lists.linux-foundation.org 169c25cdebSStefano GarzarellaDescription: 179c25cdebSStefano Garzarella Writing a device name to this file will cause the kernel binds 189c25cdebSStefano Garzarella devices to a compatible driver. 199c25cdebSStefano Garzarella 209c25cdebSStefano Garzarella This can be useful when /sys/bus/vdpa/driver_autoprobe is 219c25cdebSStefano Garzarella disabled. 229c25cdebSStefano Garzarella 239c25cdebSStefano GarzarellaWhat: /sys/bus/vdpa/drivers/.../bind 249c25cdebSStefano GarzarellaDate: March 2020 259c25cdebSStefano GarzarellaContact: virtualization@lists.linux-foundation.org 269c25cdebSStefano GarzarellaDescription: 279c25cdebSStefano Garzarella Writing a device name to this file will cause the driver to 289c25cdebSStefano Garzarella attempt to bind to the device. This is useful for overriding 299c25cdebSStefano Garzarella default bindings. 309c25cdebSStefano Garzarella 319c25cdebSStefano GarzarellaWhat: /sys/bus/vdpa/drivers/.../unbind 329c25cdebSStefano GarzarellaDate: March 2020 339c25cdebSStefano GarzarellaContact: virtualization@lists.linux-foundation.org 349c25cdebSStefano GarzarellaDescription: 359c25cdebSStefano Garzarella Writing a device name to this file will cause the driver to 369c25cdebSStefano Garzarella attempt to unbind from the device. This may be useful when 379c25cdebSStefano Garzarella overriding default bindings. 38*539fec78SStefano Garzarella 39*539fec78SStefano GarzarellaWhat: /sys/bus/vdpa/devices/.../driver_override 40*539fec78SStefano GarzarellaDate: November 2021 41*539fec78SStefano GarzarellaContact: virtualization@lists.linux-foundation.org 42*539fec78SStefano GarzarellaDescription: 43*539fec78SStefano Garzarella This file allows the driver for a device to be specified. 44*539fec78SStefano Garzarella When specified, only a driver with a name matching the value 45*539fec78SStefano Garzarella written to driver_override will have an opportunity to bind to 46*539fec78SStefano Garzarella the device. The override is specified by writing a string to the 47*539fec78SStefano Garzarella driver_override file (echo vhost-vdpa > driver_override) and may 48*539fec78SStefano Garzarella be cleared with an empty string (echo > driver_override). 49*539fec78SStefano Garzarella This returns the device to standard matching rules binding. 50*539fec78SStefano Garzarella Writing to driver_override does not automatically unbind the 51*539fec78SStefano Garzarella device from its current driver or make any attempt to 52*539fec78SStefano Garzarella automatically load the specified driver. If no driver with a 53*539fec78SStefano Garzarella matching name is currently loaded in the kernel, the device will 54*539fec78SStefano Garzarella not bind to any driver. This also allows devices to opt-out of 55*539fec78SStefano Garzarella driver binding using a driver_override name such as "none". 56*539fec78SStefano Garzarella Only a single driver may be specified in the override, there is 57*539fec78SStefano Garzarella no support for parsing delimiters. 58