]> git.proxmox.com Git - mirror_qemu.git/commit
tpm_emulator: Add a caching layer for the TPM Established flag
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 8 Nov 2017 20:30:18 +0000 (15:30 -0500)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 22 Dec 2017 14:01:09 +0000 (09:01 -0500)
commit0b4c7c65f882fac328f2c97398f06f16fe6d3f12
tree179f0a59462463928e77bf9367874777bbaacb92
parent281f327487c9c9b1599f93c589a408bbf4a651b8
tpm_emulator: Add a caching layer for the TPM Established flag

Add a caching layer for the TPM established flag so that we don't
need to go to the emulator every time the flag is read by accessing
the REG_ACCESS register.

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