[PATCH v3 0/3] hw/tpm: add PPI support to tpm-tis-device on ARM64 virt

Mohammadfaiz Bawa posted 3 patches 5 days, 20 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260327173209.148180-1-mbawa@redhat.com
Maintainers: Stefan Berger <stefanb@linux.vnet.ibm.com>, Pierrick Bouvier <pierrick.bouvier@linaro.org>, "Michael S. Tsirkin" <mst@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Ani Sinha <anisinha@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Shannon Zhao <shannon.zhaosl@gmail.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>
docs/specs/tpm.rst       | 24 ++++++++++++++++++++++++
hw/acpi/tpm.c            |  8 ++++----
hw/arm/virt-acpi-build.c |  9 ++++++++-
hw/i386/acpi-build.c     |  2 +-
hw/tpm/tpm_tis_isa.c     |  2 +-
hw/tpm/tpm_tis_sysbus.c  | 11 +++++++++++
include/hw/acpi/tpm.h    |  3 ++-
7 files changed, 51 insertions(+), 8 deletions(-)
[PATCH v3 0/3] hw/tpm: add PPI support to tpm-tis-device on ARM64 virt
Posted by Mohammadfaiz Bawa 5 days, 20 hours ago
The ARM virt machine's tpm-tis-device lacks Physical Presence Interface
(PPI) support - no _DSM, _STA, or PPI operation regions in the ACPI
namespace. This causes Windows 11 ARM64 guests to log Event ID 15
(tpm.sys) errors per boot.

This series documents the change, refactors tpm_build_ppi_acpi() to
accept a dynamic PPI base address, then wires up PPI MMIO and ACPI
on tpm-tis-sysbus via the platform bus.

Tested: aarch64 KVM, upstream QEMU, Win11 ARM64 25H2, swtpm.
Event ID 15 eliminated.

Changes in v3:
- Rebased on top of Philippe's ppi_enabled refactoring series
- Updated sysbus to set ppi_enabled on TPMIfClass instead of
  instance property
- Updated x86 CRB caller in hw/i386/acpi-build.c to pass
  ppi_base (Stefan)

Changes in v2:
- Moved tpm.rst documentation hunk from patch 3 into patch 1 (Stefan)
- Added Reviewed-by tags

Based-on: 20260317120241.16320-1-philmd@linaro.org
Signed-off-by: Mohammadfaiz Bawa <mbawa@redhat.com>

Mohammadfaiz Bawa (3):
  docs/specs/tpm: document PPI support on ARM64 virt
  hw/acpi/tpm: parameterize PPI base address in tpm_build_ppi_acpi
  hw/tpm: add PPI support to tpm-tis-device for ARM64 virt

 docs/specs/tpm.rst       | 24 ++++++++++++++++++++++++
 hw/acpi/tpm.c            |  8 ++++----
 hw/arm/virt-acpi-build.c |  9 ++++++++-
 hw/i386/acpi-build.c     |  2 +-
 hw/tpm/tpm_tis_isa.c     |  2 +-
 hw/tpm/tpm_tis_sysbus.c  | 11 +++++++++++
 include/hw/acpi/tpm.h    |  3 ++-
 7 files changed, 51 insertions(+), 8 deletions(-)


base-commit: 9eadbfc48dc892339273890709539e45d7d14219
-- 
2.53.0