public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Zhiyong Wu <zwu.kernel@gmail.com>
Cc: kvm@vger.kernel.org, Herbert Xu <herbert@gondor.apana.org.au>,
	llim@redhat.com
Subject: Re: The compiling of lastest KVM user space code FAIL on the lastest kernel tree
Date: Tue, 07 Apr 2009 13:47:17 +0300	[thread overview]
Message-ID: <49DB2F35.90603@redhat.com> (raw)
In-Reply-To: <b1e768440904062331x5a829039rf066544baab1007d@mail.gmail.com>

Zhiyong Wu wrote:
> HI,
>
> when compiling kvm user space on the lastest kernel tree,
>
> the compile FAIL; but on 2.6.29, this compile has succeeded.
>
> The version of the lastest kernel tree is
>
> [root@fedora9 linux-2.6 {master}]$ git describe
> v2.6.29-9854-gd508afb
>
> [root@fedora9 kvm-userspace {master}]$ make
> .......
> rm -f include/asm include-compat/asm
> ln -sf asm-x86 include/asm
> ln -sf asm-x86 include-compat/asm
> make -C /home/zwu/kernel/linux-2.6/ 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[2]: Entering directory `/home/zwu/kernel/linux-2.6'
>   CC [M]  /home/zwu/virt/kvm-userspace/kernel/x86/svm.o
> In file included from /home/zwu/virt/kvm-userspace/kernel/x86/svm.c:57:
> /home/zwu/virt/kvm-userspace/kernel/include/linux/kvm_host.h:191:
> error: field \u2018mmu_notifier\u2019 has incomplete type
> make[4]: *** [/home/zwu/virt/kvm-userspace/kernel/x86/svm.o] Error 1
> make[3]: *** [/home/zwu/virt/kvm-userspace/kernel/x86] Error 2
> make[2]: *** [_module_/home/zwu/virt/kvm-userspace/kernel] Error 2
> make[2]: Leaving directory `/home/zwu/kernel/linux-2.6'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/zwu/virt/kvm-userspace/kernel'
> make: *** [kernel] Error 2
>
> It seems that the macro "CONFIG_MMU_NOTIFIER" is undefined in the
> lastest kernel tree.
>   

You need to select CONFIG_KVM in your .config; that will enable 
CONFIG_MMU_NOTIFIER.


-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2009-04-07 10:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07  6:31 The compiling of lastest KVM user space code FAIL on the lastest kernel tree Zhiyong Wu
2009-04-07 10:47 ` Avi Kivity [this message]
2009-04-08  1:17   ` Zhiyong Wu

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=49DB2F35.90603@redhat.com \
    --to=avi@redhat.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=kvm@vger.kernel.org \
    --cc=llim@redhat.com \
    --cc=zwu.kernel@gmail.com \
    /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