Skip to content

Commit

Permalink
QMP: TPM QMP and man page documentation updates
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
  • Loading branch information
Corey Bryant authored and Luiz Capitulino committed Mar 25, 2013
1 parent 88ca7bc commit 28c4fa3
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qemu-options.hx
Expand Up @@ -2241,7 +2241,8 @@ Backend type must be:
@option{passthrough}. @option{passthrough}.


The specific backend type will determine the applicable options. The specific backend type will determine the applicable options.
The @code{-tpmdev} option requires a @code{-device} option. The @code{-tpmdev} option creates the TPM backend and requires a
@code{-device} option that specifies the TPM frontend interface model.


Options to each backend are described below. Options to each backend are described below.


Expand Down
58 changes: 58 additions & 0 deletions qmp-commands.hx
Expand Up @@ -2721,18 +2721,76 @@ EQMP
.mhandler.cmd_new = qmp_marshal_input_query_tpm, .mhandler.cmd_new = qmp_marshal_input_query_tpm,
}, },


SQMP
query-tpm
---------

Return information about the TPM device.

Arguments: None

Example:

-> { "execute": "query-tpm" }
<- { "return":
[
{ "model": "tpm-tis",
"options":
{ "type": "passthrough",
"data":
{ "cancel-path": "/sys/class/misc/tpm0/device/cancel",
"path": "/dev/tpm0"
}
},
"id": "tpm0"
}
]
}

EQMP

{ {
.name = "query-tpm-models", .name = "query-tpm-models",
.args_type = "", .args_type = "",
.mhandler.cmd_new = qmp_marshal_input_query_tpm_models, .mhandler.cmd_new = qmp_marshal_input_query_tpm_models,
}, },


SQMP
query-tpm-models
----------------

Return a list of supported TPM models.

Arguments: None

Example:

-> { "execute": "query-tpm-models" }
<- { "return": [ "tpm-tis" ] }

EQMP

{ {
.name = "query-tpm-types", .name = "query-tpm-types",
.args_type = "", .args_type = "",
.mhandler.cmd_new = qmp_marshal_input_query_tpm_types, .mhandler.cmd_new = qmp_marshal_input_query_tpm_types,
}, },


SQMP
query-tpm-types
---------------

Return a list of supported TPM types.

Arguments: None

Example:

-> { "execute": "query-tpm-types" }
<- { "return": [ "passthrough" ] }

EQMP

{ {
.name = "chardev-add", .name = "chardev-add",
.args_type = "id:s,backend:q", .args_type = "id:s,backend:q",
Expand Down

0 comments on commit 28c4fa3

Please sign in to comment.