From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikola Ciprich Subject: Re: kvm-86 fails to compile with "'IOMMU_CACHE' undeclared" Date: Wed, 20 May 2009 22:30:22 +0200 Message-ID: <20090520203022.GA6154@nik-comp.linuxbox.cz> References: <20090520174858.GA16793@nightfall.luchs.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: KVM list , nikola.ciprich@linuxbox.cz To: =?iso-8859-1?Q?Ren=E9?= Pfeiffer Return-path: Received: from gwu.lbox.cz ([62.245.111.132]:53831 "EHLO gwu.lbox.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756064AbZETUag (ORCPT ); Wed, 20 May 2009 16:30:36 -0400 Content-Disposition: inline In-Reply-To: <20090520174858.GA16793@nightfall.luchs.at> Sender: kvm-owner@vger.kernel.org List-ID: Hi Rene, as a workaround, You can disable=20 AMD IOMMU support (AMD_IOMMU) and=20 Support for DMA Remapping Devices (EXPERIMENTAL) (DMAR) in Your host kernel. I'll post patch to disable KVM IOMMU support for kernels <2.6.30 soon. BR nik On Wed, May 20, 2009 at 07:48:59PM +0200, Ren=C3=A9 Pfeiffer wrote: > Hello! >=20 > I just tried to compile kvm-86 on two test machines and I get the > following error: >=20 > [...] > CC [M] /usr/src/build/kvm-86/kvm/kernel/x86/iommu.o > /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c: In function =E2=80=98kv= m_iommu_map_pages=E2=80=99: > /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c:90: error: =E2=80=98IOMM= U_CACHE=E2=80=99 undeclared (first use in this function) > /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c:90: error: (Each undecla= red identifier is reported only once > /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c:90: error: for each func= tion it appears in.) > /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c: In function =E2=80=98kv= m_assign_device=E2=80=99: > /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c:155: error: implicit dec= laration of function =E2=80=98iommu_domain_has_cap=E2=80=99 > /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c:156: error: =E2=80=98IOM= MU_CAP_CACHE_COHERENCY=E2=80=99 undeclared (first use in this function) > make[4]: *** [/usr/src/build/kvm-86/kvm/kernel/x86/iommu.o] Error 1 > make[3]: *** [/usr/src/build/kvm-86/kvm/kernel/x86] Error 2 > make[2]: *** [_module_/usr/src/build/kvm-86/kvm/kernel] Error 2 > make[1]: *** [all] Error 2 > make: *** [kvm-kmod] Error 2 >=20 > Both machines run Debian Lenny with a custom kernel (2.6.29.1 and > 2.6.29.3). One machine is Intel-based (Core2Duo), one is AMD-based. B= oth > compiled earlier versions of kvm just fine. configure was run without > options. >=20 > Best, > Ren=C3=A9. >=20 > --=20 > )\._.,--....,'``. fL Let GNU/Linux work for you while you take a = nap. > /, _.. \ _\ (`._ ,. R. Pfeiffer + http://web= =2Eluchs.at/ > `._.-(,_..'--(,_..'`-.;.' - System administration + Consulting + Tea= ching - > Got mail delivery problems? http://web.luchs.at/information/blockedm= ail.php --=20 ------------------------------------- Nikola CIPRICH LinuxBox.cz, s.r.o. 28. rijna 168, 709 01 Ostrava tel.: +420 596 603 142 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: servis@linuxbox.cz -------------------------------------