[pve-devel] applied-series: [PATCH-SERIES swtpm/qemu-server] Improve swtpm logging

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Feb 23 16:19:23 CET 2023


Am 18/01/2023 um 13:21 schrieb Fiona Ebner:
> There was a recent failure when migrating a production VM
>> kvm: tpm-emulator: Setting the stateblob (type 1) failed with a TPM error 0x3 a parameter is bad
>> kvm: error while loading state for instance 0x0 of device 'tpm-emulator'
>> kvm: load of migration failed: Input/output error
> and it's not clear what exactly triggered it.
> 
> Start collecting logs in /run/qemu-server/<ID>-swtpm.log to have some
> information available for any future swtpm failures.
> 
> Also add a few more logs in swtpm itself, to better see what exactly
> triggers the TPM_BAD_PARAMETER (0x3) error in case such a migration
> failure happens again.
> 
> 
> swtpm:
> 
> Fiona Ebner (1):
>   control channel: add error logs upon receiving short input
> 
>  src/swtpm/ctrlchannel.c | 17 +++++++++++++++--
>  1 file changed, 15 insertions(+), 2 deletions(-)
> 
> 
> qemu-server:
> 
> Fiona Ebner (2):
>   swtpm: enable logging
>   swtpm: use start time as prefix for logging
> 
>  PVE/QemuServer.pm | 5 +++++
>  1 file changed, 5 insertions(+)
> 


applied all three patches, thanks!





More information about the pve-devel mailing list