Re: [PATCH 2/2] qemu_tpm: Try harder to create emulator state

2023-07-21 Thread Ján Tomko
On a Friday in 2023, Michal Privoznik wrote: If a per-domain SWTPM state directory exists but is empty our code still considers it a valid state and skips running 'swtpm_setup' (handled in qemuTPMEmulatorRunSetup()). While we should not try to inspect individual files created by swtpm, we can

[PATCH 2/2] qemu_tpm: Try harder to create emulator state

2023-07-21 Thread Michal Privoznik
If a per-domain SWTPM state directory exists but is empty our code still considers it a valid state and skips running 'swtpm_setup' (handled in qemuTPMEmulatorRunSetup()). While we should not try to inspect individual files created by swtpm, we can still consider empty folder as non-existent