From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: IRQ issue on graphics card passthrough Date: Sun, 05 Jun 2011 10:30:19 +0200 Message-ID: <4DEB3E9B.5000906@web.de> References: <4DEA704E.2080504@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC96FE151460A996CE2874C35" Cc: kvm@vger.kernel.org To: =?ISO-8859-1?Q?Andr=E9_Weidemann?= Return-path: Received: from fmmailgate02.web.de ([217.72.192.227]:53788 "EHLO fmmailgate02.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754732Ab1FEIal (ORCPT ); Sun, 5 Jun 2011 04:30:41 -0400 Received: from smtp06.web.de ( [172.20.5.172]) by fmmailgate02.web.de (Postfix) with ESMTP id AC1D81A1DB091 for ; Sun, 5 Jun 2011 10:30:39 +0200 (CEST) In-Reply-To: <4DEA704E.2080504@web.de> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC96FE151460A996CE2874C35 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2011-06-04 19:50, Andr=E9 Weidemann wrote: > Hi, > as mentioned before I have successfully passed a graphics card from a > Linux host to VM using qemu-kvm. >=20 > Shortly after starting the VM and before Windows7 initializes the > graphics card, "info pci" looks like this: > Bus 0, device 4, function 0: > VGA controller: PCI device 1002:6719 > IRQ 10. > BAR0: 32 bit prefetchable memory at 0xe0000000 [0xefffffff]. > BAR2: 32 bit memory at 0xfeba0000 [0xfebbffff]. > BAR4: I/O at 0xc000 [0xc0ff]. > BAR6: 32 bit memory at 0xffffffffffffffff [0x0001fffe]. > id "radeon6950" >=20 > After Windows has initialized the graphics card, "info pci" lists the > following for the graphics card: > Bus 0, device 4, function 0: > VGA controller: PCI device 1002:6719 > IRQ 0. > BAR0: 32 bit prefetchable memory at 0xe0000000 [0xefffffff]. > BAR2: 32 bit memory at 0xfeba0000 [0xfebbffff]. > BAR4: I/O at 0xc000 [0xc0ff]. > BAR6: 32 bit memory at 0xffffffffffffffff [0x0001fffe]. > id "radeon6950" >=20 > Notice that the IRQ changed from 10 to 0... >=20 > The graphics card's IRQ under Windows7 is displayed as: > "0xFFFFFFFE (-2)". That's not necessarily pointing to a problem, that just means Windows is using the device in MSI mode. Does it do the same when running natively? >=20 > During another problem of assigning sound cards to a VM, Jan Kiszka ha= s > pointed me to a patch that addresses an IRQ issue: > http://thread.gmane.org/gmane.comp.emulators.qemu/102540 > Unfortuantely it does not help here. For sure, that patch addresses a legacy interrupt issue, nothing MSI-related. Jan --------------enigC96FE151460A996CE2874C35 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk3rPqkACgkQitSsb3rl5xQYmQCg63ZMlIRVV5kPs2+limu/r428 adUAnjsxL0wy81msGZG+DI6TZKz8r8nA =xrjI -----END PGP SIGNATURE----- --------------enigC96FE151460A996CE2874C35--