From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: trap bounce flags Date: Wed, 25 Apr 2007 11:16:46 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , Ian Campbell Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 25/4/07 11:10, "Keir Fraser" 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