|
@@ -925,10 +925,10 @@ void hmp_info_tpm(Monitor *mon, const QDict *qdict)
|
|
c, TpmModel_str(ti->model));
|
|
c, TpmModel_str(ti->model));
|
|
|
|
|
|
monitor_printf(mon, " \\ %s: type=%s",
|
|
monitor_printf(mon, " \\ %s: type=%s",
|
|
- ti->id, TpmTypeOptionsKind_str(ti->options->type));
|
|
|
|
|
|
+ ti->id, TpmType_str(ti->options->type));
|
|
|
|
|
|
switch (ti->options->type) {
|
|
switch (ti->options->type) {
|
|
- case TPM_TYPE_OPTIONS_KIND_PASSTHROUGH:
|
|
|
|
|
|
+ case TPM_TYPE_PASSTHROUGH:
|
|
tpo = ti->options->u.passthrough.data;
|
|
tpo = ti->options->u.passthrough.data;
|
|
monitor_printf(mon, "%s%s%s%s",
|
|
monitor_printf(mon, "%s%s%s%s",
|
|
tpo->has_path ? ",path=" : "",
|
|
tpo->has_path ? ",path=" : "",
|
|
@@ -936,11 +936,11 @@ void hmp_info_tpm(Monitor *mon, const QDict *qdict)
|
|
tpo->has_cancel_path ? ",cancel-path=" : "",
|
|
tpo->has_cancel_path ? ",cancel-path=" : "",
|
|
tpo->has_cancel_path ? tpo->cancel_path : "");
|
|
tpo->has_cancel_path ? tpo->cancel_path : "");
|
|
break;
|
|
break;
|
|
- case TPM_TYPE_OPTIONS_KIND_EMULATOR:
|
|
|
|
|
|
+ case TPM_TYPE_EMULATOR:
|
|
teo = ti->options->u.emulator.data;
|
|
teo = ti->options->u.emulator.data;
|
|
monitor_printf(mon, ",chardev=%s", teo->chardev);
|
|
monitor_printf(mon, ",chardev=%s", teo->chardev);
|
|
break;
|
|
break;
|
|
- case TPM_TYPE_OPTIONS_KIND__MAX:
|
|
|
|
|
|
+ case TPM_TYPE__MAX:
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
monitor_printf(mon, "\n");
|
|
monitor_printf(mon, "\n");
|