]> git.proxmox.com Git - mirror_qemu.git/commit - hw/tpm/tpm_tis.c
tpm: Move getting TPM buffer size to backends
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 3 Nov 2017 22:10:01 +0000 (18:10 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 15 Dec 2017 04:39:15 +0000 (23:39 -0500)
commitb21e6aaf4a1e25c22a603e22ef96b3a31d3013aa
treef7d9e09aefd608d3edaead9fb13b58162163571e
parentd3fd953f06700ebe2d15825d4399f7cd3e31af34
tpm: Move getting TPM buffer size to backends

Rather than setting the size of the TPM buffer in the front-end,
query the backend for the size of the buffer. In this patch we
just move the hard-coded buffer size of 4096 to the backends.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
backends/tpm.c
hw/tpm/tpm_emulator.c
hw/tpm/tpm_passthrough.c
hw/tpm/tpm_tis.c
include/sysemu/tpm_backend.h