From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Luke-Jr" Subject: Video card passthrough success Date: Thu, 12 May 2011 22:25:17 -0400 Message-ID: <201105122225.22514.luke@dashjr.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from zinan.dashjr.org ([173.242.112.54]:34176 "EHLO zinan.dashjr.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750703Ab1EMCc7 (ORCPT ); Thu, 12 May 2011 22:32:59 -0400 Received: from ishibashi.localnet (unknown [IPv6:2001:470:5:265:222:4dff:fe50:4c49]) (Authenticated sender: luke-jr) by zinan.dashjr.org (Postfix) with ESMTPSA id EC05C560571 for ; Fri, 13 May 2011 02:25:42 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: 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