diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-11-06 19:39:18 +0100 |
---|---|---|
committer | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2017-12-14 23:39:15 -0500 |
commit | ff5ce21e1b959206f257967d6de2efa6f4e3d188 (patch) | |
tree | b11b60db00d0af91f4a2c3b4a8ab319af7c37065 /include | |
parent | 5cf954d02161a974c16b33189192b43da9ac4413 (diff) | |
download | qemu-ff5ce21e1b959206f257967d6de2efa6f4e3d188.zip qemu-ff5ce21e1b959206f257967d6de2efa6f4e3d188.tar.gz qemu-ff5ce21e1b959206f257967d6de2efa6f4e3d188.tar.bz2 |
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 650b4b8..852e026 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) { |