mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
libxl: add a flag to mark guests as tainted by a hook
The migrate hook will affect the migrated guest definition. Allow these domains be marked as tainted in the libxl driver.
This commit is contained in:
parent
c6f0e177a3
commit
db38eb4068
@ -1135,6 +1135,16 @@ libxlDomainStart(libxlDriverPrivatePtr driver,
|
|||||||
vm->def, hostdev_flags) < 0)
|
vm->def, hostdev_flags) < 0)
|
||||||
goto cleanup_dom;
|
goto cleanup_dom;
|
||||||
|
|
||||||
|
if (priv->hookRun) {
|
||||||
|
char uuidstr[VIR_UUID_STRING_BUFLEN];
|
||||||
|
virUUIDFormat(vm->def->uuid, uuidstr);
|
||||||
|
|
||||||
|
VIR_WARN("Domain id='%d' name='%s' uuid='%s' is tainted: hook",
|
||||||
|
vm->def->id,
|
||||||
|
vm->def->name,
|
||||||
|
uuidstr);
|
||||||
|
}
|
||||||
|
|
||||||
/* Unlock virDomainObj while creating the domain */
|
/* Unlock virDomainObj while creating the domain */
|
||||||
virObjectUnlock(vm);
|
virObjectUnlock(vm);
|
||||||
|
|
||||||
|
@ -69,6 +69,8 @@ struct _libxlDomainObjPrivate {
|
|||||||
char *lockState;
|
char *lockState;
|
||||||
|
|
||||||
struct libxlDomainJobObj job;
|
struct libxlDomainJobObj job;
|
||||||
|
|
||||||
|
bool hookRun; /* true if there was a hook run over this domain */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user