From: Marcelo Tosatti <mtosatti@redhat.com>
To: Paul Brook <paul@codesourcery.com>
Cc: "Alberto Treviño" <alberto@byu.edu>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: LSI: avoid infinite loops
Date: Thu, 8 May 2008 00:13:15 -0300 [thread overview]
Message-ID: <20080508031315.GA29572@dmt> (raw)
In-Reply-To: <200805080152.11677.paul@codesourcery.com>
On Thu, May 08, 2008 at 01:52:11AM +0100, Paul Brook wrote:
> On Thursday 08 May 2008, Paul Brook wrote:
> > On Thursday 08 May 2008, Marcelo Tosatti wrote:
> > > On Thu, May 08, 2008 at 12:21:54AM +0100, Paul Brook wrote:
> > > > On Thursday 08 May 2008, Marcelo Tosatti wrote:
> > > > > The Windows driver has SCRIPTS code which busy loops on main memory.
> > > > > So give the CPU's a chance to run if that happens.
> > > >
> > > > I'm kinda surprised this works. What causes the scripts engine to be
> > > > restarted?
> > >
> > > LSI_ISTAT0_SIGP.
> >
> > In that case my surprise continues, and this is looking like an
> > unbelievably horrid hack.
> >
> > By my reading you're making LSI_ISTAT0_SIGP effect whatever instruction
> > happens to be executing when we stall. You get doubly lucky because (a) the
> > guest OS decides to bang on SIGP, even though it doesn't need to. And (b)
> > the last instruction executed happens to have set dnad to a value that
> > "works". I'm guessing you always happen to stop execution on the
> > conditional jump instruction and taking that jump doesn't cause any bad
> > effects, right?
>
> Oh, I'd also be worried what happens if an async IO operation completes at
> this point. lsi_command_complete is liable to trample all over your state.
So what do you suggest as a proper fix?
next prev parent reply other threads:[~2008-05-08 3:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-07 23:02 [Qemu-devel] LSI: avoid infinite loops Marcelo Tosatti
2008-05-07 23:21 ` [Qemu-devel] " Paul Brook
2008-05-07 23:42 ` Marcelo Tosatti
2008-05-08 0:39 ` Paul Brook
2008-05-08 0:52 ` Paul Brook
2008-05-08 3:13 ` Marcelo Tosatti [this message]
2008-06-19 21:53 ` Marcelo Tosatti
2008-06-19 22:33 ` Paul Brook
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=20080508031315.GA29572@dmt \
--to=mtosatti@redhat.com \
--cc=alberto@byu.edu \
--cc=paul@codesourcery.com \
--cc=qemu-devel@nongnu.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.