libxlReconnectNotifyNets(vm->def);
+ if (virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm, cfg->caps) < 0)
+ VIR_WARN("Cannot update XML for running Xen guest %s", vm->def->name);
+
/* now that we know it's reconnected call the hook if present */
if (virHookPresent(VIR_HOOK_DRIVER_LIBXL) &&
STRNEQ("Domain-0", vm->def->name)) {
{
virLXCDriverPtr driver = opaque;
virLXCDomainObjPrivatePtr priv;
+ virLXCDriverConfigPtr cfg = virLXCDriverGetConfig(driver);
int ret = -1;
virObjectLock(vm);
virLXCProcessReconnectNotifyNets(vm->def);
+ if (virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm, driver->caps) < 0)
+ VIR_WARN("Cannot update XML for running LXC guest %s", vm->def->name);
+
/* now that we know it's reconnected call the hook if present */
if (virHookPresent(VIR_HOOK_DRIVER_LXC)) {
char *xml = virDomainDefFormat(vm->def, driver->caps, 0);
ret = 0;
cleanup:
+ virObjectUnref(cfg);
virObjectUnlock(vm);
return ret;