Re: [Qemu-devel] [PATCH] tests: fix vhost-user-test race

2015-11-26 Thread Michael S. Tsirkin
On Thu, Nov 26, 2015 at 07:30:55PM +0100, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > vhost-user-tests uses a helper thread to dispatch the vhost-user servers > sources. However the CharDriverState is not thread-safe. Therefore, when > it's given to the thread, it shouldn't b

[Qemu-devel] [PATCH] tests: fix vhost-user-test race

2015-11-26 Thread marcandre . lureau
From: Marc-André Lureau vhost-user-tests uses a helper thread to dispatch the vhost-user servers sources. However the CharDriverState is not thread-safe. Therefore, when it's given to the thread, it shouldn't be maniuplated concurrently. We dispatch cleaning the server in an idle source. By the