qemu/backends
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>
2024-10-18 07:55:08 -04:00
..
tpm tpm_emulator: Read control channel response in 2 passes 2024-10-18 07:55:08 -04:00
confidential-guest-support.c
cryptodev-builtin.c qapi/cryptodev: Rename QCryptodevBackendAlgType to *Algo, and drop prefix 2024-09-10 14:03:30 +02:00
cryptodev-hmp-cmds.c
cryptodev-lkcf.c qapi/cryptodev: Rename QCryptodevBackendAlgType to *Algo, and drop prefix 2024-09-10 14:03:30 +02:00
cryptodev-vhost-user.c qapi/cryptodev: Drop unwanted 'prefix' 2024-09-10 14:03:30 +02:00
cryptodev-vhost.c
cryptodev.c qapi/cryptodev: Rename QCryptodevBackendAlgType to *Algo, and drop prefix 2024-09-10 14:03:30 +02:00
dbus-vmstate1.xml
dbus-vmstate.c
host_iommu_device.c
hostmem-epc.c
hostmem-file.c
hostmem-memfd.c
hostmem-ram.c
hostmem-shm.c
hostmem.c hostmem: Apply merge property after the memory region is initialized 2024-09-24 11:33:35 +02:00
iommufd.c vfio/iommufd: Implement VFIOIOMMUClass::query_dirty_bitmap support 2024-07-23 17:14:52 +02:00
Kconfig
meson.build
rng-builtin.c
rng-egd.c
rng-random.c
rng.c
spdm-socket.c
trace-events vfio/iommufd: Implement VFIOIOMMUClass::query_dirty_bitmap support 2024-07-23 17:14:52 +02:00
trace.h
vhost-user.c