qemu-e2k/hw/tpm
Stefan Berger 683c4b7753 tpm: tpm_passthrough: Fail startup if FE buffer size < BE buffer size
If the requested buffer size of the frontend is smaller than the fixed
buffer size of the host's TPM, fail the startup_tpm() interface function,
which will make the device unusable. We fail it because the backend TPM
could produce larger packets than what the frontend could pass to the OS.

The current combination of TIS frontend and either passthrough or emulator
backend will not lead to this case since the TIS can support any size of
buffer.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2017-12-14 23:39:15 -05:00
..
Makefile.objs tpm: Added support for TPM emulator 2017-10-13 07:34:33 -04:00
tpm_emulator.c tpm: tpm_emulator: get and set buffer size of device 2017-12-14 23:39:15 -05:00
tpm_int.h tpm: tpm_passthrough: Read the buffer size from the host device 2017-12-14 23:39:15 -05:00
tpm_ioctl.h tpm: tpm_emulator: get and set buffer size of device 2017-12-14 23:39:15 -05:00
tpm_passthrough.c tpm: tpm_passthrough: Fail startup if FE buffer size < BE buffer size 2017-12-14 23:39:15 -05:00
tpm_tis.c tpm: tpm_emulator: get and set buffer size of device 2017-12-14 23:39:15 -05:00
tpm_util.c tpm: tpm_passthrough: Read the buffer size from the host device 2017-12-14 23:39:15 -05:00
tpm_util.h tpm: tpm_passthrough: Read the buffer size from the host device 2017-12-14 23:39:15 -05:00