]> git.ipfire.org Git - thirdparty/qemu.git/commit
tpm-backend: Made few interface methods optional
authorAmarnath Valluri <amarnath.valluri@intel.com>
Fri, 29 Sep 2017 11:10:16 +0000 (14:10 +0300)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 13 Oct 2017 11:34:33 +0000 (07:34 -0400)
commit93330cf542b920b6ea5fea8120a08b76bb353113
tree8450f62f15427f279ea4257877d6ce91a062fcab
parentf35fe5cb97bbdaa6a6967f2fefc3fc1f79680601
tpm-backend: Made few interface methods optional

This allows backend implementations left optional interface methods.
For mandatory methods assertion checks added.

Took the opportunity to remove unused methods:
 - tpm_backend_get_desc()
 - TPMDriverOps->handle_startup_error

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Reviewed-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>
backends/tpm.c
hw/tpm/tpm_passthrough.c
include/sysemu/tpm_backend.h
tpm.c