From mboxrd@z Thu Jan 1 00:00:00 1970 From: Max Schettler Subject: Vga passthrough to KVM Guest issues Date: Wed, 16 Oct 2013 21:08:30 +0200 Message-ID: <1381950510.1205.10.camel@max-pc.lan> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-9G6Hq8J3D1EFLvQLNBxS" To: kvm@vger.kernel.org Return-path: Received: from mail-bk0-f44.google.com ([209.85.214.44]:59323 "EHLO mail-bk0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933954Ab3JPTIc (ORCPT ); Wed, 16 Oct 2013 15:08:32 -0400 Received: by mail-bk0-f44.google.com with SMTP id mz10so432273bkb.17 for ; Wed, 16 Oct 2013 12:08:31 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: --=-9G6Hq8J3D1EFLvQLNBxS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi guys, Im trying to set up vga passthrough. I use the latest mainline kernel (3.12rc5) and patched qemu (1.6.50). When i try to start a VM using this command: qemu-system-x86_64 -enable-kvm -M q35 -m 1024 -cpu qemu64 -bios /usr/share/qemu/bios.bin -vga none=20 -device ioh3420,bus=3Dpcie.0,addr=3D1c.0,multifunction=3Don,port=3D1,chassis=3D1,id= =3Droot.1 -device vfio-pci,host=3D06:00.0,bus=3Droot.1,multifunction=3Don,x-vga=3Don -device vfio-pci,host=3D06:00.1,bus=3Droot.1 The screen attached to the passthroughed GPU turns on but does not show any output. Also I get some warnings from amd_iommu and my kernel messages are full of AMD-Vi messages: "AMD-Vi: Completion-Wait loop timed out" and "AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=3D06:00.0 address=3D0x0000000438544b90" If i dont stop the qemu process this eventually forces me to reboot since the host gets unusable. I uploaded the whole dmesg output, if its of any help here: http://pastebin.com/ki13dqEd My hardware is an AMD FX-8350 with an Gigabyte 970A-UD3 and a Gigabyte 7870OC. Any help is much appreciated, thanks in advance! --=-9G6Hq8J3D1EFLvQLNBxS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAABAgAGBQJSXuQuAAoJEJA3L6Idl7rbz5oH/j22Msx9UjYBqYMoJ5LJB+e6 tZlWExGFkb9KeoZFJipd6YjbaNqK9230e1Hwa6f69FZ0jfH6xDa8uXWZ2Vrm8QB5 nSeeZntIxTf/nXYRwgAt95IzUrt+wgG/MPs3Xfu0OazVbW/52s1wiM57+GaSM5jg swqhcqC4jX8gnVP5u1/HspWfgwU+i/TSoYlyzhUh/hlzx+B8oqr7XrF4zgxmEP6A mT85E0oxVDe1yhobX5Vy+5AthJop1GVtQedUvymLFtu0ZJW/4OcuUoVcPX6gre2P TauTQMCsCbk5qQ1gKfJpihIdhhwfGbgu9OXLXBmc8d8tpCM88hnU1QS4x6f8AL4= =lS6F -----END PGP SIGNATURE----- --=-9G6Hq8J3D1EFLvQLNBxS--