On 12/30/19 2:03 PM, Arthur Borsboom wrote:
I am trying to get TPM 2.0 pass through to work with Xen and libvirt,
but I
can't get it to work.
According to the following sites both Xen and libirt have TPM 2.0 support.
https://wiki.xen.org/wiki/Virtual_Trusted_Platform_Module_(vTPM)
https://libvirt.org/formatdomain.html#elementsTpm
However, when I add a TPM device to a VM (by virt-manager), the VM guest XML
does contain the TPM configuration, but the VM guest (linux) does not show any
TPM device.
Also, when looking in /var/log/libvirt/libxl/vmguest.log there is no mention of
tpm in the (converted libvirt XML to libxl) vm structure.
Is this because libvirt only supports TPM with QEMU?
Correct.
If so, are there any development plans for TPM support with XEN?
No, but I can add it to my list of items that have been requested for the
libvirt Xen driver. If you have the time and energy to create patches I'll be
more than happy to review them.
Is there a workaround for the time being?
Not that I'm aware of, sorry.
Regards,
Jim