From: Mark McLoughlin <markmc@redhat.com>
To: "Xu, Jiajun" <jiajun.xu@intel.com>
Cc: "'kvm@vger.kernel.org'" <kvm@vger.kernel.org>
Subject: Re: kvm fail to compile with CONFIG_DMAR=y
Date: Tue, 06 Jan 2009 10:06:10 +0000 [thread overview]
Message-ID: <1231236370.12050.15.camel@localhost.localdomain> (raw)
In-Reply-To: <0463F45F3606F4428ED35AC8C709F92E047EB171@pdsmsx502.ccr.corp.intel.com>
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.
prev parent reply other threads:[~2009-01-06 10:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 1:29 kvm fail to compile with CONFIG_DMAR=y Xu, Jiajun
2009-01-06 10:06 ` Mark McLoughlin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1231236370.12050.15.camel@localhost.localdomain \
--to=markmc@redhat.com \
--cc=jiajun.xu@intel.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox