Re: [Qemu-devel] [PATCH 34/42] tpm-passthrough: workaround a possible race

2017-10-10 Thread Stefan Berger
On 10/09/2017 06:56 PM, Marc-André Lureau wrote: The TPM backend processing thread has common shared variable race issues. (they should not be so easy to reach since guest interaction with the device is slow compared to host emulation) An obvious one is setting op_cancelled from device thread af

[Qemu-devel] [PATCH 34/42] tpm-passthrough: workaround a possible race

2017-10-09 Thread Marc-André Lureau
The TPM backend processing thread has common shared variable race issues. (they should not be so easy to reach since guest interaction with the device is slow compared to host emulation) An obvious one is setting op_cancelled from device thread after calling write(cancel_fd). The backend thread ma