public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* strange error loading kvm module on latest FC6 kernel
@ 2007-03-07  4:28 Greg M Lee
       [not found] ` <1173241719.4317.5.camel-nqhUBgQlnDodtexkPab+ZEgmxNRb6L7S@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Greg M Lee @ 2007-03-07  4:28 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

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

* Re: strange error loading kvm module on latest FC6 kernel
       [not found] ` <1173241719.4317.5.camel-nqhUBgQlnDodtexkPab+ZEgmxNRb6L7S@public.gmane.org>
@ 2007-03-07  7:00   ` Avi Kivity
       [not found]     ` <45EE62F6.3060300-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Avi Kivity @ 2007-03-07  7:00 UTC (permalink / raw)
  To: Greg M Lee; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1: Type: text/plain, Size: 797 bytes --]

Greg M Lee wrote:
> 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?

> 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.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


[-- Attachment #2: module-load-fix.patch --]
[-- Type: text/x-patch, Size: 1173 bytes --]

commit c1a8557e1da6e7d8bf8f77cb1b47c077f5c2a67d
Author: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
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++/Fdg9hUCZPvPmw@public.gmane.org> (?) for reporting
    the problem and for providing access to a machine which exhibited it.
    
    Signed-off-by: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>

diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index e48b4d7..ca82ba3 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -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();

[-- Attachment #3: Type: text/plain, Size: 345 bytes --]

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

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

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

* Re: strange error loading kvm module on latest FC6 kernel
       [not found]     ` <45EE62F6.3060300-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-03-07  8:42       ` Greg M Lee
  2007-03-07 15:34       ` James Morris
  1 sibling, 0 replies; 7+ messages in thread
From: Greg M Lee @ 2007-03-07  8:42 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

On Wed, 2007-03-07 at 09:00 +0200, Avi Kivity wrote:
> Greg M Lee wrote:
> > 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?
> 
> > 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

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

* Re: strange error loading kvm module on latest FC6 kernel
       [not found]     ` <45EE62F6.3060300-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
  2007-03-07  8:42       ` Greg M Lee
@ 2007-03-07 15:34       ` James Morris
  2007-03-08 13:37         ` Daniel J Walsh
  1 sibling, 1 reply; 7+ messages in thread
From: James Morris @ 2007-03-07 15:34 UTC (permalink / raw)
  To: Avi Kivity
  Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Karl MacMillan,
	Greg M Lee, Stephen Smalley, Daniel J Walsh

On Wed, 7 Mar 2007, Avi Kivity wrote:

> Greg M Lee wrote:
> > 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?

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).


> 
> > 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.
> 
> 

-- 
James Morris
<jmorris-gx6/JNMH7DfYtjvyW6yDsg@public.gmane.org>

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

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

* Re: strange error loading kvm module on latest FC6 kernel
  2007-03-07 15:34       ` James Morris
@ 2007-03-08 13:37         ` Daniel J Walsh
       [not found]           ` <1173361148.10467.30.camel@moss-spartans.epoch.ncsc.mil>
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel J Walsh @ 2007-03-08 13:37 UTC (permalink / raw)
  To: James Morris
  Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Karl MacMillan,
	Greg M Lee, Stephen Smalley

James Morris wrote:
> On Wed, 7 Mar 2007, Avi Kivity wrote:
>
>   
>> Greg M Lee wrote:
>>     
>>> 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?
>>     
>
> 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).
>
>
>   
>>> 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

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

* Re: strange error loading kvm module on latest FC6 kernel
       [not found]             ` <1173361148.10467.30.camel-/ugcdrsPCSfIm9DtXLC9OUVfdvkotuLY+aIohriVLy8@public.gmane.org>
@ 2007-03-08 13:52               ` Avi Kivity
  2007-03-08 16:38               ` Daniel J Walsh
  1 sibling, 0 replies; 7+ messages in thread
From: Avi Kivity @ 2007-03-08 13:52 UTC (permalink / raw)
  To: Stephen Smalley
  Cc: Greg M Lee, kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	Daniel J Walsh, Karl MacMillan

Stephen Smalley wrote:
>> 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)

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

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

* Re: strange error loading kvm module on latest FC6 kernel
       [not found]             ` <1173361148.10467.30.camel-/ugcdrsPCSfIm9DtXLC9OUVfdvkotuLY+aIohriVLy8@public.gmane.org>
  2007-03-08 13:52               ` Avi Kivity
@ 2007-03-08 16:38               ` Daniel J Walsh
  1 sibling, 0 replies; 7+ messages in thread
From: Daniel J Walsh @ 2007-03-08 16:38 UTC (permalink / raw)
  To: Stephen Smalley
  Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Greg M Lee,
	Karl MacMillan

Stephen Smalley wrote:
> On Thu, 2007-03-08 at 08:37 -0500, Daniel J Walsh wrote:
>   
>> James Morris wrote:
>>     
>>> On Wed, 7 Mar 2007, Avi Kivity wrote:
>>>
>>>   
>>>       
>>>> Greg M Lee wrote:
>>>>     
>>>>         
>>>>> 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?
>>>>     
>>>>         
>>> 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).
>>>
>>>
>>>   
>>>       
>>>>> 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.
>>     
>
> 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

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

end of thread, other threads:[~2007-03-08 16:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-07  4:28 strange error loading kvm module on latest FC6 kernel Greg M Lee
     [not found] ` <1173241719.4317.5.camel-nqhUBgQlnDodtexkPab+ZEgmxNRb6L7S@public.gmane.org>
2007-03-07  7:00   ` Avi Kivity
     [not found]     ` <45EE62F6.3060300-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-03-07  8:42       ` Greg M Lee
2007-03-07 15:34       ` James Morris
2007-03-08 13:37         ` Daniel J Walsh
     [not found]           ` <1173361148.10467.30.camel@moss-spartans.epoch.ncsc.mil>
     [not found]             ` <1173361148.10467.30.camel-/ugcdrsPCSfIm9DtXLC9OUVfdvkotuLY+aIohriVLy8@public.gmane.org>
2007-03-08 13:52               ` Avi Kivity
2007-03-08 16:38               ` Daniel J Walsh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox