]> git.proxmox.com Git - mirror_qemu.git/commit - hw/tpm/tpm_passthrough.c
Extend TPM TIS interface to support TPM 2
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 26 May 2015 20:51:05 +0000 (16:51 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 31 May 2015 18:29:02 +0000 (20:29 +0200)
commit116694c34aa794a994051fce55bfee418fe1521d
treea39a2b1c07f50854b990705b347b8e2f2f73a6d9
parent38d40ff10f71657ea913a63d1f8477be368b92c1
Extend TPM TIS interface to support TPM 2

Following the recent upgrade to version 1.3, extend the TPM TIS
interface with capabilities introduced for support of a TPM 2.

TPM TIS for TPM 2 introduced the following extensions beyond the
TPM TIS 1.3 (used for TPM 1.2):

- A new 32bit interface Id register was introduced.
- New flags for the status (STS) register were defined.
- New flags for the capability flags were defined.

Support the above if a TPM TIS 1.3 for TPM 2 is used with a TPM 2
on the backend side. Support the old TPM TIS 1.3 configuration if a
TPM 1.2 is being used. A subsequent patch will then determine which
TPM version is being used in the backend.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
backends/tpm.c
hw/tpm/tpm_int.h
hw/tpm/tpm_passthrough.c
hw/tpm/tpm_tis.c
hw/tpm/tpm_tis.h
include/sysemu/tpm.h
include/sysemu/tpm_backend.h