All of lore.kernel.org
 help / color / mirror / Atom feed
* GPU passthrough
@ 2011-08-12 22:39 Greg Shieh
  2011-08-12 23:11 ` Pasi Kärkkäinen
  0 siblings, 1 reply; 6+ messages in thread
From: Greg Shieh @ 2011-08-12 22:39 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 138 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 161 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GPU passthrough
  2011-08-12 22:39 GPU passthrough Greg Shieh
@ 2011-08-12 23:11 ` Pasi Kärkkäinen
  2011-08-13  2:36   ` Greg Shieh
  0 siblings, 1 reply; 6+ messages in thread
From: Pasi Kärkkäinen @ 2011-08-12 23:11 UTC (permalink / raw)
  To: Greg Shieh; +Cc: 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GPU passthrough
  2011-08-12 23:11 ` Pasi Kärkkäinen
@ 2011-08-13  2:36   ` Greg Shieh
  2011-08-13 16:17     ` Pasi Kärkkäinen
  2011-08-14 23:34     ` Alex Merritt
  0 siblings, 2 replies; 6+ messages in thread
From: Greg Shieh @ 2011-08-13  2:36 UTC (permalink / raw)
  To: Pasi Kärkkäinen; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 694 bytes --]

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
>
>

[-- Attachment #1.2: Type: text/html, Size: 1150 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GPU passthrough
  2011-08-13  2:36   ` Greg Shieh
@ 2011-08-13 16:17     ` Pasi Kärkkäinen
  2011-08-14 23:34     ` Alex Merritt
  1 sibling, 0 replies; 6+ messages in thread
From: Pasi Kärkkäinen @ 2011-08-13 16:17 UTC (permalink / raw)
  To: Greg Shieh; +Cc: 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GPU passthrough
  2011-08-13  2:36   ` Greg Shieh
  2011-08-13 16:17     ` Pasi Kärkkäinen
@ 2011-08-14 23:34     ` Alex Merritt
       [not found]       ` <CAAa1pBRhHFyLd7QWbMdkLHEr0by4r_uD-o4KZ1bQbCmN3Ode2w@mail.gmail.com>
  1 sibling, 1 reply; 6+ messages in thread
From: Alex Merritt @ 2011-08-14 23:34 UTC (permalink / raw)
  To: Greg Shieh; +Cc: 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
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GPU passthrough
       [not found]       ` <CAAa1pBRhHFyLd7QWbMdkLHEr0by4r_uD-o4KZ1bQbCmN3Ode2w@mail.gmail.com>
@ 2011-08-24  3:44         ` Alex Merritt
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Merritt @ 2011-08-24  3:44 UTC (permalink / raw)
  To: Greg Shieh; +Cc: 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
>> >
>> >
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-08-24  3:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-12 22:39 GPU passthrough Greg Shieh
2011-08-12 23:11 ` Pasi Kärkkäinen
2011-08-13  2:36   ` Greg Shieh
2011-08-13 16:17     ` Pasi Kärkkäinen
2011-08-14 23:34     ` Alex Merritt
     [not found]       ` <CAAa1pBRhHFyLd7QWbMdkLHEr0by4r_uD-o4KZ1bQbCmN3Ode2w@mail.gmail.com>
2011-08-24  3:44         ` Alex Merritt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.