Re: kvm fail to compile with CONFIG_DMAR=y

2009-01-06 Thread Mark McLoughlin
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:
 
 [r...@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.

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


kvm fail to compile with CONFIG_DMAR=y

2009-01-05 Thread Xu, Jiajun

Hi,
We found against latest kvm commit, 2c775aece4cb3a05aa5dc8b9966b39a959252dcd, 
kvm failed to compile with CONFIG_DMAR=y.

The error is like following:

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