Skip to content
Snippets Groups Projects
Commit 4168cdad authored by Eric Auger's avatar Eric Auger Committed by Alex Williamson
Browse files

sysemu: tpm: Add a stub function for TPM_IS_CRB


In a subsequent patch, VFIO will need to recognize if
a memory region owner is a TPM CRB device. Hence VFIO
needs to use TPM_IS_CRB() even if CONFIG_TPM is unset. So
let's add a stub function.

Signed-off-by: default avatarEric Auger <eric.auger@redhat.com>
Suggested-by: default avatarCornelia Huck <cohuck@redhat.com>
Reviewed-by: default avatarStefan Berger <stefanb@linnux.ibm.com>
Link: https://lore.kernel.org/r/20220506132510.1847942-2-eric.auger@redhat.com


Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 99510d27
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,12 @@ static inline TPMVersion tpm_get_version(TPMIf *ti)
#define tpm_init() (0)
#define tpm_cleanup()
/* needed for an alignment check in non-tpm code */
static inline Object *TPM_IS_CRB(Object *obj)
{
return NULL;
}
#endif /* CONFIG_TPM */
#endif /* QEMU_TPM_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment