public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Ryan Harper <ryanh-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: BUG_ON in mmu.c:436
Date: Sun, 30 Sep 2007 09:32:34 +0200	[thread overview]
Message-ID: <46FF5112.3080206@qumranet.com> (raw)
In-Reply-To: <20070928181915.GH7519-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

Ryan Harper wrote:
> * Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org> [2007-09-24 16:39]:
>   
>> Ryan Harper wrote:
>>     
>>> * Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> [2007-09-24 02:57]:
>>>  
>>>       
>>>> Ryan Harper wrote:
>>>>    
>>>>         
>>>>> I've run into a nasty bug while trying to install a Linux guest using
>>>>> VMware Server inside a kvm guest (full dmesg attached and recreate
>>>>> instructions below bug).
>>>>>
>>>>>
>>>>>      
>>>>>           
>>>> Can you reproduce this with AUDIT turned on (top of mmu.c)? AUDIT is 
>>>> very slow, so it's recommended to reduce guest memory as much as possible.
>>>>    
>>>>         
>>> Working on it -- running for the better part of today with 256MB and I'm
>>> still booting up the guest.  I'll let you know how things go tomorrow.
>>> Any thoughts on how to speed audit runs up other than lower guest
>>> memory?
>>>  
>>>       
>> savevm right before you're about to launch your test w/o audit enabled.  
>> then launch with loadvm and audit enabled and hit <enter> to launch your 
>> test.
>>     
>
> That was highly effective in getting as close to the fault as possible.
>   

We may want to add a module parameter so that audit can be enabled and 
disabled at runtime when compiled in.

> I ended up removing all callers to kvm_mmu_audit() and added one to
> mmu.c:rmap_write_protect() write before the BUG_ON() fires.  Here is the
> kvm_mmu_audit() output the crash generates:
>
>
> audit_write_protection: (rmap_write_protect()) shadow page has writable mappings: gfn 5297 role 112
> audit_write_protection: (rmap_write_protect()) shadow page has writable mappings: gfn 6d52 role 112
> audit_write_protection: (rmap_write_protect()) shadow page has writable mappings: gfn 659b role 12
>   


We need to bracket the error so that we know exactly where the problem 
starts to appear, and then enable debug (conditionally on rip and/or 
cr2) so that we have a full trace of what happens.


-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

  parent reply	other threads:[~2007-09-30  7:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-23 21:55 BUG_ON in mmu.c:436 Ryan Harper
     [not found] ` <20070923215548.GP7519-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-09-24  2:39   ` Scott Serr
2007-09-24  7:54   ` Avi Kivity
     [not found]     ` <46F76D46.7040502-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-24 21:26       ` Ryan Harper
     [not found]         ` <20070924212649.GS7519-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-09-24 21:37           ` Anthony Liguori
     [not found]             ` <46F82E36.7000402-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-09-28 18:19               ` Ryan Harper
     [not found]                 ` <20070928181915.GH7519-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-09-30  7:32                   ` Avi Kivity [this message]
2007-09-25  8:00           ` 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=46FF5112.3080206@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=ryanh-r/Jw6+rmf7HQT0dZR+AlfA@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