public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Greg M Lee <Greg.Lee-CM8Ft84HMKulVyrhU4qvOw@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: strange error loading kvm module on latest FC6 kernel
Date: Wed, 07 Mar 2007 09:00:06 +0200	[thread overview]
Message-ID: <45EE62F6.3060300@qumranet.com> (raw)
In-Reply-To: <1173241719.4317.5.camel-nqhUBgQlnDodtexkPab+ZEgmxNRb6L7S@public.gmane.org>

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

  parent reply	other threads:[~2007-03-07  7:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45EE62F6.3060300@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=Greg.Lee-CM8Ft84HMKulVyrhU4qvOw@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox