mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
tpm-be: ask model to the TPM interface
No need to store the mode in the backend, or to let the frontend set it itself. Signed-off-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>
This commit is contained in:
parent
0bd6c8a9cf
commit
191adc9476
5 changed files with 6 additions and 6 deletions
3
tpm.c
3
tpm.c
|
@ -200,9 +200,10 @@ TPMInfoList *qmp_query_tpm(Error **errp)
|
|||
TPMInfoList *info, *head = NULL, *cur_item = NULL;
|
||||
|
||||
QLIST_FOREACH(drv, &tpm_backends, list) {
|
||||
if (!tpm_models[drv->fe_model]) {
|
||||
if (!drv->tpmif) {
|
||||
continue;
|
||||
}
|
||||
|
||||
info = g_new0(TPMInfoList, 1);
|
||||
info->value = tpm_backend_query_tpm(drv);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue