Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278903 - The KVM is no longer supported after I upgrade to gentoo-sources 2.6.30-r2/r3
Summary: The KVM is no longer supported after I upgrade to gentoo-sources 2.6.30-r2/r3
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-24 06:19 UTC by Crob
Modified: 2009-08-02 12:54 UTC (History)
1 user (show)

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


Attachments
dmesg (dmesg.txt,89.47 KB, text/plain)
2009-07-25 00:41 UTC, Crob
Details
My kernel .config of 2.6.30-gentoo-r3 (2.6.30-r3.config,68.61 KB, text/plain)
2009-07-25 00:42 UTC, Crob
Details
the result of 'modprob -v kvm' and 'modprob -v kvm-intel' (modprob.txt,637 bytes, text/plain)
2009-07-25 00:48 UTC, Crob
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Crob 2009-07-24 06:19:12 UTC
After I upgraded to gentoo-sources 2.6.30-r2/r3 from 2.6.28-r5, the kvm modules could be installed.
I'v got some error messages after I did 'make modules_install'.

Reproducible: Always

Steps to Reproduce:
1. # emerge gentoo-sources && cd /usr/src
2. # ln -snf linux-2.6.30-gentoo-r3/ linux && cd linux
3. # make menuconfig && make && make modules_install
4. # mod
Actual Results:  
I got these warnings below after I did 'make modules_install' and 'modprob kvm && modprob kvm-intel'.
And I'v double-check my kernel configure that KVM options were exactly selected.

WARNING: /lib/modules/2.6.30-gentoo-r3/kvm/kvm.ko needs unknown symbol iommu_iova_to_phys
WARNING: /lib/modules/2.6.30-gentoo-r3/kvm/kvm.ko needs unknown symbol iommu_unmap_range
WARNING: /lib/modules/2.6.30-gentoo-r3/kvm/kvm.ko needs unknown symbol iommu_detach_device
WARNING: /lib/modules/2.6.30-gentoo-r3/kvm/kvm.ko needs unknown symbol iommu_domain_free
WARNING: /lib/modules/2.6.30-gentoo-r3/kvm/kvm.ko needs unknown symbol iommu_domain_alloc
WARNING: /lib/modules/2.6.30-gentoo-r3/kvm/kvm.ko needs unknown symbol iommu_map_range
WARNING: /lib/modules/2.6.30-gentoo-r3/kvm/kvm.ko needs unknown symbol iommu_found
WARNING: /lib/modules/2.6.30-gentoo-r3/kvm/kvm.ko needs unknown symbol iommu_attach_device


# modprobe kvm
FATAL: Error inserting kvm (/lib/modules/2.6.30-gentoo-r3/kvm/kvm.ko): Unknown symbol in module, or unknown parameter (see dmesg)

# modprobe kvm-intel
FATAL: Error inserting kvm_intel (/lib/modules/2.6.30-gentoo-r3/kvm/kvm-intel.ko): Unknown symbol in module, or unknown parameter (see dmesg)
 




Expected Results:  
There should be no warning messages after 'make modules_install'

# uname -a
Linux localhost 2.6.30-gentoo-r3 #9 SMP Fri Jul 24 11:19:31 CST 2009 i686 Intel(R) Core(TM)2 Duo CPU P8700 @ 2.53GHz GenuineIntel GNU/Linux

# emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r3-i686-Intel-R-_Core-TM-2_Duo_CPU_P8700_@_2.53GHz-with-glibc2.0
Timestamp of tree: Wed, 22 Jul 2009 04:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
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:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
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/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/ http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa avi cairo crypt cups dbus gif gtk hal jpeg mmx mp3 mpeg mpg nls nptl nptlonly pam pdf png pnp startup-notification unicode v4l v4l2 wav x86 zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="*" 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" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

# cat /proc/cpuinfo 
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Duo CPU     P8700  @ 2.53GHz
stepping	: 10
cpu MHz		: 800.000
cache size	: 3072 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
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 nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida tpr_shadow vnmi flexpriority
bogomips	: 5053.90
clflush size	: 64
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Duo CPU     P8700  @ 2.53GHz
stepping	: 10
cpu MHz		: 800.000
cache size	: 3072 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
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 nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida tpr_shadow vnmi flexpriority
bogomips	: 5053.72
clflush size	: 64
power management:
Comment 1 Crob 2009-07-24 06:21:22 UTC
# emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r3-i686-Intel-R-_Core-TM-2_Duo_CPU_P8700_@_2.53GHz-with-glibc2.0
Timestamp of tree: Wed, 22 Jul 2009 04:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
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:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
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/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/ http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa avi cairo crypt cups dbus gif gtk hal jpeg mmx mp3 mpeg mpg nls nptl nptlonly pam pdf png pnp startup-notification unicode v4l v4l2 wav x86 zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="*" 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" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Stratos Psomadakis (RETIRED) gentoo-dev 2009-07-24 15:00:00 UTC
Can you post the output of dmesg, your kernel config, and the outpout of modprobe -v kvm?
Comment 3 Crob 2009-07-25 00:41:48 UTC
Created attachment 199041 [details]
dmesg

dmesg information after 'modprob -v kvm && modprob -v kvm-intel'
Comment 4 Crob 2009-07-25 00:42:40 UTC
Created attachment 199043 [details]
My kernel .config of 2.6.30-gentoo-r3

My kernel .config of 2.6.30-gentoo-r3
Comment 5 Crob 2009-07-25 00:48:08 UTC
Created attachment 199044 [details]
the result of 'modprob -v kvm' and 'modprob -v kvm-intel'

the result of 'modprob -v kvm' and 'modprob -v kvm-intel'
Comment 6 Crob 2009-07-25 00:48:59 UTC
(In reply to comment #2)
> Can you post the output of dmesg, your kernel config, and the outpout of
> modprobe -v kvm?
> 

I'v uploaded these files. See the attachment. Thanks.
Comment 7 Stratos Psomadakis (RETIRED) gentoo-dev 2009-07-26 10:46:25 UTC
try enabling CONFIG_IOMMU_API and CONFIG_DMAR
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-08-02 10:42:22 UTC
Please try Stratos' suggestion. Ropen this bug if it doesn't fix your problem.

By the way, there's no need to CC yourself when you're the reporter of a bug. You will receive mails on changes to this bug anyway.
Comment 9 Crob 2009-08-02 12:54:03 UTC
It works by using Stratos's suggestion.
Thanks.