Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290715 - kvm-kmod-88-r1 on intel P8400 and kernel 2.6.30-gentoo-r5 nomultilib: error inserting kvm-intel module (3 unknown symbols only)
Summary: kvm-kmod-88-r1 on intel P8400 and kernel 2.6.30-gentoo-r5 nomultilib: error i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-27 10:36 UTC by Dmitri Ivanov
Modified: 2010-04-29 01:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel config (config,52.27 KB, text/plain)
2009-10-27 10:37 UTC, Dmitri Ivanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitri Ivanov 2009-10-27 10:36:45 UTC
Can't insert kvm-intel module with modprobe: FATAL: Error inserting kvm_intel (/lib/modules/2.6.30-gentoo-r5-VoodooBook-0.30-vgn-sr21rm/kvm/kvm-intel.ko): Unknown symbol in module, or unknown parameter (see dmesg)

dmesg | grep kvm: 
[ 3906.465805] kvm: module is already loaded
[ 3906.466189] kvm_intel: Unknown symbol kvm_disable_largepages
[ 3906.466358] kvm_intel: Unknown symbol kvm_mmu_get_spte_hierarchy
[ 3906.467489] kvm_intel: Unknown symbol kvm_get_guest_memory_type

DMAR and other things from other bugs are on (also checked in off state)... Vt is enabled on both cores (checked with vt.iso). In other bugs and FAQs people had a lot of error srtings (great number of unknown symbols), but I have only 3 - can't find same bug somewere...

Reproducible: Always

Steps to Reproduce:
1.kernel 2.6.30-gentoo-r5, amd64 nomultilib system
2.make && make modules install && make install
3.emerge kvm
4.reboot
5.modprobe kvm-intel


Actual Results:  
FATAL: Error inserting kvm_intel (/lib/modules/2.6.30-gentoo-r5-VoodooBook-0.30-vgn-sr21rm/kvm/kvm-intel.ko): Unknown symbol in module, or unknown parameter (see dmesg)

so, kvm will run without kvm support (/dev/kvm no such file or directory)

Expected Results:  
module needs to be installed successfuly and kvm needs to be run with kvm support...

VoodooBook linux # cat /proc/cpuinfo 
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Duo CPU     P8400  @ 2.26GHz
stepping	: 6
cpu MHz		: 800.000
cache size	: 3072 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm tpr_shadow vnmi flexpriority
bogomips	: 4517.91
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Duo CPU     P8400  @ 2.26GHz
stepping	: 6
cpu MHz		: 800.000
cache size	: 3072 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm tpr_shadow vnmi flexpriority
bogomips	: 4520.67
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

VoodooBook linux # emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5-VoodooBook-0.30-vgn-sr21rm x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-VoodooBook-0.30-vgn-sr21rm-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-1.12.11.1
Timestamp of tree: Mon, 26 Oct 2009 19:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4.1 -mcx16 -msahf -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -msse4.1 -mcx16 -msahf -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles/ http://mirror.yandex.ru/gentoo-distfiles/ "
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en ru"
MAKEOPTS="-j1"
PKGDIR="/usr/voodoobook-pkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi aim alsa amd64 automount bash-completion berkdb bluetooth branding bzip2 cdda cddb cdinstall cdr cgi cli consolekit cracklib crypt cups cxx dbus directfb djvu dri dvd dvdr emerald examples fbcon ffmpeg fontconfig fortran ftp gcj gdbm geoip gif gimp glitz gnome gnome-keyring gpm gtk gtkhtml hal hardened hddtemp iconv icq icu idn ieee1394 ipv6 isdnlog jabber java java6 javascript jingle jpeg jpeg2k lame laptop libgda libnotify lm_sensors lua lzo matroska mime mmx mng modules mp3 mp4 mpeg msn mudflap ncurses networkmanager nls nntp nocd nptl nptlonly nsplugin ogg opengl openmp pam pch pcmcia pcntl pcre pdf perl php png posix postgres pppd python qt3 qt4 quicktime raw rdesktop readline reflection rss ruby scanner sdl session simplexml smartcard smp sockets socks5 source spell spl sse sse2 ssl startup-notification svg symlink sysfs tcl tcpd threads tiff tk tokenizer truetype unicode usb vcd vhosts videos vnc vorbis wifi wxwidgets xcb xcomposite xface xinerama xml xorg xpm xscreensaver xvid yahoo zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Dmitri Ivanov 2009-10-27 10:37:53 UTC
Created attachment 208418 [details]
kernel config
Comment 2 Wormo (RETIRED) gentoo-dev 2009-11-12 06:34:57 UTC
It looks to me like that module is trying to use symbols just added to 2.6.32-rc6
http://www.linuxhq.com/kernel/v2.6/32-rc6/virt/kvm/kvm_main.c
Comment 3 zym 2009-11-13 02:08:47 UTC
from your .config:
CONFIG_HAVE_KVM=y
CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_VIRTUALIZATION=y
CONFIG_KVM=m
# CONFIG_KVM_INTEL is not set

you have enable KVM but distabled KVM_INTEL, you'd better enable KVM_INTEL or disable KVM then install kvm-kmod, mix them is not a good idea, have a try.
Comment 4 zym 2009-11-13 02:20:08 UTC
(In reply to comment #3)
> from your .config:
> CONFIG_HAVE_KVM=y
> CONFIG_HAVE_KVM_IRQCHIP=y
> CONFIG_VIRTUALIZATION=y
> CONFIG_KVM=m
> # CONFIG_KVM_INTEL is not set
> 
> you have enable KVM but distabled KVM_INTEL, you'd better enable KVM_INTEL or
> disable KVM then install kvm-kmod, mix them is not a good idea, have a try.
> 

forget it, I never installed the kvm-kmod, so far.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2010-04-29 01:58:54 UTC
This issue was caused by a mismatch of in kernel and out of kernel modules. This has been fixed in the newer kvm-kmod series that I've added to the tree a while back.