Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[ubuntu] binding pci devices directly to vfio-pci instead of stubbing first

$
0
0
Read somewhere recently that as of kernel 4.1 its possible to bind passthrough devices directly to the vfio driver instead of pci-stubbing them first. Tried it and works a treat, first impressions are that I get a better overall result as previously my dvb card would hang the guest unless the host was cold booted, since switch the guests boot every time with no hangs etc.

Anyway it was a simple transition to create a new 'local.conf' file in /etc/modprobe.d/. The contents of the file for me is...

Code:

cat /etc/modprobe.d/local.conf
#e159:0001: OpenVox FXO/FXS Card
#1ade:3038: DVBSky Card
#10de:11c8: nVIDIA GTX 650 (video) card
#10de:0e0b: nVIDIA GTX 650 (audio) card


options vfio-pci ids=10de:11c8,10de:0e0b,1ade:3038,e159:0001

The problem is the vfio binding occurs later in the boot process than the pci-stub binding, as a result the OpenVox and GTX 650 audio device are grabbed by their legitimate modules first so the vfio binding fails. I can *fix* this by blacklisting the modules namely snd_hda_intel and netjet which gets my passthrough all working again, however I lose host audio as snd_hda_intel is used by other devices not intended for passthrough. Again I can easily fix this by issuing a 'sudo modprobe snd_hda_intel' post boot but I was wondering if there is a better/more elegant way of doing this?

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>