Re: [Qemu-devel] [PATCH 3/3] TPM2 ACPI table support

2015-04-13 Thread Stefan Berger
On 04/13/2015 02:27 AM, Michael S. Tsirkin wrote: @@ -1428,12 +1444,22 @@ void acpi_build(PcGuestInfo *guest_info, AcpiBuildTables *tables) acpi_add_table(table_offsets, tables_blob); build_hpet(tables_blob, tables-linker); } -if (misc.has_tpm) { +if

Re: [Qemu-devel] [PATCH 3/3] TPM2 ACPI table support

2015-04-13 Thread Michael S. Tsirkin
On Mon, Apr 13, 2015 at 10:29:32PM -0400, Stefan Berger wrote: On 04/13/2015 02:27 AM, Michael S. Tsirkin wrote: @@ -1428,12 +1444,22 @@ void acpi_build(PcGuestInfo *guest_info, AcpiBuildTables *tables) acpi_add_table(table_offsets, tables_blob); build_hpet(tables_blob,

Re: [Qemu-devel] [PATCH 3/3] TPM2 ACPI table support

2015-04-13 Thread Michael S. Tsirkin
@@ -1428,12 +1444,22 @@ void acpi_build(PcGuestInfo *guest_info, AcpiBuildTables *tables) acpi_add_table(table_offsets, tables_blob); build_hpet(tables_blob, tables-linker); } -if (misc.has_tpm) { +if (misc.tpm_version != TPMVersion_Unspec) {

Re: [Qemu-devel] [PATCH 3/3] TPM2 ACPI table support

2015-04-07 Thread Xu, Quan
-Original Message- From: Stefan Berger [mailto:stef...@linux.vnet.ibm.com] Sent: Wednesday, April 01, 2015 3:40 AM To: qemu-devel@nongnu.org; m...@redhat.com Cc: Xu, Quan; Stefan Berger Subject: [PATCH 3/3] TPM2 ACPI table support Add a TPM2 ACPI table if a TPM2 is used

[Qemu-devel] [PATCH 3/3] TPM2 ACPI table support

2015-03-31 Thread Stefan Berger
Add a TPM2 ACPI table if a TPM2 is used in the backend. 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