Changes between Version 42 and Version 43 of Xen_GPU_cluster


Ignore:
Timestamp:
Mar 27, 2009, 11:19:14 AM (16 years ago)
Author:
rider
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Xen_GPU_cluster

    v42 v43  
    304304}}}
    305305
     306
     307== 2.3 PCI Backend Configuration ==
     308=== 2.3.1 Binding at Boot ===
     309rider@cloud:~$ sudo vim /boot/grub/menu.lst [[BR]]
     310{{{
     311module  /boot/vmlinuz-2.6.22.9 root=UUID=d3fa560e-7071-46d8-a168-036f40960c7b ro console=tty0 pciback.hide=(0000:01:00.0)
     312}}}
     313
     314=== 2.3.2 Late Binding ===
     315rider@cloud:~$ sudo su - [[BR]]
     316# Hide the device from dom0 so pciback can take control. [[BR]]
     317root@cloud:~$ echo -n "0000:01:00.0" > /sys/bus/pci/drivers/nvidia/unbind [[BR]]
     318
     319# Give the dev_ids to pciback, and give it a new slot then bind.[[BR]]
     320root@cloud:~$ echo -n "0000:01:00.0" > /sys/bus/pci/drivers/pciback/new_slot [[BR]]
     321root@cloud:~$ echo -n "0000:01:00.0" > /sys/bus/pci/drivers/pciback/bind [[BR]]
     322
     323# You can use an initialization script to invoke the PCIE device at startup. [[BR]]
     324
     325root@cloud:~$ cat /sys/bus/pci/drivers/pciback/slots [[BR]]
     326{{{
     3270000:01:00.0
     328}}}
     329
     330=== 2.3.3 Permissive Flag ===
    306331rider@cloud:~$ sudo vim /etc/xen/xend-pci-permissive.sxp [[BR]]
    307332{{{
     
    311336)
    312337}}}
     338
     339=== 2.3.4 User-space Quirks ===
    313340rider@cloud:~$ sudo vim /etc/xen/xend-pci-quirks.sxp [[BR]]
    314341{{{
     
    321348)
    322349}}}
     350
     351=== 2.3.5 PCI Frontend Configuration ===
    323352rider@cloud:~$ sudo vim /etc/xen/vm01.cfg [[BR]]
    324353{{{
     
    337366}}}
    338367
    339 rider@cloud:~$ sudo su - [[BR]]
    340 # Hide the device from dom0 so pciback can take control. [[BR]]
    341 root@cloud:~$ echo -n "0000:01:00.0" > /sys/bus/pci/drivers/nvidia/unbind [[BR]]
    342 
    343 # Give the dev_ids to pciback, and give it a new slot then bind.[[BR]]
    344 root@cloud:~$ echo -n "0000:01:00.0" > /sys/bus/pci/drivers/pciback/new_slot [[BR]]
    345 root@cloud:~$ echo -n "0000:01:00.0" > /sys/bus/pci/drivers/pciback/bind [[BR]]
    346 
    347 # We have an initialization script called "xen_nvidia.sh" to invoke the PCIE device at startup. [[BR]]
    348 
    349 root@cloud:~$ cat /sys/bus/pci/drivers/pciback/slots [[BR]]
    350 {{{
    351 0000:01:00.0
    352 }}}
    353 rider@cloud:~$ sudo vim /boot/grub/menu.lst [[BR]]
    354 {{{
    355 For dom0 only:
    356 module  /boot/vmlinuz-2.6.22.9 root=UUID=d3fa560e-7071-46d8-a168-036f40960c7b ro console=tty0 pciback.permissive pciback.hide=(01:00:0)
    357 }}}
    358368rider@cloud:/etc/xen$ sudo xm create vm01.cfg[[BR]]
    359369rider@cloud:/etc/xen$ dmesg | grep pciback [[BR]]
     
    5385485.Xen: assigning PCI devices to a domain: http://www.bestgrid.org/index.php/Xen:_assigning_PCI_devices_to_a_domain [[BR]]
    5395496.Xen PCI Passthrough: http://www.wlug.org.nz/XenPciPassthrough [[BR]]
     5507.Xen Users' Manual v3.0: http://www.cl.cam.ac.uk/research/srg/netos/xen/readmes/user/ [[BR]]