mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-31 14:07:16 +00:00
qemu: Rename qemuExtTPMStartEmulator()
Its counterpart is qemuTPMEmulatorStop(). Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
f087335034
commit
5d9d9943a7
@ -875,9 +875,8 @@ qemuExtTPMCleanupHost(virDomainDef *def)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* qemuExtTPMStartEmulator:
|
* qemuTPMEmulatorStart:
|
||||||
*
|
|
||||||
* @driver: QEMU driver
|
* @driver: QEMU driver
|
||||||
* @vm: the domain object
|
* @vm: the domain object
|
||||||
* @incomingMigration: whether we have an incoming migration
|
* @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
|
* - start the external TPM Emulator and sync with it before QEMU start
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
qemuExtTPMStartEmulator(virQEMUDriver *driver,
|
qemuTPMEmulatorStart(virQEMUDriver *driver,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
virDomainTPMDef *tpm,
|
virDomainTPMDef *tpm,
|
||||||
bool incomingMigration)
|
bool incomingMigration)
|
||||||
{
|
{
|
||||||
g_autoptr(virCommand) cmd = NULL;
|
g_autoptr(virCommand) cmd = NULL;
|
||||||
VIR_AUTOCLOSE errfd = -1;
|
VIR_AUTOCLOSE errfd = -1;
|
||||||
@ -994,8 +993,8 @@ qemuExtTPMStart(virQEMUDriver *driver,
|
|||||||
if (vm->def->tpms[i]->type != VIR_DOMAIN_TPM_TYPE_EMULATOR)
|
if (vm->def->tpms[i]->type != VIR_DOMAIN_TPM_TYPE_EMULATOR)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
return qemuExtTPMStartEmulator(driver, vm, vm->def->tpms[i],
|
return qemuTPMEmulatorStart(driver, vm, vm->def->tpms[i],
|
||||||
incomingMigration);
|
incomingMigration);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user