From mboxrd@z Thu Jan 1 00:00:00 1970 From: Max Schettler Subject: Re: Vga passthrough to KVM Guest issues Date: Fri, 01 Nov 2013 17:35:38 +0100 Message-ID: <1383323738.952.5.camel@max-laptop> References: <1381950510.1205.10.camel@max-pc.lan> <1382977039.4097.31.camel@ul30vt.home> <20131101150914.GL17455@8bytes.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-HS19cLvZD23/K1eGzoJt" Cc: Alex Williamson , kvm@vger.kernel.org To: Joerg Roedel Return-path: Received: from mail-ee0-f53.google.com ([74.125.83.53]:57828 "EHLO mail-ee0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753643Ab3KAQfr (ORCPT ); Fri, 1 Nov 2013 12:35:47 -0400 Received: by mail-ee0-f53.google.com with SMTP id e51so2082451eek.26 for ; Fri, 01 Nov 2013 09:35:45 -0700 (PDT) In-Reply-To: <20131101150914.GL17455@8bytes.org> Sender: kvm-owner@vger.kernel.org List-ID: --=-HS19cLvZD23/K1eGzoJt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey Joerg, Am Freitag, den 01.11.2013, 16:09 +0100 schrieb Joerg Roedel: > Hey Max, >=20 > On Mon, Oct 28, 2013 at 10:17:19AM -0600, Alex Williamson wrote: > > On Wed, 2013-10-16 at 21:08 +0200, Max Schettler wrote: > > > Hi guys, > > >=20 > > > 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 t= his > > > command: > > >=20 > > > 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 > > >=20 > > > The screen attached to the passthroughed GPU turns on but does not sh= ow > > > any output. > > > Also I get some warnings from amd_iommu and my kernel messages are fu= ll > > > 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" > > >=20 > > > If i dont stop the qemu process this eventually forces me to reboot > > > since the host gets unusable. > > >=20 > > > I uploaded the whole dmesg output, if its of any help here: > > > http://pastebin.com/ki13dqEd > > >=20 > > > My hardware is an AMD FX-8350 with an Gigabyte 970A-UD3 and a Gigabyt= e > > > 7870OC. > > >=20 > > > Any help is much appreciated, thanks in advance! >=20 > That's interesting, what GPU is it that you are trying to pass through > to the guest? It seems to be an ATS capable device. Either there is a > problem in the AMD IOMMU driver with handling ATS or there is a problem > with the hardware and ATS should not be enabled there. Either way, the > fix/workaround has to be in the AMD IOMMU driver. >=20 >=20 > Joerg I fixed this issue in the meanwhile by switching to another Mainboard, so I guess it was at least somehow associated with the Hardware. The first Setup was this one: AMD FX-8350 Gigabyte 970A-UD3 Gigabyte 7870GHz Edition Sapphire 6450 I switched to an Asrock 990FX Extreme3. --=-HS19cLvZD23/K1eGzoJt 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) iQEcBAABAgAGBQJSc9haAAoJEJA3L6Idl7rbY6gIAISm++HH17EmShk1lI7Hmw9C +dEZZ1KH0DgrR536tyQ0zH4dyvGC+HK+jMaJ30CUwAWikhNlN6Ak/O3zyXGncsya 5b6R5RTeWkGZm+lkBucZqupXCEeTBeIPlaefNdblZA94+jaIki8Xl/L2QcrVJdgb RnEhldWi2n6SuCNu1pwJGocYSpYW81T7Rnlly5rcVRLzLXVKjY5aWkJvSARQMgBC 9NfT+1XeWoproLwhArBowJH1I/5JqJPwGM5L+mlW+ovmPoykD3mAaJsuhMBS89c8 wHDAIYjJp6U7aoPfo6Ov4ZnTc0DJTGpmp/usTx9GIbKtBawR6UfXHSDXscId4a8= =hLpI -----END PGP SIGNATURE----- --=-HS19cLvZD23/K1eGzoJt--