tpm_tis: limit size of buffer from backend
commit1af3d63ea3b0d18a6f17e4587f48529cd4fb26f0
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 10 Nov 2017 00:24:02 +0000 (9 19:24 -0500)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 22 Dec 2017 14:01:09 +0000 (22 09:01 -0500)
tree8efdf238b1a8e729b5aee804026aaefcecd46455
parent8a2306c7ed30bfc88cf7e3aced8c2867525f8d4b
tpm_tis: limit size of buffer from backend

This is a preparatory patch for the subsequent ones where we
get rid of the flexibility of supporting any kind of buffer size
that the backend may support. We keep the size at 4096, which is
also the size the external emulator supports. So, limit the size
of the buffer we can support and pass it back to the backend.

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