All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xensource.com>
To: Jan Beulich <jbeulich@novell.com>,
	Ian Campbell <Ian.Campbell@XenSource.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: trap bounce flags
Date: Wed, 25 Apr 2007 11:16:46 +0100	[thread overview]
Message-ID: <C254E91E.DD02%keir@xensource.com> (raw)
In-Reply-To: <C254E789.DCFB%keir@xensource.com>

On 25/4/07 11:10, "Keir Fraser" <keir@xensource.com> wrote:

>> - from the above, why is it that only the lower byte (if anything) needs
>> clearing?
> 
> Really it's a one-byte field: it's consistently treated that way in asm
> code. The upper byte is always zero. We should probably make the field
> explicitly uint8_t. Agree?

FYI, we need to clear that field usually because the contents are one-shot
but the structure itself is permanent and checked on every return to guest.
A non-zero flags field is what we use to indicate whether the structure is
'primed' or not. So the passing in of a different, non-one-shot, structure
on the direct-int80 path is a bit abusive of the interface. But I think we
can live with it if we reset the flags field manually and include a comment.
:-)

 -- Keir

  reply	other threads:[~2007-04-25 10:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-25  9:56 trap bounce flags Jan Beulich
2007-04-25 10:10 ` Keir Fraser
2007-04-25 10:16   ` Keir Fraser [this message]
2007-04-25 10:33   ` Jan Beulich
2007-04-25 10:41     ` Keir Fraser
2007-04-25 10:56       ` Keir Fraser
2007-04-25 11:11         ` Jan Beulich
2007-04-25 11:26           ` Keir Fraser
2007-04-25 11:48             ` Jan Beulich

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=C254E91E.DD02%keir@xensource.com \
    --to=keir@xensource.com \
    --cc=Ian.Campbell@XenSource.com \
    --cc=jbeulich@novell.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.