hyperhq / runv

Hypervisor-based Runtime for OCI
Apache License 2.0
826 stars 129 forks source link

Does runv have plans to support hardware passthrough? #631

Open Esarak opened 7 years ago

Esarak commented 7 years ago

I am still in the process of trying to understand the runv project but I notice you mention that you have no support for the OCI devices section. Are there any thoughts or plans on trying to address this using hypervisor hardware pass through capabilities? It would be particularlly interesting to be able to use hardware pass though to run gpu applications in a hypervisor container.

resouer commented 7 years ago

Once discussed with @gnawux for several times, let him to take over here.

At the same time we are also working on kubernetes upstream to make Pod level devices happen.

gnawux commented 7 years ago

@Esarak

runV is a virtualized container runtime, i.e. implement OCI interface with hypervisors, just like a VM at the bottom. As a result of the harder isolation, you could not map /dev filesystem into a VM, which is those in the device section.

However, the virtualization technology has mature hardware passthrough support already, and could be support in runV.