-
Notifications
You must be signed in to change notification settings - Fork 44
USB 3.0 PCI Controller Pass through
pr1ntf edited this page Dec 1, 2015
·
2 revisions
-
- Determine the bus/slot/function of the device that you want to pass through with
pciconf -vl
. My device is:
- Determine the bus/slot/function of the device that you want to pass through with
xhci1@pci0:8:0:0: class=0x0c0330 card=0x34831106 chip=0x34831106 rev=0x01 hdr=0x00
vendor = 'VIA Technologies, Inc.'
class = serial bus
subclass = USB
-
- Disable the
xhci
driver in the FreeBSD kernel.
- Disable the
# Compile a custom kernel without xhci driver
# cd /usr/src/sys/amd64/conf
# cp GENERIC MYKERNEL
# ee MYKERNEL
# Find and change lines as below:
# Note the commented out portion disabling the device in the kernel.
ident MYKERNEL
#device xhci # XHCI PCI->USB interface (USB 3.0)
# Save and exit
# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL
# reboot
# After reboot 'pciconf -vl' must return:
none0@pci0:8:0:0: class=0x0c0330 card=0x34831106 chip=0x34831106 rev=0x01 hdr=0x00
vendor = 'VIA Technologies, Inc.'
class = serial bus
subclass = USB
-
- The device is ready for the pass through
# ee /boot/loader.conf
# add this line:
pptdevs="8/0/0"
# save, exit, reboot
# and again:
# pciconf -vl
# Now the output is like:
ppt0@pci0:8:0:0: class=0x0c0330 card=0x34831106 chip=0x34831106 rev=0x01 hdr=0x00
vendor = 'VIA Technologies, Inc.'
class = serial bus
subclass = USB
-
- Pass the device with iohyve:
# iohyve set bsd(linux)guest pcidev:1=passthru,8/0/0
That's all!
By: @Eresia999
How-to journals:
- USB 3.0 PCI Controller Pass through
- Installation of iohyve on HardenedBSD
- Running Windows Under iohyve
- Using iohyve over WiFi
- X11 Forwarding with Kali Linux and bhyve
- Installing CentOS7 on FreeNAS
Documentation:
Status pages:
Updating:
Contributing:
Archives: