[PATCH 1/4] qemu_tpm: Move logfile path generation into a separate function