Re: [dpdk-dev] [PATCH] vhost: make the page logging atomic

2017-08-03 Thread Thomas Monjalon
01/08/2017 14:05, Maxime Coquelin: > On 08/01/2017 11:01 AM, Tiwei Bie wrote: > > Each dirty page logging operation should be atomic. But it's not > > atomic in current implementation. So it's possible that some dirty > > pages can't be logged successfully when different threads try to > > log diff

Re: [dpdk-dev] [PATCH] vhost: make the page logging atomic

2017-08-01 Thread Maxime Coquelin
On 08/01/2017 11:01 AM, Tiwei Bie wrote: Each dirty page logging operation should be atomic. But it's not atomic in current implementation. So it's possible that some dirty pages can't be logged successfully when different threads try to log different pages into the same byte of the log buffer

[dpdk-dev] [PATCH] vhost: make the page logging atomic

2017-08-01 Thread Tiwei Bie
Each dirty page logging operation should be atomic. But it's not atomic in current implementation. So it's possible that some dirty pages can't be logged successfully when different threads try to log different pages into the same byte of the log buffer concurrently. This patch fixes this issue. F