This patch provides HMP 'info tpm', QMP 'query-tpm' and QMP
'query-tpm-types' support for the libtpms TPM backend.
Signed-off-by: Corey Bryant <address@hidden>
---
hmp.c | 5 +++++
include/sysemu/tpm_backend.h | 1 +
qapi-schema.json | 18 ++++++++++++++++--
tpm.c | 7 +++++++
4 files changed, 29 insertions(+), 2 deletions(-)
+++ b/qapi-schema.json
@@ -3673,10 +3673,11 @@
# An enumeration of TPM types
#
# @passthrough: TPM passthrough type
+# @libtpms: TPM libtpms type
Worth adding '(since 1.8)' to mark when this enum value was added.
# @TpmTypeOptions:
#
# A union referencing different TPM backend types' configuration options
#
# @passthrough: The configuration options for the TPM passthrough type
+# @libtpms: The configuration options for the TPM libtpms type
here as well.
#
# Since: 1.5
##
{ 'union': 'TpmTypeOptions',
- 'data': { 'passthrough' : 'TPMPassthroughOptions' } }
+ 'data': { 'passthrough' : 'TPMPassthroughOptions',
+ 'libtpms' : 'TPMLibtpmsOptions' } }
Otherwise it looks okay to me.