tpm: reorganize headers and split hardware part
The TPM subsystem does not have a full front-end/back-end separation.
The sole available backend, tpm_passthrough, depends on the data
structures of the sole available frontend, tpm_tis.
However, we can at least try to split the user interface (tpm.c) from the
implementation (hw/tpm). The patches makes tpm.c not include tpm_int.h,
which is shared between tpm_tis.c and tpm_passthrough.c; instead it
moves more stuff to tpm_backend.h.
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- Makefile.objs 1 addition, 1 deletionMakefile.objs
- backends/tpm.c 37 additions, 1 deletionbackends/tpm.c
- hw/Makefile.objs 1 addition, 0 deletionshw/Makefile.objs
- hw/tpm/Makefile.objs 0 additions, 2 deletionshw/tpm/Makefile.objs
- hw/tpm/tpm_int.h 1 addition, 36 deletionshw/tpm/tpm_int.h
- hw/tpm/tpm_passthrough.c 18 additions, 2 deletionshw/tpm/tpm_passthrough.c
- hw/tpm/tpm_tis.c 1 addition, 1 deletionhw/tpm/tpm_tis.c
- hw/tpm/tpm_tis.h 0 additions, 5 deletionshw/tpm/tpm_tis.h
- include/backends/tpm.h 40 additions, 1 deletioninclude/backends/tpm.h
- include/sysemu/tpm.h 0 additions, 2 deletionsinclude/sysemu/tpm.h
- include/sysemu/tpm_backend_int.h 0 additions, 0 deletionsinclude/sysemu/tpm_backend_int.h
- monitor.c 1 addition, 1 deletionmonitor.c
- tpm.c 2 additions, 17 deletionstpm.c
- tpm/tpm_backend.c 0 additions, 58 deletionstpm/tpm_backend.c
- vl.c 1 addition, 1 deletionvl.c
Loading
Please register or sign in to comment