PCI passthrough help

Jonathan Wong jon.the.wong at gmail.com
Fri Mar 13 10:00:49 UTC 2015

Hi I've been trying to get PCI-passthrough to work with bhyve, but seem to
have run into some trouble. I've been following this
https://wiki.freebsd.org/bhyve/pci_passthru and have tried to pass through
a few devices: a VGA Nvidia GK106 card by itself, and also an integrated
Atheros card AR9485 network adapter. I've checked that I have iommu and
that the pci devices I want to passthrough aren't being used and are in
pptdevs in loader.conf.

I tried unsuccessfully in 10.1-Release and I've just upgraded to
11-Current, but so far not much luck with PCI-passthrough. The VM I'm
booting is Ubuntu 14.04. I can see the devices in lspci, but nouveau driver
doesn't load because lspci can't enumerate a BAR1 line correctly. In both
cases I'm getting some routing errors, and I want to know if it'll help
debug the situation. It seems there are some successful cases for PCI
passthrough and I'd like to find out in which cases it'll work currently.

The errors in dmesg look like the following (ath9k):
[    4.451908] ath9k 0000:00:09.0: can't derive routing for PCI INT A
[    4.451910] ath9k 0000:00:09.0: PCI INT A: no GSI
[    4.451997] ath9k 0000:00:09.0: request_irq failed
[    4.452459] ath9k 0000:00:09.0: can't derive routing for PCI INT A
[    4.452462] ath9k: probe of 0000:00:09.0 failed with error -22

Any suggestions and tips would be great in getting either device to work.

More information about the freebsd-virtualization mailing list