qemu/backends/tpm
Marc-André Lureau feb0d5a932 tpm: fix crash when FD >= 1024 and unnecessary errors due to EINTR
Replace select() with poll() to fix a crash when QEMU has a large number
of FDs. Also use RETRY_ON_EINTR to avoid unnecessary errors due to EINTR.

Cc: qemu-stable@nongnu.org
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2020133
Fixes: 56a3c24ffc ("tpm: Probe for connected TPM 1.2 or TPM 2")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
(cherry picked from commit 8e32ddff69)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: use TFR() instead of RETRY_ON_EINTR() before v7.2.0-538-g8b6aa69365)
2023-09-13 23:13:45 +03:00
..
Kconfig tpm: Move backend code under the 'backends/' directory 2020-06-19 07:25:55 -04:00
meson.build configure, meson: move TPM check to meson 2022-02-21 10:35:53 +01:00
tpm_backend.c backends: Add TPM files into their own directory 2020-06-19 07:24:42 -04:00
tpm_emulator.c tpm_emulator: Have swtpm relock storage upon migration fall-back 2022-09-13 10:27:17 -04:00
tpm_int.h tpm: Move backend code under the 'backends/' directory 2020-06-19 07:25:55 -04:00
tpm_ioctl.h tpm_emulator: Use latest tpm_ioctl.h from swtpm project 2022-09-13 10:27:17 -04:00
tpm_passthrough.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
tpm_util.c tpm: fix crash when FD >= 1024 and unnecessary errors due to EINTR 2023-09-13 23:13:45 +03:00
trace-events tpm_emulator: Have swtpm relock storage upon migration fall-back 2022-09-13 10:27:17 -04:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00