>>> On 24.06.15 at 07:18, wrote:
> --- a/xen/include/xen/types.h
> +++ b/xen/include/xen/types.h
> @@ -47,6 +47,11 @@ typedef __u64 uint64_t;
> typedef __u64 u_int64_t;
> typedef __s64 int64_t;
>
> +typedef struct {
> +uint64_t low;
> -Original Message-
> From: Jan Beulich [mailto:jbeul...@suse.com]
> Sent: Wednesday, July 08, 2015 4:44 PM
> To: Wu, Feng
> Cc: Andrew Cooper; george.dun...@eu.citrix.com; Tian, Kevin; Zhang, Yang Z;
> xen-devel@lists.xen.org; k...@xen.org
> Subject: RE: [Xen-
On 08/07/2015 09:12, Jan Beulich wrote:
>
>>>
+{
+uint128_t prev;
+
+ASSERT(cpu_has_cx16);
>>> Given that if this assertion were to fail, cmpxchg16b would fail with
>>> #UD, I would hand-code a asm_fixup section which in turn panics. This
>>> avoids a situation where no
>>> On 08.07.15 at 10:33, wrote:
>> From: Jan Beulich [mailto:jbeul...@suse.com]
>> Sent: Wednesday, July 08, 2015 4:13 PM
>> >>> On 08.07.15 at 09:06, wrote:
>> >> From: xen-devel-boun...@lists.xen.org
>> >> [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of Andrew Cooper
>> >> Sent: Thursda
> >> Sent: Thursday, June 25, 2015 2:35 AM
> >> To: Wu, Feng; xen-devel@lists.xen.org
> >> Cc: george.dun...@eu.citrix.com; Zhang, Yang Z; Tian, Kevin; k...@xen.org;
> >> jbeul...@suse.com
> >> Subject: Re: [Xen-devel] [v3 03/15] Add cmpxchg16b support for
en.org
>> Cc: george.dun...@eu.citrix.com; Zhang, Yang Z; Tian, Kevin; k...@xen.org;
>> jbeul...@suse.com
>> Subject: Re: [Xen-devel] [v3 03/15] Add cmpxchg16b support for x86-64
>>
>> On 24/06/15 06:18, Feng Wu wrote:
>> > This patch adds cmpx
evin; k...@xen.org;
> jbeul...@suse.com
> Subject: Re: [Xen-devel] [v3 03/15] Add cmpxchg16b support for x86-64
>
> On 24/06/15 06:18, Feng Wu wrote:
> > This patch adds cmpxchg16b support for x86-64, so software
> > can perform 128-bit atomic write/read.
> >
> > S
On 24/06/15 06:18, Feng Wu wrote:
> This patch adds cmpxchg16b support for x86-64, so software
> can perform 128-bit atomic write/read.
>
> Signed-off-by: Feng Wu
> ---
> v3:
> Newly added.
>
> xen/include/asm-x86/x86_64/system.h | 28
> xen/include/xen/types.h
This patch adds cmpxchg16b support for x86-64, so software
can perform 128-bit atomic write/read.
Signed-off-by: Feng Wu
---
v3:
Newly added.
xen/include/asm-x86/x86_64/system.h | 28
xen/include/xen/types.h | 5 +
2 files changed, 33 insertions(+)