qemu-e2k/hw/tpm
Marc-André Lureau 17b1af773e tpm-emulator: protect concurrent ctrl_chr access
The control chardev is being used from the data thread to set the
locality of the next request. Altough the chr has a write mutex, we
may potentially read the reply from another thread request.

Add a mutex to protect from concurrent control commands.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2017-11-15 06:47:35 -05:00
..
Makefile.objs
tpm_emulator.c tpm-emulator: protect concurrent ctrl_chr access 2017-11-15 06:47:35 -05:00
tpm_int.h
tpm_ioctl.h
tpm_passthrough.c
tpm_tis.c tpm: print buffers received from TPM when debugging 2017-10-25 01:05:53 -04:00
tpm_util.c
tpm_util.h