libvirt: Ensure swtpm_ioctl is available for vTPM support

Libvirt uses swtpm_ioctl to terminate swtpm processes. If the binary
does not exist, swtpm processes are kept running after the associated
VM terminates, because QEMU does not send shutdown to swtpm.

Closes-Bug: #2052761
Change-Id: I682f71512fc33a49b8dfe93894f144e48f33abe6
This commit is contained in:
Takashi Kajinami
2024-02-09 12:16:45 +09:00
parent 7a7427691e
commit 9a11bb2523
3 changed files with 20 additions and 9 deletions
@@ -0,0 +1,6 @@
---
fixes:
- |
The libvirt driver now ensures the ``swtpm_ioctl`` binary, which is used
to terminate swtpm processes, is present when ``[libvirt] swtpm_enabled``
is set to ``True``.