kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* KVM-82 failed to compile
@ 2009-01-01 20:17 Simon Gao
  2009-01-01 22:06 ` Simon Gao
  2009-01-02  8:29 ` Carlo Marcelo Arenas Belon
  0 siblings, 2 replies; 8+ messages in thread
From: Simon Gao @ 2009-01-01 20:17 UTC (permalink / raw)
  To: KVM list

I am seeing following error while compiling kvm-82:

In file included from /tmp/kvm-82/kernel/x86/svm.c:56:
/tmp/kvm-82/kernel/include/linux/kvm_host.h:171: error: field
‘mmu_notifier’ has incomplete type
make[4]: *** [/tmp/kvm-82/kernel/x86/svm.o] Error 1
make[3]: *** [/tmp/kvm-82/kernel/x86] Error 2
make[2]: *** [_module_/tmp/kvm-82/kernel] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r7'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/kvm-82/kernel'
make: *** [kernel] Error 2

This error occurred to both  linux-2.6.26-gentoo-r4 and
linux-2.6.27-gentoo-r7.

Anyone else has such problem?



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: KVM-82 failed to compile
  2009-01-01 20:17 KVM-82 failed to compile Simon Gao
@ 2009-01-01 22:06 ` Simon Gao
  2009-01-02 14:58   ` Nikola Ciprich
  2009-01-02  8:29 ` Carlo Marcelo Arenas Belon
  1 sibling, 1 reply; 8+ messages in thread
From: Simon Gao @ 2009-01-01 22:06 UTC (permalink / raw)
  To: KVM list

Simon Gao wrote:
> I am seeing following error while compiling kvm-82:
>
> In file included from /tmp/kvm-82/kernel/x86/svm.c:56:
> /tmp/kvm-82/kernel/include/linux/kvm_host.h:171: error: field
> ‘mmu_notifier’ has incomplete type
> make[4]: *** [/tmp/kvm-82/kernel/x86/svm.o] Error 1
> make[3]: *** [/tmp/kvm-82/kernel/x86] Error 2
> make[2]: *** [_module_/tmp/kvm-82/kernel] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r7'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/tmp/kvm-82/kernel'
> make: *** [kernel] Error 2
>
> This error occurred to both  linux-2.6.26-gentoo-r4 and
> linux-2.6.27-gentoo-r7.
>
> Anyone else has such problem?
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   
Actually this compiling problem only occurred to linux-2.6.27-gentoo-r7. 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: KVM-82 failed to compile
  2009-01-01 20:17 KVM-82 failed to compile Simon Gao
  2009-01-01 22:06 ` Simon Gao
@ 2009-01-02  8:29 ` Carlo Marcelo Arenas Belon
  2009-01-02 17:52   ` Simon Gao
  1 sibling, 1 reply; 8+ messages in thread
From: Carlo Marcelo Arenas Belon @ 2009-01-02  8:29 UTC (permalink / raw)
  To: Simon Gao; +Cc: KVM list

Thu, Jan 01, 2009 at 12:17:06PM -0800, Simon Gao wrote:
> I am seeing following error while compiling kvm-82:
> 
> In file included from /tmp/kvm-82/kernel/x86/svm.c:56:
> /tmp/kvm-82/kernel/include/linux/kvm_host.h:171: error: field
> ‘mmu_notifier’ has incomplete type

does that line correspond to "struct mmu_motifier"?

> This error occurred to both  linux-2.6.26-gentoo-r4 and
> linux-2.6.27-gentoo-r7.

has your kernel configuration (/usr/src/linux/.config) the following
enabled?

  CONFIG_MMU_NOTIFIER=y

> Anyone else has such problem?

FWIW I have kvm-82 compiled against linux-2.6.27-gentoo-r7

Carlo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: KVM-82 failed to compile
  2009-01-01 22:06 ` Simon Gao
@ 2009-01-02 14:58   ` Nikola Ciprich
  2009-01-08 17:57     ` Simon Gao
  0 siblings, 1 reply; 8+ messages in thread
From: Nikola Ciprich @ 2009-01-02 14:58 UTC (permalink / raw)
  To: Simon Gao; +Cc: KVM list, nikola.ciprich

Hi,
enable KVM support on kernel against which You're compiling..
n.

On Thu, Jan 01, 2009 at 02:06:26PM -0800, Simon Gao wrote:
> Simon Gao wrote:
> > I am seeing following error while compiling kvm-82:
> >
> > In file included from /tmp/kvm-82/kernel/x86/svm.c:56:
> > /tmp/kvm-82/kernel/include/linux/kvm_host.h:171: error: field
> > ‘mmu_notifier’ has incomplete type
> > make[4]: *** [/tmp/kvm-82/kernel/x86/svm.o] Error 1
> > make[3]: *** [/tmp/kvm-82/kernel/x86] Error 2
> > make[2]: *** [_module_/tmp/kvm-82/kernel] Error 2
> > make[2]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r7'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory `/tmp/kvm-82/kernel'
> > make: *** [kernel] Error 2
> >
> > This error occurred to both  linux-2.6.26-gentoo-r4 and
> > linux-2.6.27-gentoo-r7.
> >
> > Anyone else has such problem?
> >
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe kvm" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >   
> Actually this compiling problem only occurred to linux-2.6.27-gentoo-r7. 
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
-------------------------------------
Nikola CIPRICH
LinuxBox.cz, s.r.o.
28. rijna 168, 709 01 Ostrava

tel.:   +420 596 603 142
fax:    +420 596 621 273
mobil:  +420 777 093 799

www.linuxbox.cz

mobil servis: +420 737 238 656
email servis: servis@linuxbox.cz
-------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: KVM-82 failed to compile
  2009-01-02  8:29 ` Carlo Marcelo Arenas Belon
@ 2009-01-02 17:52   ` Simon Gao
  2009-01-02 21:09     ` walt
  0 siblings, 1 reply; 8+ messages in thread
From: Simon Gao @ 2009-01-02 17:52 UTC (permalink / raw)
  To: Carlo Marcelo Arenas Belon; +Cc: KVM list

Carlo Marcelo Arenas Belon wrote:
> Thu, Jan 01, 2009 at 12:17:06PM -0800, Simon Gao wrote:
>   
>> I am seeing following error while compiling kvm-82:
>>
>> In file included from /tmp/kvm-82/kernel/x86/svm.c:56:
>> /tmp/kvm-82/kernel/include/linux/kvm_host.h:171: error: field
>> ‘mmu_notifier’ has incomplete type
>>     
>
> does that line correspond to "struct mmu_motifier"?
>
>   
>> This error occurred to both  linux-2.6.26-gentoo-r4 and
>> linux-2.6.27-gentoo-r7.
>>     
>
> has your kernel configuration (/usr/src/linux/.config) the following
> enabled?
>
>   CONFIG_MMU_NOTIFIER=y
>
>   
I did not see the config parameter in my .config file, only has:

CONFIG_MMU=y
# CONFIG_IOMMU_HELPER is not set

Is there other parameter to enable to see the option?


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: KVM-82 failed to compile
  2009-01-02 17:52   ` Simon Gao
@ 2009-01-02 21:09     ` walt
  0 siblings, 0 replies; 8+ messages in thread
From: walt @ 2009-01-02 21:09 UTC (permalink / raw)
  To: kvm

Simon Gao wrote:
> Carlo Marcelo Arenas Belon wrote:


>> has your kernel configuration (/usr/src/linux/.config) the following
>> enabled?
>>
>>    CONFIG_MMU_NOTIFIER=y
>>
>>
> I did not see the config parameter in my .config file, only has:
>
> CONFIG_MMU=y
> # CONFIG_IOMMU_HELPER is not set
>
> Is there other parameter to enable to see the option?

Do 'make menuconfig' and select the second item from the bottom:
Virtualization-->Kernel-based Virtualization (KVM) support.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: KVM-82 failed to compile
  2009-01-02 14:58   ` Nikola Ciprich
@ 2009-01-08 17:57     ` Simon Gao
  2009-01-22 15:03       ` Avi Kivity
  0 siblings, 1 reply; 8+ messages in thread
From: Simon Gao @ 2009-01-08 17:57 UTC (permalink / raw)
  To: KVM list

Nikola Ciprich wrote:
> Hi,
> enable KVM support on kernel against which You're compiling..
> n.
>
>   
That did it. So from 2.6.27 and on, we need to enable KVM module in
kernel no matter we want to use a separate outside module or not. This
is a little strange.






^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: KVM-82 failed to compile
  2009-01-08 17:57     ` Simon Gao
@ 2009-01-22 15:03       ` Avi Kivity
  0 siblings, 0 replies; 8+ messages in thread
From: Avi Kivity @ 2009-01-22 15:03 UTC (permalink / raw)
  To: Simon Gao; +Cc: KVM list

Simon Gao wrote:
> Nikola Ciprich wrote:
>   
>> Hi,
>> enable KVM support on kernel against which You're compiling..
>> n.
>>
>>   
>>     
> That did it. So from 2.6.27 and on, we need to enable KVM module in
> kernel no matter we want to use a separate outside module or not. This
> is a little strange.
>   

While we could work around this, it actually buys you important 
functionality (full swapping) so I'd rather keep it this way.  Distros 
will enable kvm, so most users won't notice this at all.

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-01-22 15:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-01 20:17 KVM-82 failed to compile Simon Gao
2009-01-01 22:06 ` Simon Gao
2009-01-02 14:58   ` Nikola Ciprich
2009-01-08 17:57     ` Simon Gao
2009-01-22 15:03       ` Avi Kivity
2009-01-02  8:29 ` Carlo Marcelo Arenas Belon
2009-01-02 17:52   ` Simon Gao
2009-01-02 21:09     ` walt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).