All of lore.kernel.org
 help / color / mirror / Atom feed
* Video card passthrough success
@ 2011-05-13  2:25 Luke-Jr
  2011-05-13  6:30 ` Jan Kiszka
  0 siblings, 1 reply; 5+ messages in thread
From: Luke-Jr @ 2011-05-13  2:25 UTC (permalink / raw)
  To: kvm

Just thought I should pop a note out here that I have been using my
Radeon 5850 for OpenCL inside KVM (fglrx) successfully for nearly a week now.

Commit: c7b3e90e20c512a992865c38db03543a654e5d12
Motherboard: Intel DQ67SW
CPU: Intel Core i5-2400
Host node: Linux 2.6.37-gentoo-r4 (untainted)

*** Script ***
#!/bin/bash
modprobe pci-stub
for id in 6899 aa50; do
    echo 1002 $id > /sys/bus/pci/drivers/pci-stub/new_id
done
for pci in 0000:01:00.{0,1}; do
    echo $pci > "/sys/bus/pci/devices/$pci/driver/unbind"
    echo $pci > /sys/bus/pci/drivers/pci-stub/bind
done
exec \
ii/bin/qemu-system-x86_64 -curses -device pci-assign,host=01:00.0 \
-drive file=minerG.hdi,if=virtio -m 256 -cpu host -balloon virtio

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

* Re: Video card passthrough success
  2011-05-13  2:25 Video card passthrough success Luke-Jr
@ 2011-05-13  6:30 ` Jan Kiszka
  2011-05-13 13:26   ` Luke-Jr
  2011-05-20  2:56   ` Luke-Jr
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Kiszka @ 2011-05-13  6:30 UTC (permalink / raw)
  To: Luke-Jr; +Cc: kvm

[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]

On 2011-05-13 04:25, Luke-Jr wrote:
> Just thought I should pop a note out here that I have been using my
> Radeon 5850 for OpenCL inside KVM (fglrx) successfully for nearly a week now.

Interesting. Do you also get BIOS/early boot outputs? Did you try some
Windows guest as well?

> 
> Commit: c7b3e90e20c512a992865c38db03543a654e5d12
> Motherboard: Intel DQ67SW
> CPU: Intel Core i5-2400
> Host node: Linux 2.6.37-gentoo-r4 (untainted)
> 
> *** Script ***
> #!/bin/bash
> modprobe pci-stub
> for id in 6899 aa50; do
>     echo 1002 $id > /sys/bus/pci/drivers/pci-stub/new_id
> done
> for pci in 0000:01:00.{0,1}; do
>     echo $pci > "/sys/bus/pci/devices/$pci/driver/unbind"
>     echo $pci > /sys/bus/pci/drivers/pci-stub/bind
> done
> exec \
> ii/bin/qemu-system-x86_64 -curses -device pci-assign,host=01:00.0 \
> -drive file=minerG.hdi,if=virtio -m 256 -cpu host -balloon virtio

Based on that ID I assume you passed the host's primary (or even only)
adapter as the guest's primary one, right?

Thanks for sharing this. I think we should create some wiki page to
collect these information. I'll try to look into this later.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

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

* Re: Video card passthrough success
  2011-05-13  6:30 ` Jan Kiszka
@ 2011-05-13 13:26   ` Luke-Jr
  2011-05-20  2:56   ` Luke-Jr
  1 sibling, 0 replies; 5+ messages in thread
From: Luke-Jr @ 2011-05-13 13:26 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: kvm

On Friday, May 13, 2011 2:30:38 am Jan Kiszka wrote:
> On 2011-05-13 04:25, Luke-Jr wrote:
> > Just thought I should pop a note out here that I have been using my
> > Radeon 5850 for OpenCL inside KVM (fglrx) successfully for nearly a week
> > now.
> 
> Interesting. Do you also get BIOS/early boot outputs? Did you try some
> Windows guest as well?

I don't know-- never used the Radeon for video output at all. I would expect 
BIOS/early boot stuff to be on the primary emulated ncurses video card anyway. 
I have no Windows license.

> Based on that ID I assume you passed the host's primary (or even only)
> adapter as the guest's primary one, right?

No. My primary video chipset (used for actual video) is the (much superior to 
any Radeon on Linux) Intel HD Graphics 2000 built into the i5-2400.
The guest's primary is the emulated ncurses.

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

* Re: Video card passthrough success
  2011-05-13  6:30 ` Jan Kiszka
  2011-05-13 13:26   ` Luke-Jr
@ 2011-05-20  2:56   ` Luke-Jr
  2011-05-26 10:41     ` Avi Kivity
  1 sibling, 1 reply; 5+ messages in thread
From: Luke-Jr @ 2011-05-20  2:56 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: kvm

Finally decided to see just how much of the Radeon was working (eg, if it was 
*just* OpenCL or not), and I am happy to confirm that both video output and 
OpenGL acceleration are fully functional inside KVM.

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

* Re: Video card passthrough success
  2011-05-20  2:56   ` Luke-Jr
@ 2011-05-26 10:41     ` Avi Kivity
  0 siblings, 0 replies; 5+ messages in thread
From: Avi Kivity @ 2011-05-26 10:41 UTC (permalink / raw)
  To: Luke-Jr; +Cc: Jan Kiszka, kvm

On 05/20/2011 05:56 AM, Luke-Jr wrote:
> Finally decided to see just how much of the Radeon was working (eg, if it was
> *just* OpenCL or not), and I am happy to confirm that both video output and
> OpenGL acceleration are fully functional inside KVM.

That's really surprising (and a really good surprise, too).  We should 
have a wiki page to summarize what has been tried, with what version, 
and with what results.

-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.


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

end of thread, other threads:[~2011-05-26 10:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-13  2:25 Video card passthrough success Luke-Jr
2011-05-13  6:30 ` Jan Kiszka
2011-05-13 13:26   ` Luke-Jr
2011-05-20  2:56   ` Luke-Jr
2011-05-26 10:41     ` Avi Kivity

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.