[libvirt] [PATCH 11/18] tpm: Refactor virTPMEmulatorInit to use loop