qemu-server/PVE
Dominik Csapak a06b779489 stop cleanup: remove unnecessary tpmstate cleanup
tpmstate0 is already included in `get_vm_volumes`, and our only storage
plugin that has unmap_volume implemented is the RBDPlugin, where we call
unmap in `deactivate_volume`. So it's already ummapped by the
`deactivate_volumes` calls above.

For third-party storage plugins, it's natural to expect that
deactivate_volume() would also remove a mapping for the volume just
like RBDPlugin does.

While there is an explicit map_volume() call in start_swtpm(), a
third-party plugin might expect an explicit unmap_volume() call too.
However, the order of calls right now is
1. activate_volume()
2. map_volume()
3. deactivate_volume()
4. unmap_volume()

Which seems like it could cause problems already for third-party
plugins relying on an explicit unmap call.

All that said, it is unlikely that a third-party plugin breaks. If it
really happens, it can be discussed/adapted to the actual needs still.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Acked-by: Fiona Ebner <f.ebner@proxmox.com>
Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
2024-07-05 10:35:46 +02:00
..
API2 api: fix typo reported by perlcritic 2024-07-03 14:49:12 +02:00
CLI cli: qm: increase timeout for monitor commands to 30 seconds 2024-06-11 13:56:44 +02:00
QemuServer drive: tpm: fix default version in schema 2024-07-01 10:37:48 +02:00
VZDump backup: prepare: remove outdated QEMU version check 2024-07-03 15:08:51 +02:00
Makefile buildsys: use $(MAKE) instead of make 2019-09-24 18:06:16 +02:00
QemuConfig.pm config: define machine schema as property-string 2024-04-11 10:18:27 +02:00
QemuMigrate.pm migration: handle replication: remove outdated and inaccurate check for QEMU version 2024-07-03 15:08:47 +02:00
QemuServer.pm stop cleanup: remove unnecessary tpmstate cleanup 2024-07-05 10:35:46 +02:00
QMPClient.pm QMP client: sort commands with 10 minutes timeout alphabetically 2024-03-08 14:37:29 +01:00