Description of problem: TPM passthrough failed on rhel-av 8.3 build, get error: error: unsupported configuration: The QEMU executable /usr/libexec/qemu-kvm does not support TPM model tpm-tis Version-Release number of selected component (if applicable): OS: RHEL 8.3 kernel build: 4.18.0-202.el8.x86_64 qemu-kvm: qemu-kvm-5.0.0-0.module+el8.3.0+6620+5d5e1420.x86_64 edk2-ovmf-20190829git37eef91017ad-9.el8.noarch swtpm-0.2.0-2.20200127gitff5a83b.module+el8.3.0+6124+819ee737.x86_64 libtpms-0.7.0-1.20191018gitdc116933b7.module+el8.3.0+6124+819ee737.x86_64 How reproducible: 100% Steps to Reproduce: 1. Create guest VM by virt-install 2. Add xml snip to passthrough a tpm device to guest vm: <tpm model='tpm-tis'> <backend type='passthrough'> <device path='/dev/tpm0'/> </backend> </tpm> Actual results: Get error message: error: unsupported configuration: The QEMU executable /usr/libexec/qemu-kvm does not support TPM model tpm-tis Expected results: VM can startup and tpm device passthrough to the guest VM. Additional info:
Danilo, this is a regression in rhel8/rhel-av-8.3.0-preview-2020-04-29: diff --git a/default-configs/x86_64-rh-devices.mak b/default-configs/x86_64-rh-devices.mak index d59b6d9bb55..1469e053822 100644 --- a/default-configs/x86_64-rh-devices.mak +++ b/default-configs/x86_64-rh-devices.mak @@ -95,6 +95,6 @@ CONFIG_WDT_IB6300ESB=y CONFIG_WDT_IB700=y CONFIG_XIO3130=y CONFIG_TPM_CRB=y -CONFIG_TPM_TIS=y +CONFIG_TPM_TIS_ISA=y CONFIG_TPM_EMULATOR=y CONFIG_TPM_PASSTHROUGH=y
Mirek - I believe you've been handling the RHEL-AV 8.3.0 tree... If this needs to be assigned elsewhere that's fine, let me know
(In reply to John Ferlan from comment #2) > Mirek - I believe you've been handling the RHEL-AV 8.3.0 tree... If this > needs to be assigned elsewhere that's fine, let me know Nope, RHEL 8 modules are handled by Danilo.
Send a patch, regular process.
Yes, it's already built.
This is built, altought no commit id can be provided before the rebase to 5.1
Verified on RHEL 8.3 kernel: 4.18.0-226.el8.x86_64 qemu-kvm: qemu-kvm-5.0.0-2.module+el8.3.0+7379+0505d6ca.x86_64 swtpm: swtpm-0.3.0-1.20200218git74ae43b.module+el8.3.0+7102+0b79cc3a.x86_64 libtpms-0.7.2-1.20200527git7325acb477.module+el8.3.0+7068+4e1b8df5.x86_64 edk2: edk2-ovmf-20200602gitca407c7246bf-2.el8.noarch Guest: Win2019 (2004) and RHEL 8.3 TPM passthrough works.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (virt:8.3 bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:5137