Bug 1654490
Summary: | [RFE] TPM passthrough support (libvirt) | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Ademar Reis <areis> | |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Yanqiu Zhang <yanqzhan> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | --- | CC: | areis, chayang, creynold, cww, dyuan, dzheng, fjin, fmartine, jcoscia, jinzhao, juzhang, kchamart, knoel, lersek, marcandre.lureau, mkalinin, mtessun, pgozart, psztoch, rbalakri, rdoty, shipatil, virt-bugs, virt-maint, xfu, xuzhang, yafu, yalzhang, yanqzhan, yuhuang | |
Target Milestone: | rc | Keywords: | Automation, FutureFeature, TestOnly | |
Target Release: | 8.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Enhancement | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | 1654486 | |||
: | 1668199 (view as bug list) | Environment: | ||
Last Closed: | 2019-06-14 02:00:58 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 1327947, 1654486 | |||
Bug Blocks: | 1359862, 1431788, 1431790, 1431792, 1519016, 1558125, 1595018, 1623566, 1668199, 1679810, 1919797 |
Comment 2
Yanqiu Zhang
2018-12-28 09:31:20 UTC
Scenario 2: check default choose 1. Try to edit guest with: <tpm> <backend type='passthrough'> </backend> </tpm> 2. Check guest xml again, the default choose for model is tpm-tis, and device path is /dev/tpm0. # virsh dumpxml rhel8.0-yqz |grep 'tpm model' -A6 <tpm model='tpm-tis'> <backend type='passthrough'> <device path='/dev/tpm0'/> </backend> </tpm> Scenario 3: 'tpm-crb' model when backend is tpm 1.2 From libvirt.org, "model: ... Since 4.4.0, another available choice is the tpm-crb, which should only be used when the backend device is a TPM 2.0." 1. If start guest with 'tpm-crb' model when host tpm version is 1.2: <tpm model='tpm-crb'> <backend type='passthrough'> <device path='/dev/tpm0'/> </backend> <alias name='tpm0'/> </tpm> # ps aux|grep qemu-kvm|grep tpm ... -tpmdev passthrough,id=tpm-tpm0,path=/dev/fdset/4,cancel-path=/dev/fdset/5 -add-fd set=4,fd=35 -add-fd set=5,fd=36 -device tpm-crb,tpmdev=tpm-tpm0,id=tpm0 ... 2.Guest can be started but tpm can not be used in guest os: # tcsd -f TCSD TDDL ERROR: Could not find a device to open! # dmesg|grep tpm [ 0.796479] tpm_tis MSFT0101:00: [Firmware Bug]: failed to get TPM2 ACPI table [ 0.798589] tpm_tis: probe of MSFT0101:00 failed with error -22 [ 0.800107] tpm_crb MSFT0101:00: [Firmware Bug]: failed to get TPM2 ACPI table [ 0.802184] tpm_crb: probe of MSFT0101:00 failed with error -22 Verify this bug per comment 2 and comment 3. Tpm2.0 backend scenarios will be tested when tpm2.0 device arrived, being tracked in new bug: https://bugzilla.redhat.com/show_bug.cgi?id=1668199 Thx. |