You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/tpm
Ross Lagerwall f0ccce6a95 tpm_crb: Avoid backend startup just before shutdown under Xen
When running under Xen and the guest reboots, it boots into a new domain
with a new QEMU process (and a new swtpm process if using the emulator
backend). The existing reset function is triggered just before the old
QEMU process exists which causes QEMU to startup the TPM backend and
then immediately shut it down. This is probably harmless but when using
the emulated backend, it wastes CPU and IO time reloading state, etc.

Fix this by calling the reset function directly from realize() when
running under Xen. During a reboot, this will be called by the QEMU
process for the new domain.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Message-id: 20220826143841.1515326-1-ross.lagerwall@citrix.com
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2 years ago
..
Kconfig tpm: Move backend code under the 'backends/' directory 4 years ago
meson.build meson: convert hw/tpm 4 years ago
tpm_crb.c tpm_crb: Avoid backend startup just before shutdown under Xen 2 years ago
tpm_ppi.c Replace qemu_real_host_page variables with inlined functions 3 years ago
tpm_ppi.h hw/tpm: Clean includes 3 years ago
tpm_prop.h qdev: Move qdev_prop_tpm declaration to tpm_prop.h 4 years ago
tpm_spapr.c tpm: tpm_spapr: Remove unused tracepoint 4 years ago
tpm_tis.h hw/tpm: Do not include 'qemu/osdep.h' in header 4 years ago
tpm_tis_common.c hw/tpm/tpm_tis_common.c: Assert that locty is in range 3 years ago
tpm_tis_isa.c acpi: tpm-tis: use AcpiDevAmlIfClass:build_dev_aml to provide device's AML 2 years ago
tpm_tis_sysbus.c tpm: put some tpm devices into the correct category 4 years ago
trace-events docs: fix references to docs/devel/tracing.rst 4 years ago
trace.h trace: switch position of headers to what Meson requires 4 years ago