Bug 2072827

Summary: TPM disabled due to incorrect build flags
Product: [Fedora] Fedora Reporter: Justin Gatzen <justin.gatzen>
Component: edk2Assignee: Paolo Bonzini <pbonzini>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: berrange, crobinso, kraxel, pbonzini, philmd, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: edk2-20220221gitb24306f15daa-3.fc37 edk2-20220221gitb24306f15daa-3.fc36 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-07 07:07:31 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:
Attachments:
Description Flags
edk2.spec patch none

Description Justin Gatzen 2022-04-07 03:55:36 UTC
Created attachment 1871190 [details]
edk2.spec patch

Description of problem:

TPM 2.0 with SWTPM is nonfunctional. Tested in a Windows guest using:

<tpm model='tpm-crb'>
  <backend type='emulator' version='2.0'/>
</tpm>


Working version: edk2-20211126gitbb1bba3d7767-1.fc35
Broken version: edk2-20220221gitb24306f15daa-2.fc36

More info:

I bisected the issue in upstream edk2 to: https://github.com/tianocore/edk2/commit/4de8d61bcec02a13ceed84f92b0cf3ea58adf9c5. 

TPM_ENABLE was split into TPM1_ENABLE and TPM2_ENABLE upstream. Updating these build flags in the edk2.spec fixes the issue, see attached patch.

Comment 1 Fedora Update System 2022-04-07 07:04:51 UTC
FEDORA-2022-ea6020fa8b has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-ea6020fa8b

Comment 2 Fedora Update System 2022-04-07 07:07:31 UTC
FEDORA-2022-ea6020fa8b has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2022-04-07 08:16:55 UTC
FEDORA-2022-fe471a8da8 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-fe471a8da8

Comment 4 Fedora Update System 2022-04-07 18:01:24 UTC
FEDORA-2022-fe471a8da8 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-fe471a8da8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-fe471a8da8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-05-07 04:18:40 UTC
FEDORA-2022-fe471a8da8 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.