Its counterpart is qemuTPMEmulatorStop().
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
src/qemu/qemu_tpm.c | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/src/qemu/qemu_tpm.c b/src/qemu/qemu_tpm.c
index 9c5d1ffed4..c82e5921d7 100644
--- a/src/qemu/qemu_tpm.c
+++ b/src/qemu/qemu_tpm.c
@@ -875,9 +875,8 @@ qemuExtTPMCleanupHost(virDomainDef *def)
}
-/*
- * qemuExtTPMStartEmulator:
- *
+/**
+ * qemuTPMEmulatorStart:
* @driver: QEMU driver
* @vm: the domain object
* @incomingMigration: whether we have an incoming migration
@@ -887,10 +886,10 @@ qemuExtTPMCleanupHost(virDomainDef *def)
* - start the external TPM Emulator and sync with it before QEMU start
*/
static int
-qemuExtTPMStartEmulator(virQEMUDriver *driver,
- virDomainObj *vm,
- virDomainTPMDef *tpm,
- bool incomingMigration)
+qemuTPMEmulatorStart(virQEMUDriver *driver,
+ virDomainObj *vm,
+ virDomainTPMDef *tpm,
+ bool incomingMigration)
{
g_autoptr(virCommand) cmd = NULL;
VIR_AUTOCLOSE errfd = -1;
@@ -994,8 +993,8 @@ qemuExtTPMStart(virQEMUDriver *driver,
if (vm->def->tpms[i]->type != VIR_DOMAIN_TPM_TYPE_EMULATOR)
continue;
- return qemuExtTPMStartEmulator(driver, vm, vm->def->tpms[i],
- incomingMigration);
+ return qemuTPMEmulatorStart(driver, vm, vm->def->tpms[i],
+ incomingMigration);
}
return 0;
--
2.34.1