Skip to contentSkip to conversation

strange error loading kvm module on latest FC6 kernel

DISCUSSION Greg M Lee 4 participants 7 messages Mar 7, 2007 – Mar 8, 2007 4 messages not in the archive KVM

lore
Share & tools
lore

Greg M Lee

author
#0 lore raw

Hi
updated to latest FC6 kernel yesterday ie 2.6.19-1.2911.6.5.fc6
compiled kvm-15 from sourceforge this morning
chose the unpatched kernel instructions [ was this the right choice ?] configure, make, make install all went fine (some warnings here and there)
modprobe kvm-intel gave a bunch of errors in dmesg the first of which
was: SELinux: initialized (dev kvmfs, type kvmfs), not configured for labeling

so I disabled SELinux
modprobe kvm-intel still gave a bunch of errors in dmesg:

kvm_intel: Unknown symbol gfn_to_memslot
kvm_intel: Unknown symbol set_cr3
kvm_intel: Unknown symbol segment_base
kvm_intel: Unknown symbol kvm_get_msr_common
kvm_intel: Unknown symbol kvm_mmu_free_some_pages
kvm_intel: Unknown symbol load_msrs
kvm_intel: Unknown symbol kvm_write_guest
kvm_intel: Unknown symbol kvm_exit_arch
kvm_intel: Unknown symbol emulate_instruction
kvm_intel: Unknown symbol fx_init
kvm_intel: Unknown symbol set_cr4
kvm_intel: Unknown symbol lmsw
kvm_intel: Unknown symbol kvm_hypercall
kvm_intel: Unknown symbol kvm_init_arch
kvm_intel: Unknown symbol set_cr0
kvm_intel: Unknown symbol kvm_stat
kvm_intel: Unknown symbol set_cr8
kvm_intel: Unknown symbol kvm_read_guest
kvm_intel: Unknown symbol kvm_set_msr_common
kvm_intel: Unknown symbol save_msrs
kvm_intel: Unknown symbol kvm_resched
which I figure is due to the stderr/stdout error:

# modprobe kvm
FATAL: Error inserting kvm
(/lib/modules/2.6.19-1.2911.6.5.fc6/extra/kvm.ko): Success

What should I try next ?

Cheers
-Greg

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

A message that is not in the archive (sent off-list or not yet received): 1173241719.4317.5.camel-nqhUBgQlnDodtexkPab+ZEgmxNRb6L7S@public.gmane.org

#2 lore raw
Quoted 11 lines · Greg M Lee

Hi
updated to latest FC6 kernel yesterday ie 2.6.19-1.2911.6.5.fc6
compiled kvm-15 from sourceforge this morning
chose the unpatched kernel instructions [ was this the right choice ?] configure, make, make install all went fine (some warnings here and there)
modprobe kvm-intel gave a bunch of errors in dmesg the first of which
was: SELinux: initialized (dev kvmfs, type kvmfs), not configured for labeling

Ouch. Anybody here know how to deal with that?

Quoted 5 lines

so I disabled SELinux
modprobe kvm-intel still gave a bunch of errors in dmesg:

kvm_intel: Unknown symbol gfn_to_memslot

Try with the attached patch. Unfortunately you also have to reboot.

Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

commit c1a8557e1da6e7d8bf8f77cb1b47c077f5c2a67d

Author: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/[email protected]>
Date:   Mon Feb 26 16:29:43 2007 +0200

KVM: Fix bogus failure in kvm.ko module initialization

A bogus 'return r' can cause an otherwise successful module load to fail. This both denies users the use of kvm, and it also denies them the use of their machine, as it leaves a filesystem registered with its callbacks pointing into now-freed module memory.

Fix by returning a zero like a good module.

Thanks to Richard Lucassen <mailinglists-+AO6ZX++/[email protected]> (?) for reporting the problem and for providing access to a machine which exhibited it.

drivers/kvm/kvm_main.c +1 -1
index e48b4d7..ca82ba3 100644
@@ -2540,7 +2540,7 @@ static __init int kvm_init(void)
 	bad_page_address = page_to_pfn(bad_page) << PAGE_SHIFT;
 	memset(__va(bad_page_address), 0, PAGE_SIZE);
 
-	return r;
+	return 0;
 
 out:
 	kvm_exit_debug();

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

A message that is not in the archive (sent off-list or not yet received): 45EE62F6.3060300-atKUWr5tajBWk0Htik3J/[email protected]

author
#4 lore raw

Hi
thanks for that. It fixed that problem, but now I get:

# modprobe kvm-intel
FATAL: Error inserting kvm_intel
(/lib/modules/2.6.19-1.2911.6.5.fc6/extra/kvm-intel.ko): Operation not
supported

and dmesg has:
kvm: disabled by bios

I have a Compaq nw8440 which I ordered with the thought of installing Xen (unfortunately I found Xen 3.0 too "clunky"). I went into ROM BIOS and couldn't find any related option, the nearest being: Core Duo:
enabled/disabled. So I guess that I am out of luck :-(

Late news - found a bios update that claims that it adds an option to enable VT. will try tomorrow and report back.

-Greg

Quoted 15 lines · Avi Kivity
Quoted 11 lines · Greg M Lee

Hi
updated to latest FC6 kernel yesterday ie 2.6.19-1.2911.6.5.fc6
compiled kvm-15 from sourceforge this morning
chose the unpatched kernel instructions [ was this the right choice ?] configure, make, make install all went fine (some warnings here and there)
modprobe kvm-intel gave a bunch of errors in dmesg the first of which
was: SELinux: initialized (dev kvmfs, type kvmfs), not configured for labeling

Ouch. Anybody here know how to deal with that?

Quoted 8 lines
Quoted 5 lines

so I disabled SELinux
modprobe kvm-intel still gave a bunch of errors in dmesg:

kvm_intel: Unknown symbol gfn_to_memslot

Try with the attached patch. Unfortunately you also have to reboot.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#5 lore raw
In reply to a message not in the archive
Quoted 13 lines · Avi Kivity
Quoted 11 lines · Greg M Lee

Hi
updated to latest FC6 kernel yesterday ie 2.6.19-1.2911.6.5.fc6
compiled kvm-15 from sourceforge this morning
chose the unpatched kernel instructions [ was this the right choice ?] configure, make, make install all went fine (some warnings here and there)
modprobe kvm-intel gave a bunch of errors in dmesg the first of which
was: SELinux: initialized (dev kvmfs, type kvmfs), not configured for labeling

Quoted 1 line

Ouch. Anybody here know how to deal with that?

It's not an error, SELinux just doesn't know about this type of fs, and there's no configuration for the mount point. Looks like the SELinux policy package needs to be updated. (Note that this has nothing to do with the errors encountered).

Quoted 10 lines
Quoted 6 lines

so I disabled SELinux
modprobe kvm-intel still gave a bunch of errors in dmesg:

kvm_intel: Unknown symbol gfn_to_memslot

Try with the attached patch. Unfortunately you also have to reboot.

Signature · 8 lines
James Morris
<jmorris-gx6/[email protected]>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
#6 lore raw
Quoted 17 lines · James Morris
Quoted 14 lines · Avi Kivity
Quoted 12 lines · Greg M Lee

Hi
updated to latest FC6 kernel yesterday ie 2.6.19-1.2911.6.5.fc6
compiled kvm-15 from sourceforge this morning
chose the unpatched kernel instructions [ was this the right choice ?] configure, make, make install all went fine (some warnings here and there)
modprobe kvm-intel gave a bunch of errors in dmesg the first of which
was: SELinux: initialized (dev kvmfs, type kvmfs), not configured for labeling

Quoted 22 lines
Quoted 2 lines

Ouch. Anybody here know how to deal with that?

It's not an error, SELinux just doesn't know about this type of fs, and there's no configuration for the mount point. Looks like the SELinux policy package needs to be updated. (Note that this has nothing to do with the errors encountered).

Quoted 10 lines
Quoted 6 lines

so I disabled SELinux
modprobe kvm-intel still gave a bunch of errors in dmesg:

kvm_intel: Unknown symbol gfn_to_memslot

Try with the attached patch. Unfortunately you also have to reboot.

I will add this fs to policy.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1173361148.10467.30.camel-/[email protected]

#9 lore raw
Quoted 7 lines · Stephen Smalley
Quoted 2 lines

I will add this fs to policy.

What are the protection requirements for it? What should be allowed to access it?

It's unmountable, so no one outside the kernel should be able to access it.

Within the kernel, if you have access to the /dev/kvm inode, you should be able to access it.

2.6.22 may have an anonymous inode internal filesystem, which will supercede kvmfs (and eventpollfs and friends)

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
#10 lore raw
In reply to a message not in the archive
Quoted 49 lines · Stephen Smalley
Quoted 47 lines · Daniel J Walsh
Quoted 45 lines · James Morris
Quoted 16 lines · Avi Kivity
Quoted 13 lines · Greg M Lee

Hi
updated to latest FC6 kernel yesterday ie 2.6.19-1.2911.6.5.fc6
compiled kvm-15 from sourceforge this morning
chose the unpatched kernel instructions [ was this the right choice ?] configure, make, make install all went fine (some warnings here and there)
modprobe kvm-intel gave a bunch of errors in dmesg the first of which
was: SELinux: initialized (dev kvmfs, type kvmfs), not configured for labeling

Quoted 3 lines

Ouch. Anybody here know how to deal with that?

It's not an error, SELinux just doesn't know about this type of fs, and there's no configuration for the mount point. Looks like the SELinux policy package needs to be updated. (Note that this has nothing to do with the errors encountered).

Quoted 12 lines
Quoted 7 lines

so I disabled SELinux
modprobe kvm-intel still gave a bunch of errors in dmesg:

kvm_intel: Unknown symbol gfn_to_memslot

Try with the attached patch. Unfortunately you also have to reboot.

Quoted 7 lines
Quoted 2 lines

I will add this fs to policy.

What are the protection requirements for it? What should be allowed to access it?

I have no clue, Just adding it as a fs_type. Just like debugfs_t.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV