Re: [Xen-devel] [PATCH V2] xen: avoid race in p2m handling

2014-10-17 Thread David Vrabel
On 17/10/14 12:16, Juergen Gross wrote: > When a new p2m leaf is allocated this leaf is linked into the p2m tree > via cmpxchg. Unfortunately the compare value for checking the success > of the update is read after checking for the need of a new leaf. It is > possible that a new leaf has been linke

[PATCH V2] xen: avoid race in p2m handling

2014-10-17 Thread Juergen Gross
When a new p2m leaf is allocated this leaf is linked into the p2m tree via cmpxchg. Unfortunately the compare value for checking the success of the update is read after checking for the need of a new leaf. It is possible that a new leaf has been linked into the tree concurrently in between. This co