[Qemu-devel] [PATCH] tests: Fix signalling race condition in TPM tests

2018-09-28 Thread Stefan Berger
Hi Michael, please apply the below patch to the 2.12 stable tree. It is a backport of commit 2271b75fa9019 from master. For a 3.0 stable branch 'git cherry-pick 2271b75fa9019' should work. Regards, Stefan This patch fixes a race condition and test failure where the main process waits

Re: [Qemu-devel] [PATCH] tests: Fix signalling race condition in TPM tests

2018-09-07 Thread Marc-André Lureau
On Fri, Sep 7, 2018 at 10:47 PM Stefan Berger wrote: > > This patch fixes a race condition and test failure where the main process > waits for the signal of a thread but the thread already sent that signal > via a condition. Since these signals are non-sticky, we need to introduce a > separate

[Qemu-devel] [PATCH] tests: Fix signalling race condition in TPM tests

2018-09-07 Thread Stefan Berger
This patch fixes a race condition and test failure where the main process waits for the signal of a thread but the thread already sent that signal via a condition. Since these signals are non-sticky, we need to introduce a separate variable to make this signal sticky. Signed-off-by: Stefan Berger