diff options
author | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2017-11-05 19:31:43 -0500 |
---|---|---|
committer | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2017-12-14 23:39:15 -0500 |
commit | 683c4b775355cc7acd301e8efe7d4c1c9acdafd8 (patch) | |
tree | 8929b2430d666dba389dbdb1d9e11ebdfa9b431b /scripts/kvm | |
parent | 9375c44fdfc07c0fef3052a3f25a13197a528902 (diff) |
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>
Diffstat (limited to 'scripts/kvm')
0 files changed, 0 insertions, 0 deletions