Video card passthrough success
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
Quoted 2 lines · Luke-Jr
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?
Quoted 11 lines
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; doecho 1002 $id > /sys/bus/pci/drivers/pci-stub/new_id
Quoted 8 lines
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
Quoted 7 lines · Jan Kiszka
Quoted 3 lines · Luke-Jr
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.
Quoted 2 lines
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.
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.
Quoted 3 lines · Luke-Jr
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.
Signature · 2 lines
I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.