|
|
|
|
|
|
|
|
|
|
xen-devel
[XenPPC] Re: [RFC PATCH 28/33] Add Xen grant table support
To: |
Hollis Blanchard <hollisb@xxxxxxxxxx> |
Subject: |
[XenPPC] Re: [RFC PATCH 28/33] Add Xen grant table support |
From: |
Segher Boessenkool <segher@xxxxxxxxxxxxxxxxxxx> |
Date: |
Tue, 25 Jul 2006 21:06:51 +0200 |
Cc: |
Andrew Morton <akpm@xxxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Ian Pratt <ian.pratt@xxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Chris Wright <chrisw@xxxxxxxxxxxx>, virtualization@xxxxxxxxxxxxxx, xen-ppc-devel <xen-ppc-devel@xxxxxxxxxxxxxxxxxxx> |
Delivery-date: |
Tue, 25 Jul 2006 12:07:11 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxx |
In-reply-to: |
<1153852204.5665.10.camel@xxxxxxxxxxxxxxxxxxxxx> |
List-help: |
<mailto:xen-ppc-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen PPC development <xen-ppc-devel.lists.xensource.com> |
List-post: |
<mailto:xen-ppc-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<20060718091807.467468000@xxxxxxxxxxxx> <20060718091956.905130000@xxxxxxxxxxxx> <1153852204.5665.10.camel@xxxxxxxxxxxxxxxxxxxxx> |
Sender: |
xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx |
I object to these uses of (synch_)cmpxchg on a uint16_t in common
code.
Many architectures, including PowerPC, do not support 2-byte atomic
operations, but this code is common to all Xen architectures.
RMW operations you mean, I suppose. On PowerPC, all (naturally
aligned) halfword operations are atomic; there do not exist any
RMW operations; but word and doubleword atomic RMW operations
can be emulated.
Boils down to the same thing of course, but it isn't the same ;-)
Segher
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|
|
|
|
|