Re: kvm-86 fails to compile with "'IOMMU_CACHE' undeclared"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rene,
as a workaround, You can disable 
	AMD IOMMU support (AMD_IOMMU) and 
	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é Pfeiffer wrote:
> Hello!
> 
> I just tried to compile kvm-86 on two test machines and I get the
> following error:
> 
> [...]
>   CC [M]  /usr/src/build/kvm-86/kvm/kernel/x86/iommu.o
> /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c: In function ‘kvm_iommu_map_pages’:
> /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c:90: error: ‘IOMMU_CACHE’ undeclared (first use in this function)
> /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c:90: error: (Each undeclared identifier is reported only once
> /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c:90: error: for each function it appears in.)
> /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c: In function ‘kvm_assign_device’:
> /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c:155: error: implicit declaration of function ‘iommu_domain_has_cap’
> /usr/src/build/kvm-86/kvm/kernel/x86/iommu.c:156: error: ‘IOMMU_CAP_CACHE_COHERENCY’ 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
> 
> 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. Both
> compiled earlier versions of kvm just fine. configure was run without
> options.
> 
> Best,
> René.
> 
> -- 
>   )\._.,--....,'``.  fL  Let GNU/Linux work for you while you take a nap.
>  /,   _.. \   _\  (`._ ,. R. Pfeiffer <lynx at luchs.at> + http://web.luchs.at/
> `._.-(,_..'--(,_..'`-.;.'  - System administration + Consulting + Teaching -
> Got mail delivery problems?  http://web.luchs.at/information/blockedmail.php



-- 
-------------------------------------
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@xxxxxxxxxxx
-------------------------------------
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux