WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] Re: [rfc] [patch] grant_entry.flags accessors

To: Hollis Blanchard <hollisb@xxxxxxxxxx>
Subject: [Xen-devel] Re: [rfc] [patch] grant_entry.flags accessors
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: 2006年6月27日 16:24:21 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, xen-ppc-devel <xen-ppc-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: 2006年6月27日 08:24:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1151420814.31429.35.camel@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1151097564.14454.44.camel@xxxxxxxxxxxxxxxxxxxxx> <46ab924009436680faa7cc0cb807c411@xxxxxxxxxxxx> <1151420814.31429.35.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 27 Jun 2006, at 16:06, Hollis Blanchard wrote:
In the couple cases so far, we know that even though the field is only
one or two bytes, it's actually safe to do a four-byte load/store to it
because the containing structure is large enough.
I'm not really comfortable with making that a blanket assumption. I'd
really like to know exactly what we're overwriting when performing these
hacks^Woperations.
You won't be overwriting anything else since you'll be performing an atomic read-modify-write that does not change any of the bits outside the subword of interest. More precisely, you may overwrite those bits outside the subword, but it's guaranteed to be with the current contents so there'll be no externally visible change and you won't clobber anything. Since you'll do an aligned longword operation you can't end up straddling a page boundary or anything nasty like that.
 -- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] Re: [rfc] [patch] grant_entry.flags accessors , Hollis Blanchard
Next by Date: [Xen-devel] xen test results on Unisys ES7000 , Krysan, Susan
Previous by Thread: [Xen-devel] Re: [rfc] [patch] grant_entry.flags accessors , Hollis Blanchard
Next by Thread: [Xen-devel] Re: [rfc] [patch] grant_entry.flags accessors , Hollis Blanchard
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /