public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Luke-Jr <luke@dashjr.org>
Cc: kvm@vger.kernel.org
Subject: Re: Video card passthrough success
Date: Fri, 13 May 2011 08:30:38 +0200	[thread overview]
Message-ID: <4DCCD00E.3020706@web.de> (raw)
In-Reply-To: <201105122225.22514.luke@dashjr.org>

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

  reply	other threads:[~2011-05-13  6:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-13  2:25 Video card passthrough success Luke-Jr
2011-05-13  6:30 ` Jan Kiszka [this message]
2011-05-13 13:26   ` Luke-Jr
2011-05-20  2:56   ` Luke-Jr
2011-05-26 10:41     ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DCCD00E.3020706@web.de \
    --to=jan.kiszka@web.de \
    --cc=kvm@vger.kernel.org \
    --cc=luke@dashjr.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox