| 306 | |
| 307 | == 2.3 PCI Backend Configuration == |
| 308 | === 2.3.1 Binding at Boot === |
| 309 | rider@cloud:~$ sudo vim /boot/grub/menu.lst [[BR]] |
| 310 | {{{ |
| 311 | module /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 === |
| 315 | rider@cloud:~$ sudo su - [[BR]] |
| 316 | # Hide the device from dom0 so pciback can take control. [[BR]] |
| 317 | root@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]] |
| 320 | root@cloud:~$ echo -n "0000:01:00.0" > /sys/bus/pci/drivers/pciback/new_slot [[BR]] |
| 321 | root@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 | |
| 325 | root@cloud:~$ cat /sys/bus/pci/drivers/pciback/slots [[BR]] |
| 326 | {{{ |
| 327 | 0000:01:00.0 |
| 328 | }}} |
| 329 | |
| 330 | === 2.3.3 Permissive Flag === |
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 | | }}} |