Description of problem: After passing through TPM device to Windows guest (which is running on RHEL-8.1 KVM hypervisor), user cannot take the ownership of the device from VM console. Version-Release number of selected component (if applicable): libvirt-6.0.0-17.module+el8.2.0+6257+0d066c28.x86_64 How reproducible: Can't reproduce Actual results: User can see the TPM device inside Windows guest, but cannot access it. Expected results: User should be able to access the TPM device from the guest. Additional info:
Moving to qemu-kvm for further investigation. Seems that libvirt is passing the fd correctly. Thanks.
Changing a few things here - this must be an Advanced Virt issue and this isn't a qemu-kvm/general, rather it's a libtpms related issue. Also the only place where libtpms is supported is in a RHEL-AV environment. For the submitter - it would be nice to get a better idea of the environment - indicating "RHEL-8.1 KVM hypervisor" and then showing "libvirt-6.0.0-17.module+el8.2.0+6257+0d066c28.x86_64" which looks like RHEL AV 8.2.0 - doesn't quite make sense. Additionally, what Windows version is being used on the guest. In the mean time, I've assigned to Marc-Andre for further thoughts/analysis
Qinghua, Can you have a try? Thanks.
It's not a libtpms issue, since the host TPM device is passed-through. We have a very limited support for TPM passthrough, and we have encountered a number of issues that aren't easy to solve. I am afraid there isn't much we can do here.