[PATCH] util: fix cache invalidation of swtpm capabilities

Ján Tomko jtomko at redhat.com
Wed Nov 24 11:23:20 UTC 2021


On a Wednesday in 2021, Daniel P. Berrangé wrote:
>The check for whether the swtpm binary was modified is checking pointers
>to the mtime field in two distinct structs, so will always compare
>different. This resulted in re-probing swtpm capabilities every time,
>as many as 20 times for a single VM launch.
>
>Fixes:
>
>  commit 01cf7a1bb9f1da27ad8bcbaa82c4f7a948c6a793
>  Author: Stefan Berger <stefanb at us.ibm.com>
>  Date:   Thu Jul 25 14:22:04 2019 -0400
>
>    tpm: Check whether previously found executables were updated
>
>Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
>---
> src/util/virtpm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20211124/61fe389c/attachment-0001.sig>


More information about the libvir-list mailing list