]> git.proxmox.com Git - mirror_qemu.git/commit
tpm_tis: move buffers from localities into common location
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 10 Nov 2017 01:01:46 +0000 (20:01 -0500)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 22 Dec 2017 14:01:09 +0000 (09:01 -0500)
commit0804084230eaff79b4e00cf1c1bcfeb30e7bb9b4
tree3106ea38a9bc1ffcd95526fdaa453afc6ba2533a
parente6b703f6c7a88f84c62d9b8335ee8f451caa9bda
tpm_tis: move buffers from localities into common location

One read buffer and one write buffer is sufficient for all localities.
The localities cannot all be active at the same time, and only the active
locality can use the r/w buffers. Inactive localities will require the
COMMAND_READY flag to be set on the STS register to move to the READY
state, which then enables access to using the buffer for writing of a
command, while all other localities are inactive.

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