From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark McLoughlin Subject: Re: kvm fail to compile with CONFIG_DMAR=y Date: Tue, 06 Jan 2009 10:06:10 +0000 Message-ID: <1231236370.12050.15.camel@localhost.localdomain> References: <0463F45F3606F4428ED35AC8C709F92E047EB171@pdsmsx502.ccr.corp.intel.com> Reply-To: Mark McLoughlin Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: "'kvm@vger.kernel.org'" To: "Xu, Jiajun" Return-path: Received: from mx2.redhat.com ([66.187.237.31]:33750 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750726AbZAFKGO (ORCPT ); Tue, 6 Jan 2009 05:06:14 -0500 In-Reply-To: <0463F45F3606F4428ED35AC8C709F92E047EB171@pdsmsx502.ccr.corp.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, 2009-01-06 at 09:29 +0800, Xu, Jiajun wrote: > Hi, > We found against latest kvm commit, > 2c775aece4cb3a05aa5dc8b9966b39a959252dcd, kvm failed to compile with > CONFIG_DMAR=y. > > The error is like following: > > [root@kvm-build kernel]# make > rm -f include/asm include-compat/asm > ln -sf asm-x86 include/asm > ln -sf asm-x86 include-compat/asm > make -j20 -C /lib/modules/2.6.28-rc6/build M=`pwd` \ > LINUXINCLUDE="-I`pwd`/include -Iinclude \ > \ > -Iarch/x86/include -I`pwd`/include-compat \ > -include include/linux/autoconf.h \ > -include `pwd`/x86/external-module-compat.h " > make[1]: Entering directory `/mnt/sdb1/kernel/src/redhat/BUILD/kernel-2.6.28rc6' > make[3]: *** No rule to make target `/workspace/ia32e/nightly/kvm-master-2.6.28-rc6-20090105091035882/kvm-userspace/kernel/x86/vtd.o', needed by `/workspace/ia32e/nightly/kvm-master-2.6.28-rc6-20090105091035882/kvm-userspace/kernel/x86/kvm.o'. Stop. > make[2]: *** [/workspace/ia32e/nightly/kvm-master-2.6.28-rc6-20090105091035882/kvm-userspace/kernel/x86] Error 2 > make[1]: *** [_module_/workspace/ia32e/nightly/kvm-master-2.6.28-rc6-20090105091035882/kvm-userspace/kernel] Error 2 > make[1]: Leaving directory `/mnt/sdb1/kernel/src/redhat/BUILD/kernel-2.6.28rc6' > make: *** [all] Error 2 > > My host kernel is 2.6.28-rc6. After setting CONFIG_DMAR=n, kvm compile > is OK. So does anyone know how to enable VT-d in latest kvm? This is because virt/kvm/vt-d.c was renamed to virt/kvm/iommu.c Try manually deleting the stale copy of vt-d.c and re-running make. Cheers, Mark.