aboutsummaryrefslogtreecommitdiff
path: root/tests/spapr-phb-test.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2015-11-27 15:41:18 +0100
committerMichael S. Tsirkin <mst@redhat.com>2015-12-02 16:42:26 +0200
commit9732baf67850dac57dfc7dc8980bf408889a8973 (patch)
tree1e76601c535c6809a6d00ebff8201d663f1fe8ce /tests/spapr-phb-test.c
parent9d7b969ea6d9663a94760c6c131481b366f4d38a (diff)
vhost-user-test: fix chardriver race
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 manipulated concurrently. We dispatch cleaning the server in an idle source. By the end of the test, we ensure not to leave anything behind by joining the thread and finishing the sources dispatch. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests/spapr-phb-test.c')
0 files changed, 0 insertions, 0 deletions