diff options
author | Stefan Berger <stefanb@linux.ibm.com> | 2024-10-16 13:51:28 -0400 |
---|---|---|
committer | Stefan Berger <stefanb@linux.ibm.com> | 2024-10-18 07:53:11 -0400 |
commit | 312c5404011f6a80d1467a19abd916fd203dd7d4 (patch) | |
tree | 31fda66eaabf017ab1747b1a9436e318c98419c5 /backends/tpm/trace-events | |
parent | 95a16ee753d6da651fce8df876333bf7fcf134d9 (diff) | |
download | qemu-312c5404011f6a80d1467a19abd916fd203dd7d4.zip qemu-312c5404011f6a80d1467a19abd916fd203dd7d4.tar.gz qemu-312c5404011f6a80d1467a19abd916fd203dd7d4.tar.bz2 |
tpm: Use new ptm_cap_n structure for PTM_GET_CAPABILITY
Use the new ptm_cap_n structure for getting the PTM_GET_CAPABILITY response
from swtpm. Previously only 17 bits could possibly have been set in ptm_cap
(uint64_t) in big endian order and those bits are now found in the 2nd
32bit word in the response in the caps field.
This data structure makes it now clear that the 1st 32bit word carries the
tpm_result like all the other response structures of all other commands
do.
The changes are taken from the swtpm project's tpm_ioctl.h.
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Diffstat (limited to 'backends/tpm/trace-events')
-rw-r--r-- | backends/tpm/trace-events | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/tpm/trace-events b/backends/tpm/trace-events index cb5cfa6..05e3053 100644 --- a/backends/tpm/trace-events +++ b/backends/tpm/trace-events @@ -16,7 +16,7 @@ tpm_util_show_buffer_content(const char *buf) "%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_probe_caps(uint32_t caps) "capabilities: 0x%x" 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" |