[openstack-dev] Instance with access to GPU, libvirt and hostdev

Daniel P. Berrange berrange at redhat.com
Wed Apr 10 09:32:02 UTC 2013


On Wed, Apr 10, 2013 at 11:22:23AM +0200, Guillaume Thouvenin wrote:
> On 10/04/2013 11:00, Daniel P. Berrange wrote:
> 
> >>
> >>I don't believe this would work without IOMMU support.
> >
> >Correct, libvirt will refuse to let you assign any devices to a
> >guest, unless it can be done safely, which means you need
> >an IOMMU.
> 
> OK so I think that I misunderstood something. Currently IOMMU is not
> working on my machine. But I can allow the access to a pci device to
> my container by doing:
> 
>     <hostdev mode='capabilities' type='misc'>
>       <source>
>         <char>/dev/nvidia0</char>
>       </source>
>     </hostdev>

Oh, well that is LXC, rather than KVM so you have pretty
much zero security in anything.

IOMMU is relevant doing using KVM / Xen / etc

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|



More information about the OpenStack-dev mailing list