1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

qemu: record deprecation messages against the domain

These messages are only valid while the domain is running.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2021-01-22 14:48:03 +00:00
parent 842900dc1e
commit 17f001c451
2 changed files with 10 additions and 0 deletions

View File

@ -6239,6 +6239,11 @@ void qemuDomainObjTaintMsg(virQEMUDriverPtr driver,
va_end(args);
}
if (taint == VIR_DOMAIN_TAINT_DEPRECATED_CONFIG &&
extramsg) {
virDomainObjDeprecation(obj, extramsg);
}
VIR_WARN("Domain id=%d name='%s' uuid=%s is tainted: %s%s%s%s",
obj->def->id,
obj->def->name,

View File

@ -7849,6 +7849,11 @@ void qemuProcessStop(virQEMUDriverPtr driver,
}
}
for (i = 0; i < vm->ndeprecations; i++)
g_free(vm->deprecations[i]);
g_free(vm->deprecations);
vm->ndeprecations = 0;
vm->deprecations = NULL;
vm->taint = 0;
vm->pid = -1;
virDomainObjSetState(vm, VIR_DOMAIN_SHUTOFF, reason);