Re: [PATCH] tpm: fixed be_buffer_size size in in tpm_crb

2021-12-26 Thread Yuri Konotopov
27.12.2021 06:24, Stefan Berger пишет: I suppose the host has a TIS interface. Hello, Stefan. I do not think so. There is only tpm_crb tpm kernel module compiled in my system # systemd-cryptenroll --tpm2-device=list PATH    DEVICE  DRIVER /dev/tpmrm0 MSFT0101:00 tpm_crb The rea

Re: [PATCH] tpm: fixed be_buffer_size size in in tpm_crb

2021-12-26 Thread Stefan Berger
On 12/26/21 21:24, Stefan Berger wrote: On 12/25/21 07:38, Yuri Konotopov wrote: Trying to boot VM with TPM 2.0 CRB in passthrough mode without this change I got "Requested buffer size of 3968 is smaller than host TPM's fixed buffer size of 4096". I suppose the host has a TIS interface. T

Re: [PATCH] tpm: fixed be_buffer_size size in in tpm_crb

2021-12-26 Thread Stefan Berger
On 12/25/21 07:38, Yuri Konotopov wrote: Trying to boot VM with TPM 2.0 CRB in passthrough mode without this change I got "Requested buffer size of 3968 is smaller than host TPM's fixed buffer size of 4096". I suppose the host has a TIS interface. The reason it gives this message is that the

Re: [PATCH] tpm: fixed be_buffer_size size in in tpm_crb

2021-12-25 Thread Philippe Mathieu-Daudé
+Marc-André On 12/25/21 13:38, Yuri Konotopov wrote: > Trying to boot VM with TPM 2.0 CRB in passthrough mode without this change > I got "Requested buffer size of 3968 is smaller than host TPM's fixed > buffer size of 4096". > Looks like it can not be less than backend buffer size nor less than >

[PATCH] tpm: fixed be_buffer_size size in in tpm_crb

2021-12-25 Thread Yuri Konotopov
Trying to boot VM with TPM 2.0 CRB in passthrough mode without this change I got "Requested buffer size of 3968 is smaller than host TPM's fixed buffer size of 4096". Looks like it can not be less than backend buffer size nor less than CRB_CTRL_CMD_SIZE. Signed-off-by: Yuri Konotopov --- hw/tpm/