epretorious

PCI pass-through

Aug 30th, 2015
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. Dom0 CLI
  2. ========
  3. [root@xen-home ~]# cat /etc/modprobe.d/pciback.conf
  4. install e1000 /sbin/modprobe xen_pciback ; /sbin/modprobe --first-time --ignore-install e1000
  5. options xen-pciback hide=(01:0a.*)
  6.  
  7. [root@xen-home ~]# lspci -kD | tail -6
  8. 0000:01:0a.0 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 01)
  9. Subsystem: Compaq Computer Corporation NC7170 Gigabit Server Adapter
  10. Kernel driver in use: pciback
  11. 0000:01:0a.1 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 01)
  12. Subsystem: Compaq Computer Corporation NC7170 Gigabit Server Adapter
  13. Kernel driver in use: pciback
  14.  
  15. [root@xen-home ~]# xl dmesg | grep virtual
  16. (XEN) I/O virtualisation disabled
  17.  
  18. [root@xen-home ~]# dmesg | grep -i seiz
  19. pciback 0000:01:0a.0: seizing device
  20. pciback 0000:01:0a.1: seizing device
  21.  
  22. [root@xen-home ~]# xl pci-assignable-list
  23. 0000:01:0a.0
  24. 0000:01:0a.1
  25.  
  26. [root@xen-home ~]# cat /etc/libvirt/libxl/ubuntu.xml
  27. ...
  28. <hostdev type='pci' managed='yes' mode='subsystem'>
  29. <source>
  30. <address domain='0x0000' bus='0x01' slot='0x0a' function='0x0' />
  31. </source>
  32. </hostdev>
  33. ...
  34.  
  35. DomU CLI
  36. ========
  37. eric@ubuntu:~$ cat /proc/cmdline
  38. root=/dev/mapper/ubuntu-root ro iommu=soft quiet splash
  39.  
  40. eric@ubuntu:~$ sudo lspci -v
  41.  
  42. eric@ubuntu:~$ sudo lsmod
  43. Module Size Used by4-generic (buildd@brownie) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) ) #142-Ubuntu SMP Tue Apr 28 10:03:02 UTC 2015 (Ubuntu 2.6.32-74.14sha256_generic 10327 2
  44. cryptd 8148 0 t=/dev/mapper/ubuntu-root ro iommu=soft quiet splash
  45. aes_x86_64 7912 7 cpus:
  46. aes_generic 27607 1 aes_x86_64
  47. dm_crypt 13043 1 D
  48. ppdev 6375 0 Hauls
  49. lp 9336 0 ged domain disabled
  50. parport 37160 2 ppdev,lpM map:
  51. xen_netfront 17890 0 00000 - 00000000000a0000 (usable)
  52. xen_blkfront 10697 3 a0000 - 0000000000100000 (reserved)
Advertisement
Add Comment
Please, Sign In to add comment