OpenVZ Forum


Home » General » Support » PCI Passthrough (Passing a PCI device (not just a network device) into VE/VPS)
PCI Passthrough [message #37154] Sun, 23 August 2009 16:05 Go to next message
fwse
Messages: 1
Registered: August 2009
Location: Inside IPC
Junior Member
Hi!

The Wiki documentation sounds like it would/should be possible to get a plain PCI device passed into a VE. The device is not really a network device/network card, so it's not not just a network driver.

My - simple? - question is: how to do this (with vzctl)?

The device to be exported:
(lspci -s 01:09.0 -v -v):

************************************************************
************************************************************
myHN:~# lspci -s 01:09.0 -v -v -k
01:09.0 Multimedia controller: Philips Semiconductors TriMedia TM1300 (rev 82)
Subsystem: AVM GmbH Fritz!Card DSL
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 64 (750ns min, 250ns max), Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 11
Region 0: Memory at fd800000 (32-bit, non-prefetchable) [size=8M]
Region 1: Memory at fd600000 (32-bit, non-prefetchable) [size=2M]

myHN:~#

************************************************************
************************************************************

Related to this (primary) question: How to access the device from inside the VE/VPS? Loading modules?

Thanks for any hints!

P.S. All the above is running on amd64/4core machines
Re: PCI Passthrough [message #37415 is a reply to message #37154] Mon, 07 September 2009 22:57 Go to previous messageGo to next message
divB is currently offline  divB
Messages: 79
Registered: April 2009
Member
No, this won't be possible by concept!!

OpenVZ is an OS-level virtualization. That means that there is exactly one kernel and set of modules which are shared amongst all VEs. This is NOT like Xen!

Using a PCI device inside a VE depends on the device driver. You can load the driver only on HN!

Usually you will get a device node to access your device. In this case you can make the devicenode be accessible from a VE.


Re: PCI Passthrough [message #37420 is a reply to message #37415] Tue, 08 September 2009 14:45 Go to previous messageGo to next message
andreas2 is currently offline  andreas2
Messages: 10
Registered: May 2009
Junior Member
Quote:

>Using a PCI device inside a VE depends on the device driver. You >can load the driver only on HN!

>Usually you will get a device node to access your device. In this >case you can make the devicenode be accessible from a VE.





QUESTION:
How can I create this device node in the client?
mknod says "no permission", creating it in Host (+moving to client) doesn't work, too, there is no permission to use the module and modprobe is not allowed.

thanks, Andrew
Re: PCI Passthrough [message #37426 is a reply to message #37154] Tue, 08 September 2009 18:50 Go to previous message
divB is currently offline  divB
Messages: 79
Registered: April 2009
Member
vzctl --help !

Regards,
divB
Previous Topic: Networking, security
Next Topic: howto compile kernel with some special features ? [SOLVED]
Goto Forum:
  


Current Time: Tue Apr 23 02:40:18 GMT 2024

Total time taken to generate the page: 0.01237 seconds