mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
QMP: Remove duplicate TPM type from query-tpm
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>
This commit is contained in:
parent
dcadaa9b40
commit
88ca7bcff1
3 changed files with 12 additions and 17 deletions
8
hmp.c
8
hmp.c
|
@ -631,11 +631,11 @@ void hmp_info_tpm(Monitor *mon, const QDict *qdict)
|
|||
c, TpmModel_lookup[ti->model]);
|
||||
|
||||
monitor_printf(mon, " \\ %s: type=%s",
|
||||
ti->id, TpmType_lookup[ti->type]);
|
||||
ti->id, TpmTypeOptionsKind_lookup[ti->options->kind]);
|
||||
|
||||
switch (ti->tpm_options->kind) {
|
||||
case TPM_TYPE_OPTIONS_KIND_TPM_PASSTHROUGH_OPTIONS:
|
||||
tpo = ti->tpm_options->tpm_passthrough_options;
|
||||
switch (ti->options->kind) {
|
||||
case TPM_TYPE_OPTIONS_KIND_PASSTHROUGH:
|
||||
tpo = ti->options->passthrough;
|
||||
monitor_printf(mon, "%s%s%s%s",
|
||||
tpo->has_path ? ",path=" : "",
|
||||
tpo->has_path ? tpo->path : "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue