I am new to Xen. Is there a code somewhere that implemented GPU passthrough on Linux ? I looked Xen wiki and could not find it. Thanks. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Fri, Aug 12, 2011 at 03:39:37PM -0700, Greg Shieh wrote:> I am new to Xen. >Hello,> Is there a code somewhere that implemented GPU passthrough on Linux ? > I looked Xen wiki and could not find it. >What do you exactly mean? If you run Linux in Xen HVM guest you can passthru GPU to Linux.. http://wiki.xen.org/xenwiki/XenVGAPassthrough -- Pasi _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
I have a server with a GPU sitting on PCI-E slot. I am running Suse with Xen. I have created a VM and want that VM can use GPU on the server with passthrough technique. Any code that I can use? On Fri, Aug 12, 2011 at 4:11 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Fri, Aug 12, 2011 at 03:39:37PM -0700, Greg Shieh wrote: > > I am new to Xen. > > > > Hello, > > > Is there a code somewhere that implemented GPU passthrough on Linux ? > > I looked Xen wiki and could not find it. > > > > What do you exactly mean? If you run Linux in Xen HVM guest you can > passthru GPU to Linux.. > > http://wiki.xen.org/xenwiki/XenVGAPassthrough > > -- Pasi > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Fri, Aug 12, 2011 at 07:36:35PM -0700, Greg Shieh wrote:> I have a server with a GPU sitting on PCI-E slot. I am running Suse with > Xen. I have created a VM and want that VM can use GPU on the server with > passthrough technique. > > Any code that I can use? >I think this thread belongs to xen-users mailinglist.. so please continue on that list. Usage of Xen VGA passthru is described at: http://wiki.xen.org/xenwiki/XenVGAPassthrough Thanks, -- Pasi> On Fri, Aug 12, 2011 at 4:11 PM, Pasi Kärkkäinen <[1]pasik@iki.fi> wrote: > > On Fri, Aug 12, 2011 at 03:39:37PM -0700, Greg Shieh wrote: > > I am new to Xen. > > > > Hello, > > Is there a code somewhere that implemented GPU passthrough on Linux > ? > > I looked Xen wiki and could not find it. > > > > What do you exactly mean? If you run Linux in Xen HVM guest you can > passthru GPU to Linux.. > > [2]http://wiki.xen.org/xenwiki/XenVGAPassthrough > -- Pasi > > References > > Visible links > 1. mailto:pasik@iki.fi > 2. http://wiki.xen.org/xenwiki/XenVGAPassthrough_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hi Greg, What are you intending to use the GPU for? Graphics or non-graphical computations? I was able to pass a GPU through to an HVM guest (not para-virtualized). I have not tested graphics, but was able to successfully run CUDA programs. -Alex On Fri, Aug 12, 2011 at 20:36, Greg Shieh <greg.shieh@gmail.com> wrote:> > I have a server with a GPU sitting on PCI-E slot. I am running Suse with > Xen. I have created a VM and want that VM can use GPU on the server with > passthrough technique. > > Any code that I can use? > > > > On Fri, Aug 12, 2011 at 4:11 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: >> >> On Fri, Aug 12, 2011 at 03:39:37PM -0700, Greg Shieh wrote: >> > I am new to Xen. >> > >> >> Hello, >> >> > Is there a code somewhere that implemented GPU passthrough on Linux ? >> > I looked Xen wiki and could not find it. >> > >> >> What do you exactly mean? If you run Linux in Xen HVM guest you can >> passthru GPU to Linux.. >> >> http://wiki.xen.org/xenwiki/XenVGAPassthrough >> >> -- Pasi >> > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Don''t forget to CC the mailing list (reply all). On Mon, Aug 15, 2011 at 11:14, Greg Shieh <greg.shieh@gmail.com> wrote:> Hi Alex, > > I am using GPU for graphic demo purpose. > > My kernel is 2.6.32.12, I am running Suse 11.3. I only can run PV since > there is no HVM option for me when creating VM.Hm, I''ve only noticed the opposite, where a Linux distribution does not ship with a kernel that is paravirtualized, forcing me to choose a guest configured as an HVM.> > What Kernel are you using? Can you send me some info what what you did to > make your GPU can passthrough to a VM?I used 2.6.32.40 from the pvops tree for Domain-0 and Xen 4.1. The VM was configured as HVM using libvirt''s XML configuration specification. My system has an Intel Tylersburg chipset in it, providing an IOMMU implementation (VT-d). After creating the guest, I added a section in the XML file specifying which device to pass through, then wrote to a /sys file to enable passthrough of GPUs at runtime: http://wiki.xensource.com/xenwiki/VTdHowTo I believe I used "virt-install" to configure and create a guest VM, via the GUI that is provided.> > Thanks. > > Greg > > > > On Sun, Aug 14, 2011 at 4:34 PM, Alex Merritt <merritt.alex@gmail.com> > wrote: >> >> Hi Greg, >> >> What are you intending to use the GPU for? Graphics or non-graphical >> computations? >> >> I was able to pass a GPU through to an HVM guest (not >> para-virtualized). I have not tested graphics, but was able to >> successfully run CUDA programs. >> >> -Alex >> >> On Fri, Aug 12, 2011 at 20:36, Greg Shieh <greg.shieh@gmail.com> wrote: >> > >> > I have a server with a GPU sitting on PCI-E slot. I am running Suse with >> > Xen. I have created a VM and want that VM can use GPU on the server with >> > passthrough technique. >> > >> > Any code that I can use? >> > >> > >> > >> > On Fri, Aug 12, 2011 at 4:11 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: >> >> >> >> On Fri, Aug 12, 2011 at 03:39:37PM -0700, Greg Shieh wrote: >> >> > I am new to Xen. >> >> > >> >> >> >> Hello, >> >> >> >> > Is there a code somewhere that implemented GPU passthrough on >> >> > Linux ? >> >> > I looked Xen wiki and could not find it. >> >> > >> >> >> >> What do you exactly mean? If you run Linux in Xen HVM guest you can >> >> passthru GPU to Linux.. >> >> >> >> http://wiki.xen.org/xenwiki/XenVGAPassthrough >> >> >> >> -- Pasi >> >> >> > >> > >> > _______________________________________________ >> > Xen-devel mailing list >> > Xen-devel@lists.xensource.com >> > http://lists.xensource.com/xen-devel >> > >> > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel