Skip to content

hw/tpm: Remove instance @ppi_enabled field

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest5 patches 16 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5hw/tpm: Factor tpm_ppi_enabled() outhw/acpi/tpm.c hw/i386/acpi-build.c include/system/tpm.h+11 -21 reply
2/5hw/tpm: Add TPMIfClass::ppi_enabled fieldinclude/system/tpm.h+4 -02 replies
3/5hw/tpm: Remove CRBState::ppi_enabled fieldhw/tpm/tpm_crb.c+4 -93 replies
4/5hw/tpm: Propagate @ppi_enabled to tpm_tis_reset() and remove in TPMStatehw/tpm/tpm_tis.h hw/tpm/tpm_tis_common.c hw/tpm/tpm_tis_i2c.c +2 more+9 -121 reply
5/5hw/tpm: Simplify tpm_ppi_enabled()include/system/tpm.h+1 -51 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchStefan Berger
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] hw/tpm: Remove instance @ppi_enabled field

The "ppi" property and @ppi_enabled field were only used for backward compatibility during the 3.1 release. We removed all these legacy machines: the property isn't required anymore. Still it was how the ACPI subsystem was checking PPI use by TPM devices. This series convert the per-instance field exposed as QOM property as a single class (actually QOM interface) one.

Philippe Mathieu-Daudé (5):
hw/tpm: Factor tpm_ppi_enabled() out
hw/tpm: Add TPMIfClass::ppi_enabled field
hw/tpm: Remove CRBState::ppi_enabled field
hw/tpm: Propagate @ppi_enabled to tpm_tis_reset() and remove in
TPMState
hw/tpm: Simplify tpm_ppi_enabled()

 hw/tpm/tpm_tis.h        |  3 +--
 include/system/tpm.h    |  9 +++++++++
 hw/acpi/tpm.c           |  2 +-
 hw/i386/acpi-build.c    |  2 +-
 hw/tpm/tpm_crb.c        | 13 ++++---------
 hw/tpm/tpm_tis_common.c |  4 ++--
 hw/tpm/tpm_tis_i2c.c    |  2 +-
 hw/tpm/tpm_tis_isa.c    | 10 ++++------
 hw/tpm/tpm_tis_sysbus.c |  2 +-
 9 files changed, 24 insertions(+), 23 deletions(-)
Signature · 1 line
2.53.0