All of lore.kernel.org
 help / color / mirror / Atom feed
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: Wed, 27 Apr 2005 15:08:53 -0500	[thread overview]
Message-ID: <426FF155.6050608@us.ibm.com> (raw)
In-Reply-To: <46747f931d038af6b7606bf02b93c216@cl.cam.ac.uk>

Keir Fraser wrote:
> 
> On 27 Apr 2005, at 20:31, Hollis Blanchard wrote:
>>
>> On this subject, I'd also like to ask about full_execution_context_t.
>> execution_context_t is used in a fair number of places in the Xen core;
>> however full_execution_context_t seems to only be used in the dom0
>> interface.
>>
>> The in-Xen analog to full_execution_context_t is arch_exec_domain, with
>> many fields duplicated between the two. Could we consolidate these, or
>> at least give full_execution_context_t a name that better describes its
>> purpose?
> 
> Yes, that's another one that's gross. Maybe rename
> full_execution_context_t to execution_context_t, and rename existing
> execution_context_t to something else (cpu_reg_t, or something like that)?

execution_context_t is also struct xen_regs, so if we like typedefs then
xen_regs_t would be consistent. Right now, lots of code uses xen_regs
and lots uses execution_context_t... should that be made consistent?

xen_regs/execution_context_t seems to mean "state which xen code could
alter", so something to distinguish it from "all CPU state" would be
nice. Maybe something like this:

struct xen_state:  (now xen_regs) state which xen C/asm code could alter
struct vcpu_state: (now exec_domain) all virtual CPU state
struct arch_vcpu_state

("vcpu_regs" might not be good, since we could need to save other
context like software-controlled TLBs, and so "xen_state" would match
"vcpu_state".)

I guess you want to keep a separate virtual CPU struct for the dom0
interface to preserve the ABI? Calling that "execution_context_t" could
work; I don't know what else to call it.

-- 
Hollis Blanchard
IBM Linux Technology Center

  reply	other threads:[~2005-04-27 20:08 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 [this message]
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
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=426FF155.6050608@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.