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:
parent
842900dc1e
commit
17f001c451
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user