* kvm fail to compile with CONFIG_DMAR=y
@ 2009-01-06 1:29 Xu, Jiajun
2009-01-06 10:06 ` Mark McLoughlin
0 siblings, 1 reply; 2+ messages in thread
From: Xu, Jiajun @ 2009-01-06 1:29 UTC (permalink / raw)
To: 'kvm@vger.kernel.org'
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?
Best Regards
Jiajun
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: kvm fail to compile with CONFIG_DMAR=y
2009-01-06 1:29 kvm fail to compile with CONFIG_DMAR=y Xu, Jiajun
@ 2009-01-06 10:06 ` Mark McLoughlin
0 siblings, 0 replies; 2+ messages in thread
From: Mark McLoughlin @ 2009-01-06 10:06 UTC (permalink / raw)
To: Xu, Jiajun; +Cc: 'kvm@vger.kernel.org'
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-06 10:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-06 1:29 kvm fail to compile with CONFIG_DMAR=y Xu, Jiajun
2009-01-06 10:06 ` Mark McLoughlin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox