From: Hollis Blanchard <hollisb@us.ibm.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: [kvm-ppc-devel] guest panic fixed
Date: Thu, 20 Mar 2008 16:12:18 +0000 [thread overview]
Message-ID: <1206029538.6356.3.camel@basalt> (raw)
In-Reply-To: <1205969120.11366.67.camel@basalt>
On Thu, 2008-03-20 at 09:32 +0100, Christian Ehrhardt wrote:
> Hollis Blanchard wrote:
> > Thanks to some excellent debugging by Christian, we found the cause of
> > our annoying guest panics. We had not implemented exception priorities
> > (my bad), so a userspace ITLB miss was being delivered immediately after
> > entry to the decrementer interrupt vector. Patch follows,
> > http://penguinppc.org/~hollisb/kvm/ updated.
> >
> > NFS root with virtio-net still doesn't work for me, but it doesn't
> > crash. :)
> >
> > @@ -65,12 +68,14 @@ extern void kvmppc_44x_tlb_trace(int act
> >
> > static inline void kvmppc_queue_exception(struct kvm_vcpu *vcpu, int exception)
> > {
> > - set_bit(exception, &vcpu->arch.pending_exceptions);
> > + unsigned int priority = exception_priority[exception];
> > + set_bit(priority, &vcpu->arch.pending_exceptions);
>
> saves a line and a local var on irq path (well the compiler might optimize that anyway)
> set_bit(exception_priority[exception], &vcpu->arch.pending_exceptions);
The compiler should handle it; you can examine the disassembly if you're
worried.
--
Hollis Blanchard
IBM Linux Technology Center
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-ppc-devel mailing list
kvm-ppc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel
prev parent reply other threads:[~2008-03-20 16:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-19 23:25 [kvm-ppc-devel] guest panic fixed Hollis Blanchard
2008-03-20 8:32 ` Christian Ehrhardt
2008-03-20 11:08 ` Christian Ehrhardt
2008-03-20 14:58 ` Hollis Blanchard
2008-03-20 16:12 ` Hollis Blanchard [this message]
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=1206029538.6356.3.camel@basalt \
--to=hollisb@us.ibm.com \
--cc=kvm-ppc@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.