[PATCH 0/2] hw/tpm: fix tpm-tis-device backward migration on aarch64

Mohammadfaiz Bawa posted 2 patches 1 month, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260618125442.641532-1-mbawa@redhat.com
Maintainers: "Philippe Mathieu-Daudé" <philmd@mailo.com>, Zhao Liu <zhao1.liu@intel.com>, Stefan Berger <stefanb@linux.vnet.ibm.com>
There is a newer version of this series
hw/core/machine.c       |  1 +
hw/tpm/tpm_tis.h        |  1 +
hw/tpm/tpm_tis_sysbus.c | 16 +++++++++++-----
3 files changed, 13 insertions(+), 5 deletions(-)
[PATCH 0/2] hw/tpm: fix tpm-tis-device backward migration on aarch64
Posted by Mohammadfaiz Bawa 1 month, 1 week ago
46cd2c1050f0 ("hw/tpm: add PPI support to tpm-tis-device for ARM64
virt") unconditionally registers a "tpm-ppi" RAMBlock when the TPM
TIS sysbus device is realized.  This breaks backward migration: a
QEMU with PPI support cannot migrate to an older QEMU without it:

  Unknown ramblock "tpm-ppi", cannot accept migration

The failure is 100% reproducible on any aarch64 guest that uses
tpm-tis-device when migrating to a host whose QEMU predates the PPI
commit.

Fix by gating the PPI memory region behind a new "ppi" device
property, and disabling it via hw_compat_11_0[] for machine types
<= virt-11.0.

Mohammadfaiz Bawa (2):
  hw/tpm: gate PPI support on tpm-tis-device behind a device property
  hw/core/machine: disable tpm-tis-device PPI for machine type <= 11.0

 hw/core/machine.c       |  1 +
 hw/tpm/tpm_tis.h        |  1 +
 hw/tpm/tpm_tis_sysbus.c | 16 +++++++++++-----
 3 files changed, 13 insertions(+), 5 deletions(-)

-- 
2.54.0