Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a TPM2 ACPI table if a TPM 2 is used in the backend. Also add an SSDT for the TPM 2. Rename tpm_find() to tpm_get_version() and have this function return the version of the TPM found, TPMVersion_Unspec if no TPM is found. Use the version number to build version specific ACPI tables. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
- Loading branch information
1 parent
56a3c24
commit 5cb18b3
Showing
10 changed files
with
237 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License along | ||
* with this program; if not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
#include "hw/acpi/tpm.h" | ||
|
||
ACPI_EXTRACT_ALL_CODE ssdt_tpm2_aml | ||
|
||
DefinitionBlock ( | ||
"ssdt-tpm2.aml", // Output Filename | ||
"SSDT", // Signature | ||
0x01, // SSDT Compliance Revision | ||
"BXPC", // OEMID | ||
"BXSSDT", // TABLE ID | ||
0x1 // OEM Revision | ||
) | ||
{ | ||
#include "ssdt-tpm-common.dsl" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
static unsigned char ssdt_tpm2_aml[] = { | ||
0x53, | ||
0x53, | ||
0x44, | ||
0x54, | ||
0x6b, | ||
0x0, | ||
0x0, | ||
0x0, | ||
0x1, | ||
0x37, | ||
0x42, | ||
0x58, | ||
0x50, | ||
0x43, | ||
0x0, | ||
0x0, | ||
0x42, | ||
0x58, | ||
0x53, | ||
0x53, | ||
0x44, | ||
0x54, | ||
0x0, | ||
0x0, | ||
0x1, | ||
0x0, | ||
0x0, | ||
0x0, | ||
0x49, | ||
0x4e, | ||
0x54, | ||
0x4c, | ||
0x7, | ||
0x11, | ||
0x14, | ||
0x20, | ||
0x10, | ||
0x46, | ||
0x4, | ||
0x5c, | ||
0x2f, | ||
0x3, | ||
0x5f, | ||
0x53, | ||
0x42, | ||
0x5f, | ||
0x50, | ||
0x43, | ||
0x49, | ||
0x30, | ||
0x49, | ||
0x53, | ||
0x41, | ||
0x5f, | ||
0x5b, | ||
0x82, | ||
0x33, | ||
0x54, | ||
0x50, | ||
0x4d, | ||
0x5f, | ||
0x8, | ||
0x5f, | ||
0x48, | ||
0x49, | ||
0x44, | ||
0xc, | ||
0x41, | ||
0xd0, | ||
0xc, | ||
0x31, | ||
0x8, | ||
0x5f, | ||
0x43, | ||
0x52, | ||
0x53, | ||
0x11, | ||
0x14, | ||
0xa, | ||
0x11, | ||
0x86, | ||
0x9, | ||
0x0, | ||
0x1, | ||
0x0, | ||
0x0, | ||
0xd4, | ||
0xfe, | ||
0x0, | ||
0x50, | ||
0x0, | ||
0x0, | ||
0x22, | ||
0x20, | ||
0x0, | ||
0x79, | ||
0x0, | ||
0x14, | ||
0x9, | ||
0x5f, | ||
0x53, | ||
0x54, | ||
0x41, | ||
0x0, | ||
0xa4, | ||
0xa, | ||
0xf | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.