RHEL 8.5 - Blacklist built-in kernel module (xhci_hcd)

Posted on

I am trying to blacklist the xhci_hcd driver that is built into the kernel in order to assign a USB 3.1 PCIe device to vfio-pci for passthrough to a VM with KVM.

The kernel option initcall_blacklist=xhci_hcd_init kernel option does not work. Idem for rdblacklist=xhci_hcd.

I have not found any related documentation and I would rather not have to build a custom kernel.

BTW, what is the rationale behind building this driver in the kernel?

Thank you in advance for your help