Re: [Qemu-devel] [PATCH 5/5] tpm: tpm_passthrough: Fail startup if FE buffer size < BE buffer size

2017-11-08 Thread Stefan Berger
On 11/08/2017 11:22 AM, Marc-André Lureau wrote: Hi Stefan, On Mon, Nov 06, 2017 at 07:58:56PM -0500, Stefan Berger wrote: 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

Re: [Qemu-devel] [PATCH 5/5] tpm: tpm_passthrough: Fail startup if FE buffer size < BE buffer size

2017-11-08 Thread Marc-André Lureau
Hi Stefan, On Mon, Nov 06, 2017 at 07:58:56PM -0500, Stefan Berger wrote: > 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 >

[Qemu-devel] [PATCH 5/5] tpm: tpm_passthrough: Fail startup if FE buffer size < BE buffer size

2017-11-06 Thread Stefan Berger
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 cur