]> git.proxmox.com Git - mirror_qemu.git/commit
tpm-backend: Add new API to read backend TpmInfo
authorAmarnath Valluri <amarnath.valluri@intel.com>
Fri, 29 Sep 2017 11:10:17 +0000 (14:10 +0300)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 13 Oct 2017 11:34:33 +0000 (07:34 -0400)
commitf59864ba3aedd26aef7c84545cc1e565caccebf7
tree983a625007c81afa85697b95fc7b9a33ce73e2a1
parent93330cf542b920b6ea5fea8120a08b76bb353113
tpm-backend: Add new API to read backend TpmInfo

TPM configuration options are backend implementation details and shall not be
part of base TPMBackend object, and these shall not be accessed directly outside
of the class, hence added a new interface method, get_tpm_options() to
TPMDriverOps., which shall be implemented by the derived classes to return
configured tpm options.

A new tpm backend api - tpm_backend_query_tpm() which uses _get_tpm_options() to
prepare TpmInfo.

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