You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/backends/tpm
Stefan Berger d2bcaacc17 tpm_emulator: Read control channel response in 2 passes
Error responses from swtpm are typically only 4 bytes long with the
exception of a few commands that return more bytes. Therefore, read the
entire response in 2 steps and stop if the first few bytes indicate an
error response with no subsequent bytes readable. Read the rest in a 2nd
step, if needed. This avoids getting stuck while waiting for too many
bytes in case of an error. The 'getting stuck' condition has not been
observed in practice so far, though.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2615
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2 months ago
..
Kconfig tpm: Move backend code under the 'backends/' directory 5 years ago
meson.build meson: Replace softmmu_ss -> system_ss 1 year ago
tpm_backend.c thread-pool: avoid passing the pool parameter every time 2 years ago
tpm_emulator.c tpm_emulator: Read control channel response in 2 passes 2 months ago
tpm_int.h tpm: Move backend code under the 'backends/' directory 5 years ago
tpm_ioctl.h tpm: Use new ptm_cap_n structure for PTM_GET_CAPABILITY 2 months ago
tpm_passthrough.c qapi tpm: Elide redundant has_FOO in generated C 2 years ago
tpm_util.c backends/tpm: Remove newline character in trace event 6 months ago
trace-events tpm: Use new ptm_cap_n structure for PTM_GET_CAPABILITY 2 months ago
trace.h trace: switch position of headers to what Meson requires 4 years ago