Skip to contentSkip to conversation

KVM-82 failed to compile

DISCUSSION Simon Gao 6 participants 8 messages Jan 1, 2009 – Jan 22, 2009 KVM

lore
Share & tools
lore

Simon Gao

author
#0 lore raw

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?

author
#1 lore raw
Quoted 16 lines · Simon Gao

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.

Quoted 8 lines

Anyone else has such problem?

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

Actually this compiling problem only occurred to linux-2.6.27-gentoo-r7.

#2 lore raw

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

Quoted 31 lines · Simon Gao
Quoted 16 lines · Simon Gao

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.

Quoted 8 lines

Anyone else has such problem?

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

Signature · 14 lines
-------------------------------------
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: [email protected]
-------------------------------------
author
#3 lore raw
Quoted 5 lines · Nikola Ciprich

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.

#4 lore raw
Quoted 8 lines · Simon Gao
Quoted 6 lines · Nikola Ciprich

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

Quoted 4 lines

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.

Signature · 1 line
error compiling committee.c: too many arguments to function
#5 lore raw
In reply to Simon Gao
Quoted 5 lines · Simon Gao

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"?

Quoted 2 lines

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

Quoted 1 line

Anyone else has such problem?

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

Carlo

#6 lore raw
Quoted 12 lines · Carlo Marcelo Arenas Belon
Quoted 6 lines · Simon Gao

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"?

Quoted 10 lines
Quoted 3 lines

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?

#7 lore raw
Quoted 9 lines · Simon Gao
Quoted 6 lines · Carlo Marcelo Arenas Belon

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

CONFIG_MMU_NOTIFIER=y

Quoted 6 lines

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.