From mboxrd@z Thu Jan 1 00:00:00 1970 From: Da Powah Subject: Re: Passthrough of 2 PCI devices works 80% (Kernel 2.6.37, Debian Squeeze, Win7 VM) Date: Thu, 17 Feb 2011 21:14:52 +0000 (UTC) Message-ID: References: <1297898691.14733.216.camel@x201> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from lo.gmane.org ([80.91.229.12]:41254 "EHLO lo.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753282Ab1BQVPG (ORCPT ); Thu, 17 Feb 2011 16:15:06 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PqBBo-0001pY-2k for kvm@vger.kernel.org; Thu, 17 Feb 2011 22:15:04 +0100 Received: from i577ABF86.versanet.de ([87.122.191.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Feb 2011 22:15:04 +0100 Received: from dapowah by i577ABF86.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Feb 2011 22:15:04 +0100 Sender: kvm-owner@vger.kernel.org List-ID: I extracted some WindowsXPpro VM PCI data with pcitree - maybe this giv= es you a hint: IRQ Mapping: INT line 0 <- INT line 1 <- INT line 2 <- INT line 3 <- INT line 4 <- INT line 5 <- 5<-A(0.3.0)1000.1AF4 5<-A(0.7.0)7146.1131 INT line 6 <- INT line 7 <- INT line 8 <- INT line 9 <- 9<-A(0.1.3)7113.8086 INT line 10 <- 10<-D(0.1.2)7020.8086 10<-A(0.4.0)1001.1AF4 10<-A(0.6.0)= 1002.1AF4 INT line 11 <- 11<-A(0.5.0)7146.1131 INT line 12 <- INT line 13 <- INT line 14 <- INT line 15 <- IO memory Map: =460000000 <- : BAR1(0.2.0)15AD.0405 =460800000 <- : =461000000 <- : BAR2(0.2.0)15AD.0405 BAR1(0.3.0)1AF4.1000 BAR0(0.5.0)1131.7146 BAR0(0.7.0)1131.7146 host CPU : 0.00.0 Host/PCI; Bridge Device 8086 1237 [Intel] 82440/1FX 4= 40FX=20 =C2=B4(Natoma) System Controller: 82440/1FX 440FX (Natoma) System Contr= oller=20 // SubIDs 1af4 1100 no-name: no-name 1237 8086 <00 : DID VID 0000 0003 <04 : Stat Cmd 0600 0002 <08 : BaseClass SubClass PgmIF RevID 0000 0000 <0C : BIST Header LatTimer CacheLSize 0000 0000 <10 : BAR 0 0000 0000 <14 : BAR 1 0000 0000 <18 : BAR 2 0000 0000 <1C : BAR 3 0000 0000 <20 : BAR 4 0000 0000 <24 : BAR 5 0000 0000 <28 : Cardbus_CIS_Ptr 1100 1AF4 <2C : SubID SubVendorID 0000 0000 <30 : Exp_ROM_BAR 0000 0000 <34 : reserved 0000 0000 <38 : reserved 0000 0000 <3C : maxLat minGnt IntPin IntLine : 0.01.0 PCI/ISA; Bridge Device 8086 7000 [Intel] 82371SB PIIX= 3=20 ISA Bridge: 82371SB PIIX3 ISA Bridge // SubIDs 1af4 1100 no-name: no-n= ame 7000 8086 <00 : DID VID 0200 0007 <04 : Stat Cmd 0601 0000 <08 : BaseClass SubClass PgmIF RevID 0080 0000 <0C : BIST Header LatTimer CacheLSize 0000 0000 <10 : BAR 0 0000 0000 <14 : BAR 1 0000 0000 <18 : BAR 2 0000 0000 <1C : BAR 3 0000 0000 <20 : BAR 4 0000 0000 <24 : BAR 5 0000 0000 <28 : Cardbus_CIS_Ptr 1100 1AF4 <2C : SubID SubVendorID 0000 0000 <30 : Exp_ROM_BAR 0000 0000 <34 : reserved 0000 0000 <38 : reserved 0000 0000 <3C : maxLat minGnt IntPin IntLine : 0.01.1 o. Mass Storage Controller 8086 7010 [Intel] 82371SB = PIIX3 EIDE Controller: 82371SB PIIX3 EIDE Controller=20 // SubIDs 1af4 1100 no-name: no-name 7010 8086 <00 : DID VID 0280 0007 <04 : Stat Cmd 0101 8000 <08 : BaseClass SubClass PgmIF RevID 0000 0000 <0C : BIST Header LatTimer CacheLSize 0000 0000 <10 : BAR 0 0000 0000 <14 : BAR 1 0000 0000 <18 : BAR 2 0000 0000 <1C : BAR 3 0000 C001 <20 : BAR 4 io 0000 0000 <24 : BAR 5 0000 0000 <28 : Cardbus_CIS_Ptr 1100 1AF4 <2C : SubID SubVendorID 0000 0000 <30 : Exp_ROM_BAR 0000 0000 <34 : reserved 0000 0000 <38 : reserved 0000 0000 <3C : maxLat minGnt IntPin IntLine : 0.01.2 Universal Host Controller; USB (Universal Serial Bus);= =20 Serial Bus Controller 8086 7020 [Intel] 82371SB PIIX3 USB Controller:=20 82371SB PIIX3 USB Controller // SubIDs 1af4 1100 no-name: no-name 7020 8086 <00 : DID VID 0000 0007 <04 : Stat Cmd 0C03 0001 <08 : BaseClass SubClass PgmIF RevID 0000 0000 <0C : BIST Header LatTimer CacheLSize 0000 0000 <10 : BAR 0 0000 0000 <14 : BAR 1 0000 0000 <18 : BAR 2 0000 0000 <1C : BAR 3 0000 C021 <20 : BAR 4 io 0000 0000 <24 : BAR 5 0000 0000 <28 : Cardbus_CIS_Ptr 1100 1AF4 <2C : SubID SubVendorID 0000 0000 <30 : Exp_ROM_BAR 0000 0000 <34 : reserved 0000 0000 <38 : reserved 0000 040A <3C : maxLat minGnt IntPin IntLine : 0.01.3 Other; Bridge Device 8086 7113 [Intel] 82371AB/EB/MB=20 PIIX4/E/M Power Management Controller: 82371AB/EB/MB PIIX4/E/M=20 Power Management Controller // SubIDs 1af4 1100 no-name: no-name 7113 8086 <00 : DID VID 0280 0003 <04 : Stat Cmd 0680 0003 <08 : BaseClass SubClass PgmIF RevID 0000 0000 <0C : BIST Header LatTimer CacheLSize 0000 0000 <10 : BAR 0 0000 0000 <14 : BAR 1 0000 0000 <18 : BAR 2 0000 0000 <1C : BAR 3 0000 0000 <20 : BAR 4 0000 0000 <24 : BAR 5 0000 0000 <28 : Cardbus_CIS_Ptr 1100 1AF4 <2C : SubID SubVendorID 0000 0000 <30 : Exp_ROM_BAR 0000 0000 <34 : reserved 0000 0000 <38 : reserved 0000 0109 <3C : maxLat minGnt IntPin IntLine : 0.02.0 VGA; PC Compatible; Display Controller 15ad 0405 [VMw= are]=20 VGA 4.0.5: VGA 4.0.5 // SubIDs 15ad 0405 VGA 4.0.5: VGA 4.0.5 0405 15AD <00 : DID VID 0000 0007 <04 : Stat Cmd 0300 0000 <08 : BaseClass SubClass PgmIF RevID 0000 4000 <0C : BIST Header LatTimer CacheLSize 0000 C041 <10 : BAR 0 io =46000 0008 <14 : BAR 1 mem pref. 32bit =46100 0008 <18 : BAR 2 mem pref. 32bit 0000 0000 <1C : BAR 3 0000 0000 <20 : BAR 4 0000 0000 <24 : BAR 5 0000 0000 <28 : Cardbus_CIS_Ptr 0405 15AD <2C : SubID SubVendorID 0000 0000 <30 : Exp_ROM_BAR 0000 0000 <34 : reserved 0000 0000 <38 : reserved 0000 0000 <3C : maxLat minGnt IntPin IntLine : 0.03.0 Ethernet; Network Controller 1af4 1000 [no VID] no de= vice=20 name found: no device description found // SubIDs 1af4 0001 no-name: n= o-name 1000 1AF4 <00 : DID VID 0010 0007 <04 : Stat Cmd 0200 0000 <08 : BaseClass SubClass PgmIF RevID 0000 0000 <0C : BIST Header LatTimer CacheLSize 0000 C061 <10 : BAR 0 io =46101 0000 <14 : BAR 1 mem 32bit 0000 0000 <18 : BAR 2 0000 0000 <1C : BAR 3 0000 0000 <20 : BAR 4 0000 0000 <24 : BAR 5 0000 0000 <28 : Cardbus_CIS_Ptr 0001 1AF4 <2C : SubID SubVendorID 0000 0000 <30 : Exp_ROM_BAR 0000 0040 <34 : reserved 0000 0000 <38 : reserved 0000 0105 <3C : maxLat minGnt IntPin IntLine : 0.04.0 SCSI; Mass Storage Controller 1af4 1001 [no VID] no d= evice=20 name found: no device description found // SubIDs 1af4 0002 no-name: n= o-name 1001 1AF4 <00 : DID VID 0000 0007 <04 : Stat Cmd 0100 0000 <08 : BaseClass SubClass PgmIF RevID 0000 0000 <0C : BIST Header LatTimer CacheLSize 0000 C081 <10 : BAR 0 io 0000 0000 <14 : BAR 1 0000 0000 <18 : BAR 2 0000 0000 <1C : BAR 3 0000 0000 <20 : BAR 4 0000 0000 <24 : BAR 5 0000 0000 <28 : Cardbus_CIS_Ptr 0002 1AF4 <2C : SubID SubVendorID 0000 0000 <30 : Exp_ROM_BAR 0000 0000 <34 : reserved 0000 0000 <38 : reserved 0000 010A <3C : maxLat minGnt IntPin IntLine : 0.05.0 Other; Multimedia Device 1131 7146 [Philips] SAA7146=20 Multimedia Bridge Scaler: SAA7146 Multimedia Bridge Scaler=20 // SubIDs 13c2 1019 Happauge WinTV: no-name 7146 1131 <00 : DID VID 0280 0006 <04 : Stat Cmd 0480 0001 <08 : BaseClass SubClass PgmIF RevID 0000 0000 <0C : BIST Header LatTimer CacheLSize =46101 1000 <10 : BAR 0 mem 32bit 0000 0000 <14 : BAR 1 0000 0000 <18 : BAR 2 0000 0000 <1C : BAR 3 0000 0000 <20 : BAR 4 0000 0000 <24 : BAR 5 0000 0000 <28 : Cardbus_CIS_Ptr 1019 13C2 <2C : SubID SubVendorID 0000 0000 <30 : Exp_ROM_BAR 0000 0040 <34 : reserved 0000 0000 <38 : reserved 260F 010B <3C : maxLat minGnt IntPin IntLine : 0.06.0 RAM; Memory Controller 1af4 1002 [no VID] no device n= ame=20 found: no device description found // SubIDs 1af4 0005 no-name: no-nam= e 1002 1AF4 <00 : DID VID 0000 0003 <04 : Stat Cmd 0500 0000 <08 : BaseClass SubClass PgmIF RevID 0000 0000 <0C : BIST Header LatTimer CacheLSize 0000 C0C1 <10 : BAR 0 io 0000 0000 <14 : BAR 1 0000 0000 <18 : BAR 2 0000 0000 <1C : BAR 3 0000 0000 <20 : BAR 4 0000 0000 <24 : BAR 5 0000 0000 <28 : Cardbus_CIS_Ptr 0005 1AF4 <2C : SubID SubVendorID 0000 0000 <30 : Exp_ROM_BAR 0000 0000 <34 : reserved 0000 0000 <38 : reserved 0000 010A <3C : maxLat minGnt IntPin IntLine : 0.07.0 Other; Multimedia Device 1131 7146 [Philips] SAA7146=20 Multimedia Bridge Scaler: SAA7146 Multimedia Bridge Scaler=20 // SubIDs 13c2 1019 Happauge WinTV: no-name 7146 1131 <00 : DID VID 0280 0006 <04 : Stat Cmd 0480 0001 <08 : BaseClass SubClass PgmIF RevID 0000 0000 <0C : BIST Header LatTimer CacheLSize =46101 2000 <10 : BAR 0 mem 32bit 0000 0000 <14 : BAR 1 0000 0000 <18 : BAR 2 0000 0000 <1C : BAR 3 0000 0000 <20 : BAR 4 0000 0000 <24 : BAR 5 0000 0000 <28 : Cardbus_CIS_Ptr 1019 13C2 <2C : SubID SubVendorID 0000 0000 <30 : Exp_ROM_BAR 0000 0040 <34 : reserved 0000 0000 <38 : reserved 260F 0105 <3C : maxLat minGnt IntPin IntLine