Browse Source
TPM subsytem is split into backends (see commitpull/107/headf4ede81eed) and frontends (see i.e.3676bc69b3). Keep the emulated hardware 'frontends' under hw/tpm/, but move the backends in the backends/tpm/ directory. Suggested-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20200612085444.8362-13-philmd@redhat.com Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
committed by
Stefan Berger
16 changed files with 62 additions and 60 deletions
@ -0,0 +1 @@ |
|||
source tpm/Kconfig |
|||
@ -0,0 +1,14 @@ |
|||
config TPM_BACKEND |
|||
bool |
|||
depends on TPM |
|||
|
|||
config TPM_PASSTHROUGH |
|||
bool |
|||
default y |
|||
# FIXME: should check for x86 host as well |
|||
depends on TPM_BACKEND && LINUX |
|||
|
|||
config TPM_EMULATOR |
|||
bool |
|||
default y |
|||
depends on TPM_BACKEND |
|||
@ -1 +1,4 @@ |
|||
common-obj-y += tpm_backend.o |
|||
common-obj-y += tpm_util.o |
|||
common-obj-$(CONFIG_TPM_PASSTHROUGH) += tpm_passthrough.o |
|||
common-obj-$(CONFIG_TPM_EMULATOR) += tpm_emulator.o |
|||
|
|||
@ -0,0 +1,33 @@ |
|||
# See docs/devel/tracing.txt for syntax documentation. |
|||
|
|||
# tpm_passthrough.c |
|||
tpm_passthrough_handle_request(void *cmd) "processing command %p" |
|||
tpm_passthrough_reset(void) "reset" |
|||
|
|||
# tpm_util.c |
|||
tpm_util_get_buffer_size_hdr_len(uint32_t len, size_t expected) "tpm_resp->hdr.len = %u, expected = %zu" |
|||
tpm_util_get_buffer_size_len(uint32_t len, size_t expected) "tpm_resp->len = %u, expected = %zu" |
|||
tpm_util_get_buffer_size_hdr_len2(uint32_t len, size_t expected) "tpm2_resp->hdr.len = %u, expected = %zu" |
|||
tpm_util_get_buffer_size_len2(uint32_t len, size_t expected) "tpm2_resp->len = %u, expected = %zu" |
|||
tpm_util_get_buffer_size(size_t len) "buffersize of device: %zu" |
|||
tpm_util_show_buffer(const char *direction, size_t len, const char *buf) "direction: %s len: %zu\n%s" |
|||
|
|||
# tpm_emulator.c |
|||
tpm_emulator_set_locality(uint8_t locty) "setting locality to %d" |
|||
tpm_emulator_handle_request(void) "processing TPM command" |
|||
tpm_emulator_probe_caps(uint64_t caps) "capabilities: 0x%"PRIx64 |
|||
tpm_emulator_set_buffer_size(uint32_t buffersize, uint32_t minsize, uint32_t maxsize) "buffer size: %u, min: %u, max: %u" |
|||
tpm_emulator_startup_tpm_resume(bool is_resume, size_t buffersize) "is_resume: %d, buffer size: %zu" |
|||
tpm_emulator_get_tpm_established_flag(uint8_t flag) "got established flag: %d" |
|||
tpm_emulator_cancel_cmd_not_supt(void) "Backend does not support CANCEL_TPM_CMD" |
|||
tpm_emulator_handle_device_opts_tpm12(void) "TPM Version 1.2" |
|||
tpm_emulator_handle_device_opts_tpm2(void) "TPM Version 2" |
|||
tpm_emulator_handle_device_opts_unspec(void) "TPM Version Unspecified" |
|||
tpm_emulator_handle_device_opts_startup_error(void) "Startup error" |
|||
tpm_emulator_get_state_blob(uint8_t type, uint32_t size, uint32_t flags) "got state blob type %d, %u bytes, flags 0x%08x" |
|||
tpm_emulator_set_state_blob(uint8_t type, uint32_t size, uint32_t flags) "set state blob type %d, %u bytes, flags 0x%08x" |
|||
tpm_emulator_set_state_blobs(void) "setting state blobs" |
|||
tpm_emulator_set_state_blobs_error(const char *msg) "error while setting state blobs: %s" |
|||
tpm_emulator_set_state_blobs_done(void) "Done setting state blobs" |
|||
tpm_emulator_pre_save(void) "" |
|||
tpm_emulator_inst_init(void) "" |
|||
@ -1,9 +1,6 @@ |
|||
common-obj-$(CONFIG_TPM) += tpm_util.o |
|||
obj-$(call lor,$(CONFIG_TPM_TIS),$(CONFIG_TPM_CRB)) += tpm_ppi.o |
|||
common-obj-$(CONFIG_TPM_TIS_ISA) += tpm_tis_isa.o |
|||
common-obj-$(CONFIG_TPM_TIS_SYSBUS) += tpm_tis_sysbus.o |
|||
common-obj-$(CONFIG_TPM_TIS) += tpm_tis_common.o |
|||
common-obj-$(CONFIG_TPM_CRB) += tpm_crb.o |
|||
common-obj-$(CONFIG_TPM_PASSTHROUGH) += tpm_passthrough.o |
|||
common-obj-$(CONFIG_TPM_EMULATOR) += tpm_emulator.o |
|||
obj-$(CONFIG_TPM_SPAPR) += tpm_spapr.o |
|||
|
|||
Loading…
Reference in new issue