diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2021-11-26 17:47:53 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-01-14 18:50:52 -0500 |
commit | 539fec78edb4e084e7c532affc56cc42d4ceea4b (patch) | |
tree | 9133b2c1371f74c163528d9ec4d6bcaef25bcea5 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 9c25cdeb5f3ca9ef0d683ee8c29b7cb61a174165 (diff) | |
download | linux-539fec78edb4e084e7c532affc56cc42d4ceea4b.tar.gz linux-539fec78edb4e084e7c532affc56cc42d4ceea4b.tar.bz2 linux-539fec78edb4e084e7c532affc56cc42d4ceea4b.zip |
vdpa: add driver_override support
`driver_override` allows to control which of the vDPA bus drivers
binds to a vDPA device.
If `driver_override` is not set, the previous behaviour is followed:
devices use the first vDPA bus driver loaded (unless auto binding
is disabled).
Tested on Fedora 34 with driverctl(8):
$ modprobe virtio-vdpa
$ modprobe vhost-vdpa
$ modprobe vdpa-sim-net
$ vdpa dev add mgmtdev vdpasim_net name dev1
# dev1 is attached to the first vDPA bus driver loaded
$ driverctl -b vdpa list-devices
dev1 virtio_vdpa
$ driverctl -b vdpa set-override dev1 vhost_vdpa
$ driverctl -b vdpa list-devices
dev1 vhost_vdpa [*]
Note: driverctl(8) integrates with udev so the binding is
preserved.
Suggested-by: Jason Wang <jasowang@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20211126164753.181829-3-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions