Bug 1841529 - TPM passthrough failed on rhel-av 8.3 build
Summary: TPM passthrough failed on rhel-av 8.3 build
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: qemu-kvm
Version: 8.3
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: 8.3
Assignee: Marc-Andre Lureau
QA Contact: Qinghua Cheng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-29 11:47 UTC by Qinghua Cheng
Modified: 2020-11-17 17:49 UTC (History)
7 users (show)

Fixed In Version: qemu-kvm-5.0.0-2.module+el8.3.0+7379+0505d6ca
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-17 17:49:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qinghua Cheng 2020-05-29 11:47:01 UTC
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:

Comment 1 Marc-Andre Lureau 2020-05-29 11:54:55 UTC
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

Comment 2 John Ferlan 2020-06-03 13:55:45 UTC
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

Comment 3 Miroslav Rezanina 2020-06-03 14:15:16 UTC
(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.

Comment 4 Danilo de Paula 2020-06-05 16:09:54 UTC
Send a patch, regular process.

Comment 7 Danilo de Paula 2020-07-16 20:02:43 UTC
Yes, it's already built.

Comment 8 Danilo de Paula 2020-07-16 20:05:02 UTC
This is built, altought no commit id can be provided before the rebase to 5.1

Comment 11 Qinghua Cheng 2020-07-23 07:46:00 UTC
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.

Comment 14 errata-xmlrpc 2020-11-17 17:49:13 UTC
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


Note You need to log in before you can comment on or make changes to this bug.