[dpdk-dev] [PATCH] vhost: make the page logging atomic
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Aug 1 14:05:44 CEST 2017
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 concurrently.
> This patch fixes this issue.
>
> Fixes: b171fad1ffa5 ("vhost: log used vring changes")
> Cc:stable at dpdk.org
>
> Reported-by: Xiao Wang<xiao.w.wang at intel.com>
> Signed-off-by: Tiwei Bie<tiwei.bie at intel.com>
> ---
> lib/librte_vhost/vhost.h | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list