diff options
author | Marc-André Lureau | 2017-11-06 19:39:18 +0100 |
---|---|---|
committer | Stefan Berger | 2017-12-15 05:39:15 +0100 |
commit | ff5ce21e1b959206f257967d6de2efa6f4e3d188 (patch) | |
tree | b11b60db00d0af91f4a2c3b4a8ab319af7c37065 /include | |
parent | tpm: add tpm_cmd_get_size() to tpm_util (diff) | |
download | qemu-ff5ce21e1b959206f257967d6de2efa6f4e3d188.tar.gz qemu-ff5ce21e1b959206f257967d6de2efa6f4e3d188.tar.xz qemu-ff5ce21e1b959206f257967d6de2efa6f4e3d188.zip |
acpi: change TPM TIS data conditions
The device should be exposed if present. It shouldn't have an
undefined version (or else backend init failed, and device should fail
too). Finally, make the fields specific to TIS device model.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/tpm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sysemu/tpm.h b/include/sysemu/tpm.h index 650b4b8565..852e02687c 100644 --- a/include/sysemu/tpm.h +++ b/include/sysemu/tpm.h @@ -47,6 +47,9 @@ typedef struct TPMIfClass { #define TYPE_TPM_TIS "tpm-tis" +#define TPM_IS_TIS(chr) \ + object_dynamic_cast(OBJECT(chr), TYPE_TPM_TIS) + /* returns NULL unless there is exactly one TPM device */ static inline TPMIf *tpm_find(void) { |