close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_delta.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Mar 27, 2009, 11:19:14 AM (17 years ago)
- Author:
-
rider
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v42
|
v43
|
|
| 304 | 304 | }}} |
| 305 | 305 | |
| | 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 === |
| 306 | 331 | rider@cloud:~$ sudo vim /etc/xen/xend-pci-permissive.sxp [[BR]] |
| 307 | 332 | {{{ |
| … |
… |
|
| 311 | 336 | ) |
| 312 | 337 | }}} |
| | 338 | |
| | 339 | === 2.3.4 User-space Quirks === |
| 313 | 340 | rider@cloud:~$ sudo vim /etc/xen/xend-pci-quirks.sxp [[BR]] |
| 314 | 341 | {{{ |
| … |
… |
|
| 321 | 348 | ) |
| 322 | 349 | }}} |
| | 350 | |
| | 351 | === 2.3.5 PCI Frontend Configuration === |
| 323 | 352 | rider@cloud:~$ sudo vim /etc/xen/vm01.cfg [[BR]] |
| 324 | 353 | {{{ |
| … |
… |
|
| 337 | 366 | }}} |
| 338 | 367 | |
| 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 | | }}} |
| 358 | 368 | rider@cloud:/etc/xen$ sudo xm create vm01.cfg[[BR]] |
| 359 | 369 | rider@cloud:/etc/xen$ dmesg | grep pciback [[BR]] |
| … |
… |
|
| 538 | 548 | 5.Xen: assigning PCI devices to a domain: http://www.bestgrid.org/index.php/Xen:_assigning_PCI_devices_to_a_domain [[BR]] |
| 539 | 549 | 6.Xen PCI Passthrough: http://www.wlug.org.nz/XenPciPassthrough [[BR]] |
| | 550 | 7.Xen Users' Manual v3.0: http://www.cl.cam.ac.uk/research/srg/netos/xen/readmes/user/ [[BR]] |