summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarc-André Lureau2017-11-06 19:39:04 +0100
committerStefan Berger2017-12-15 05:39:14 +0100
commit191adc9476371ad94771609d8b9a968d9332a962 (patch)
tree05b60c283bdc390ca1b714500fef0fecfcdcd8bd /include
parenttpm-be: report error instead of front-end (diff)
downloadqemu-191adc9476371ad94771609d8b9a968d9332a962.tar.gz
qemu-191adc9476371ad94771609d8b9a968d9332a962.tar.xz
qemu-191adc9476371ad94771609d8b9a968d9332a962.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/sysemu/tpm.h1
-rw-r--r--include/sysemu/tpm_backend.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/sysemu/tpm.h b/include/sysemu/tpm.h
index e0879620e7..7b407caf25 100644
--- a/include/sysemu/tpm.h
+++ b/include/sysemu/tpm.h
@@ -40,6 +40,7 @@ typedef struct TPMIf {
typedef struct TPMIfClass {
InterfaceClass parent_class;
+ enum TpmModel model;
void (*request_completed)(TPMIf *obj);
} TPMIfClass;
diff --git a/include/sysemu/tpm_backend.h b/include/sysemu/tpm_backend.h
index df9ebd0e81..665e807a73 100644
--- a/include/sysemu/tpm_backend.h
+++ b/include/sysemu/tpm_backend.h
@@ -51,7 +51,6 @@ struct TPMBackend {
/* <public> */
char *id;
- enum TpmModel fe_model;
QLIST_ENTRY(TPMBackend) list;
};