]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virpcimock: Create driver_override file in device dirs
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Jun 2019 14:42:23 +0000 (16:42 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Sat, 17 Aug 2019 09:14:58 +0000 (11:14 +0200)
commit84f9358b18346cdc2132e8026d3644696a655556
tree0b5da4f418cb5ccf171d2eab2e3365bee4b06cda
parent915d2281f33ce23a4d29f0fb6bb0d2f37373c7d9
virpcimock: Create driver_override file in device dirs

Newer kernels (v3.16-rc1~29^2~6^4) have 'driver_override' file
which simplifies way of binding a PCI device to desired driver.
Libvirt has support for this for some time too (v2.3.0-rc1~236),
but not our virpcimock. So far we did not care because our code
is designed to deal with this situation. Except for one.
hypothetical case: binding a device to the vfio-pci driver can be
successful only via driver_override. Any attempt to bind a PCI
device to vfio-pci driver using old method (new_id + unbind +
bind) will fail because of b803b29c1a5. While on vanilla kernel
I'm able to use the old method successfully, it's failing on RHEL
kernels (not sure why).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Tested-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
tests/virpcimock.c