From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: David Brown <dmlb2000-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Oopse in kvm
Date: Wed, 18 Apr 2007 11:21:30 +0300 [thread overview]
Message-ID: <4625D50A.3010005@qumranet.com> (raw)
In-Reply-To: <4625A521.6010407-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 982 bytes --]
Avi Kivity wrote:
> David Brown wrote:
>
>> I was wondering of anyone could help out on this, just found an oopse
>> when trying to start rhel4 on i386 box. I was wondering if anyone else
>> has seen this with kvm-18 and if I should submit a bug for it.
>>
>> [10937.520000] BUG: unable to handle kernel NULL pointer dereference
>> [10937.521000] EIP: [<f9004eec>] mmu_page_remove_parent_pte+0xc/0xf0
>> [kvm] SS:ESP 0068:c918fbbc
>> [10937.521000]
>>
>>
>>
>
>
> I've seen a few reports like this, but never managed to get one of my own.
>
> Is this reproducible? If so, a recipe would be _very_ valuable.
>
> At what stage in the boot process does it crash?
>
>
Okay, I got a testcase through a private mail which reproduced this on
guest boot. The attached patch fixes it.
Note that the problem is only with nonpae guests, so if your guest is
pae, you're probably seeing something different.
--
error compiling committee.c: too many arguments to function
[-- Attachment #2: nonpae-oops-fix.patch --]
[-- Type: text/x-patch, Size: 398 bytes --]
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c
index b872f09..c814394 100644
--- a/drivers/kvm/mmu.c
+++ b/drivers/kvm/mmu.c
@@ -1190,6 +1190,7 @@ void kvm_mmu_pre_write(struct kvm_vcpu *vcpu, gpa_t gpa, int bytes)
* and zap two pdes instead of one.
*/
if (level == PT32_ROOT_LEVEL) {
+ page_offset &= ~7; /* kill rounding error */
page_offset <<= 1;
npte = 2;
}
[-- Attachment #3: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- 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
next prev parent reply other threads:[~2007-04-18 8:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-17 20:48 Oopse in kvm David Brown
[not found] ` <9c21eeae0704171348r71a62af8nc98bb018313ca35-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-04-17 20:50 ` David Brown
2007-04-18 4:57 ` Avi Kivity
[not found] ` <4625A521.6010407-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-18 5:11 ` David Brown
2007-04-18 8:21 ` Avi Kivity [this message]
[not found] ` <4625D50A.3010005-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-18 14:18 ` Thomas Glanzmann
[not found] ` <20070418141819.GA13284-vCsBGSbFJi4XOLVLeuLo0p3xXOyapcuTYd9OGiuxSwg@public.gmane.org>
2007-04-18 14:30 ` Avi Kivity
[not found] ` <46262BA3.8070307-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-18 14:35 ` Thomas Glanzmann
[not found] ` <20070418143548.GD13284-vCsBGSbFJi4XOLVLeuLo0p3xXOyapcuTYd9OGiuxSwg@public.gmane.org>
2007-04-18 14:42 ` Avi Kivity
[not found] ` <46262E3B.4010608-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-18 15:02 ` David Brown
[not found] ` <9c21eeae0704180802o492dc754p1eef426bc4408e0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-04-18 15:32 ` Avi Kivity
[not found] ` <462639F1.4020802-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-18 17:07 ` David Brown
2007-04-18 15:07 ` Kiselev, Sergey
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=4625D50A.3010005@qumranet.com \
--to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
--cc=dmlb2000-Re5JQEeQqe8AvxtiuMwx3w@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