mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
qemu: migration: Add VM log entry on start of migration
Note the start of migration of a qemu process to the VM log file for possible debug purposes.
This commit is contained in:
parent
cf3ea0769c
commit
ecb714de53
@ -4519,6 +4519,7 @@ qemuMigrationRun(virQEMUDriverPtr driver,
|
|||||||
bool inPostCopy = false;
|
bool inPostCopy = false;
|
||||||
unsigned int waitFlags;
|
unsigned int waitFlags;
|
||||||
virDomainDefPtr persistDef = NULL;
|
virDomainDefPtr persistDef = NULL;
|
||||||
|
char *timestamp;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
VIR_DEBUG("driver=%p, vm=%p, cookiein=%s, cookieinlen=%d, "
|
VIR_DEBUG("driver=%p, vm=%p, cookiein=%s, cookieinlen=%d, "
|
||||||
@ -4645,6 +4646,12 @@ qemuMigrationRun(virQEMUDriverPtr driver,
|
|||||||
goto exit_monitor;
|
goto exit_monitor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* log start of migration */
|
||||||
|
if ((timestamp = virTimeStringNow()) != NULL) {
|
||||||
|
qemuDomainLogAppendMessage(driver, vm, "%s: initiating migration\n", timestamp);
|
||||||
|
VIR_FREE(timestamp);
|
||||||
|
}
|
||||||
|
|
||||||
switch (spec->destType) {
|
switch (spec->destType) {
|
||||||
case MIGRATION_DEST_HOST:
|
case MIGRATION_DEST_HOST:
|
||||||
if (STREQ(spec->dest.host.protocol, "rdma") &&
|
if (STREQ(spec->dest.host.protocol, "rdma") &&
|
||||||
|
Loading…
Reference in New Issue
Block a user