[Bug 218876] PCIE device crash when trying to pass through USB PCIe Card to virtual machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=218876

--- Comment #7 from TJ (linux@xxxxxx) ---
I've done some basic analysis and testing here to develop a udev rule. This
looks like it ought to do the job.

# this is /etc/udev/rules.d/00-vfiio-pci.rules
SUBSYSTEM=="pci", ATTR{endor}=="1912", ATTR{device}=="0014", RUN+="modprobe
vfio-pci ids=1912:0014"

It needs testing so what I'd suggest is:

1. use the unbind method in (2) in my previous comment to detach the xhci_hcd
driver and check there is no "Kernel driver in use" with:

  $ lspci -nnk -d 1912:0014"

2. Tell the kernel to replay events to test if the rule reacts as expected:

  # udevadm trigger --type=subsystems --subsystem-match=pci

3. Check if VFIO bound to the device ("Kernel driver in use") with:

  $ lspci -nnk -d 1912:0014"

If that works then the module and rule need adding to the initrd.img with:

  # echo "vfio-pci" >> /etc/initramfs-tools/modules
  # update-initramfs -u

and then do a reboot test when convenient.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux