From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Magicboiz <magicboiz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: kvm-intel kernel panicing 2.6.22 on T7200
Date: Fri, 15 Jun 2007 13:02:50 +0300 [thread overview]
Message-ID: <467263CA.1070507@qumranet.com> (raw)
In-Reply-To: <1181835974.7023.1.camel@linux>
[-- Attachment #1: Type: text/plain, Size: 468 bytes --]
Magicboiz wrote:
> with VNC option, we had better luck: we got an Oops!!:
>
> Jun 14 17:37:35 linux kernel: [ 575.212000] BUG: unable to handle
> kernel NULL pointer dereference at virtual address 00000024
> Jun 14 17:37:35 linux kernel: [ 575.212000] EIP is at mmu_free_roots
> +0x54/0x90 [kvm]
>
Does the attached patch help? (cd to kernel/ and apply with 'patch -p3')
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
[-- Attachment #2: use-zero-consistently-for-missing-shadow-pdpts.patch --]
[-- Type: text/x-patch, Size: 1103 bytes --]
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c
index ad50cfd..f4cb731 100644
--- a/drivers/kvm/mmu.c
+++ b/drivers/kvm/mmu.c
@@ -859,7 +859,7 @@ static void mmu_free_roots(struct kvm_vcpu *vcpu)
page = page_header(root);
--page->root_count;
}
- vcpu->mmu.pae_root[i] = INVALID_PAGE;
+ vcpu->mmu.pae_root[i] = 0;
}
vcpu->mmu.root_hpa = INVALID_PAGE;
}
@@ -888,12 +888,10 @@ static void mmu_alloc_roots(struct kvm_vcpu *vcpu)
for (i = 0; i < 4; ++i) {
hpa_t root = vcpu->mmu.pae_root[i];
- ASSERT(!VALID_PAGE(root));
+ ASSERT(!root);
if (vcpu->mmu.root_level == PT32E_ROOT_LEVEL) {
- if (!is_present_pte(vcpu->pdptrs[i])) {
- vcpu->mmu.pae_root[i] = 0;
+ if (!is_present_pte(vcpu->pdptrs[i]))
continue;
- }
root_gfn = vcpu->pdptrs[i] >> PAGE_SHIFT;
} else if (vcpu->mmu.root_level == 0)
root_gfn = 0;
@@ -1241,7 +1239,7 @@ static int alloc_mmu_pages(struct kvm_vcpu *vcpu)
goto error_1;
vcpu->mmu.pae_root = page_address(page);
for (i = 0; i < 4; ++i)
- vcpu->mmu.pae_root[i] = INVALID_PAGE;
+ vcpu->mmu.pae_root[i] = 0;
return 0;
[-- 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-06-15 10:02 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-14 14:10 kvm-intel kernel panicing 2.6.22 on T7200 Magicboiz
2007-06-14 14:25 ` Gregory Haskins
[not found] ` <1181831139.13335.14.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org>
2007-06-14 15:06 ` Magicboiz
2007-06-14 15:17 ` Gregory Haskins
[not found] ` <1181834264.13335.18.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org>
2007-06-14 15:46 ` Magicboiz
2007-06-15 10:02 ` Avi Kivity [this message]
[not found] ` <467263CA.1070507-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-15 10:42 ` Magicboiz
2007-06-15 10:49 ` Avi Kivity
[not found] ` <46726EA2.4040904-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-15 10:57 ` Magicboiz
2007-06-20 22:02 ` Stephane Eranian
[not found] ` <20070620220214.GF26200-HU54gidqsKnWxDs0y9d3MAC/G2K4zDHf@public.gmane.org>
2007-06-21 9:10 ` Avi Kivity
2007-06-16 7:51 ` Avi Kivity
[not found] ` <46739666.1000102-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-16 9:52 ` Magicboiz
2007-07-10 6:26 ` Jindrich Makovicka
2007-07-10 11:10 ` Avi Kivity
2007-07-14 17:48 ` Jindrich Makovicka
2007-06-14 15:43 ` Luca
2007-08-01 19:03 ` Magic Boiz
-- strict thread matches above, loose matches on Subject: below --
2007-06-13 10:06 Alan Pope
[not found] ` <20070613100624.GA26122-ARoKIbVt0xkAvxtiuMwx3w@public.gmane.org>
2007-06-13 11:01 ` Avi Kivity
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=467263CA.1070507@qumranet.com \
--to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=magicboiz-Re5JQEeQqe8AvxtiuMwx3w@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