From: Hollis Blanchard <hollisb@us.ibm.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: "Magenheimer,
Dan (HP Labs Fort Collins)" <dan.magenheimer@hp.com>,
Xen-devel <xen-devel@lists.xensource.com>
Subject: Re: Re: Xen/ia64 presentation
Date: Thu, 28 Apr 2005 13:58:38 -0500 [thread overview]
Message-ID: <4271325E.9020307@us.ibm.com> (raw)
In-Reply-To: <38880a67d18698b906a675852e9a80b1@cl.cam.ac.uk>
Keir Fraser wrote:
>
> On 28 Apr 2005, at 19:10, Hollis Blanchard wrote:
>
>> I see you just renamed some structures in the unstable tree... now how
>> about exec_domain? Are we happy with "vcpu_state"?
>
> The '_state' seems a bit superfluous. How about just 'struct vcpu'?
Sure.
>>> xen_regs/xen_state should probably be entirely arch-specific anyway.
>>> Even now it only pokes through into common code in interrupt-handler
>>> definitions (the final parameter is a xen_regs pointer). It'd be great
>>> to nuke those last few from common code. :-)
>>
>>
>> Yup. I think this could be done by passing 'current' to
>> show_registers(), and let the arch code figure out what to do from
>> there. After I get PPC to a more useful state I will see about the
>> patch, if somebody hasn't beaten me to it...
>
>
> I've decided to backtracked on this one. Every architecture will have
> the concept of an interrupted activation, and a stack frame containing
> (at least some of) that activation's state.
Doesn't necessarily have to be on the stack; on PowerPC we are currently
using a separately-allocated piece of memory.
> The pointer passed to IRQ
> handlers is a pointer to that state on the stack. If we do not pass it
> explicitly to the handler then it is very hard to reliably recalculate
> it if it is needed, and it is useful for debugging purposes at the very
> least.
What "debugging purposes"? We've already seen that the only common code
using that type is to pass to (architecture-specific) show_registers().
x86 can get at its state by masking off ESP. PPC can get at it via
'current'. Why then pass a pointer through all interrupt handlers when
none of them care?
> A 'cpu_user_regs' seems like something every arch can provide, right?
PowerPC can, yes.
--
Hollis Blanchard
IBM Linux Technology Center
next prev parent reply other threads:[~2005-04-28 18:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-27 17:25 Xen/ia64 presentation Magenheimer, Dan (HP Labs Fort Collins)
2005-04-27 19:12 ` Hollis Blanchard
2005-04-27 19:24 ` Keir Fraser
2005-04-27 19:31 ` Hollis Blanchard
2005-04-27 19:34 ` Keir Fraser
2005-04-27 20:08 ` Hollis Blanchard
2005-04-28 8:32 ` Keir Fraser
2005-04-28 8:54 ` Keir Fraser
2005-04-28 18:10 ` Hollis Blanchard
2005-04-28 18:38 ` Keir Fraser
2005-04-28 18:58 ` Hollis Blanchard [this message]
2005-04-28 19:47 ` Keir Fraser
2005-04-28 20:11 ` Hollis Blanchard
2005-04-27 19:31 ` Keir Fraser
-- strict thread matches above, loose matches on Subject: below --
2005-04-27 21:47 Magenheimer, Dan (HP Labs Fort Collins)
2005-04-27 22:34 ` Hollis Blanchard
2005-04-28 14:53 Dong, Eddie
2005-04-28 19:05 Magenheimer, Dan (HP Labs Fort Collins)
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=4271325E.9020307@us.ibm.com \
--to=hollisb@us.ibm.com \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=dan.magenheimer@hp.com \
--cc=xen-devel@lists.xensource.com \
/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.