OSDN Git Service

sysemu: tpm: Add a stub function for TPM_IS_CRB
authorEric Auger <eric.auger@redhat.com>
Fri, 6 May 2022 13:25:09 +0000 (15:25 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 6 May 2022 15:06:50 +0000 (09:06 -0600)
commit4168cdad398843ed53d650a27651868b4d3e21c9
treeab9434cec745e2254613736e86a1db84dd581171
parent99510d271b173f21a7a1e8a238b5f35d9e88a147
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: Eric Auger <eric.auger@redhat.com>
Suggested-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linnux.ibm.com>
Link: https://lore.kernel.org/r/20220506132510.1847942-2-eric.auger@redhat.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
include/sysemu/tpm.h