From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Andr=E9_Weidemann?= Subject: Graphics card pass-through working with two pass pci-initialization Date: Fri, 27 May 2011 07:32:24 +0200 Message-ID: <4DDF3768.5010002@web.de> References: <1306227933-4880-1-git-send-email-kraxel@redhat.com> <1306227933-4880-2-git-send-email-kraxel@redhat.com> <20110525023406.GG8517@valinux.co.jp> <20110525043353.GH8517@valinux.co.jp> <4DDCC7A5.60706@redhat.com> <4DDCF9ED.5050208@redhat.com> <4DDDDA8D.6080807@web.de> <4DDDF62C.2010603@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: seabios@seabios.org, kvm@vger.kernel.org To: Gerd Hoffmann Return-path: Received: from fmmailgate03.web.de ([217.72.192.234]:41198 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751525Ab1E0Fca (ORCPT ); Fri, 27 May 2011 01:32:30 -0400 In-Reply-To: <4DDDF62C.2010603@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi Gerd, I managed to pass through a graphics card to a Windows7 VM using your=20 kraxel.q35 seabios branch=20 (http://www.kraxel.org/cgit/seabios/log/?h=3Dkraxel.q35). Here is my setup: Intel DX58SO Core i7 920 Radeon HD 6950 Kernel 2.6.35.7 qemu-kvm git pull from May 26th The gfx card is working well on the desktop even with Aero turned on. I tried various 3D Games which worked good (some were a bit choppy ;-)=20 though). There were 2 games that made Windows crash. What is the way to debug what went wrong here? One thing that is not working is the pass-through of a second device, a= =20 sound card in my case. As soon as I pass 2 devices to the VM, Windows=20 does not boot anymore. If I continue and remove the second device from the command line the VM= =20 does not boot anymore with the passed through gfx card. The graphics=20 card drivers crashes Windows, with the error message of not being able=20 to reset the graphics card. A reboot of the host cures this problem. These are the command lines I used to start the VM: echo "1002 6719" > /sys/bus/pci/drivers/pci-stub/new_id echo 0000:03:00.0 > /sys/bus/pci/devices/0000\:03\:00.0/driver/unbind echo 0000:03:00.0 > /sys/bus/pci/drivers/pci-stub/bind echo "1002 6719" > /sys/bus/pci/drivers/pci-stub/remove_id qemu-system-x86_64 \ -boot order=3Dcd -cpu host -vnc 192.168.3.1:0 -k de \ -smp 2,cores=3D2,sockets=3D1 \ -drive file=3D${IMAGE},if=3Dide,index=3D0,cache=3Dwriteback -m 4096 \ -drive file=3D/dev/sda3,if=3Dide,index=3D1,cache=3Dnone \=20 -drive file=3D/dev/sdb3,if=3Dide,index=3D2,cache=3Dnone \ -drive file=3D/dev/cdrom,if=3Dide,index=3D3,media=3Dcdrom,cache=3Dnone = \ -device pci-assign,host=3D03:00.0 \ -net nic,model=3De1000,macaddr=3DDE:AD:BE:EF:42:42 \ -net tap,script=3D/usr/local/bin/qemu-ifup \ -usb -usbdevice host:045e:00f9 \ -monitor telnet:192.168.3.1:11111,server,nowait,nodelay Thank you very much for your work. Regards Andr=E9