mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-08 22:39:56 +00:00
qemu: drop write-only agentStart
This commit is contained in:
parent
6ba861ae36
commit
3c1c56781d
@ -3646,7 +3646,6 @@ qemuDomainObjEnterAgent(virDomainObjPtr obj)
|
|||||||
priv->agent, obj, obj->def->name);
|
priv->agent, obj, obj->def->name);
|
||||||
virObjectLock(priv->agent);
|
virObjectLock(priv->agent);
|
||||||
virObjectRef(priv->agent);
|
virObjectRef(priv->agent);
|
||||||
ignore_value(virTimeMillisNow(&priv->agentStart));
|
|
||||||
virObjectUnlock(obj);
|
virObjectUnlock(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3670,7 +3669,6 @@ qemuDomainObjExitAgent(virDomainObjPtr obj)
|
|||||||
VIR_DEBUG("Exited agent (agent=%p vm=%p name=%s)",
|
VIR_DEBUG("Exited agent (agent=%p vm=%p name=%s)",
|
||||||
priv->agent, obj, obj->def->name);
|
priv->agent, obj, obj->def->name);
|
||||||
|
|
||||||
priv->agentStart = 0;
|
|
||||||
if (!hasRefs)
|
if (!hasRefs)
|
||||||
priv->agent = NULL;
|
priv->agent = NULL;
|
||||||
}
|
}
|
||||||
|
@ -178,7 +178,6 @@ struct _qemuDomainObjPrivate {
|
|||||||
|
|
||||||
qemuAgentPtr agent;
|
qemuAgentPtr agent;
|
||||||
bool agentError;
|
bool agentError;
|
||||||
unsigned long long agentStart;
|
|
||||||
|
|
||||||
bool gotShutdown;
|
bool gotShutdown;
|
||||||
bool beingDestroyed;
|
bool beingDestroyed;
|
||||||
|
@ -231,7 +231,6 @@ qemuConnectAgent(virQEMUDriverPtr driver, virDomainObjPtr vm)
|
|||||||
* deleted while the agent is active */
|
* deleted while the agent is active */
|
||||||
virObjectRef(vm);
|
virObjectRef(vm);
|
||||||
|
|
||||||
ignore_value(virTimeMillisNow(&priv->agentStart));
|
|
||||||
virObjectUnlock(vm);
|
virObjectUnlock(vm);
|
||||||
|
|
||||||
agent = qemuAgentOpen(vm,
|
agent = qemuAgentOpen(vm,
|
||||||
@ -239,7 +238,6 @@ qemuConnectAgent(virQEMUDriverPtr driver, virDomainObjPtr vm)
|
|||||||
&agentCallbacks);
|
&agentCallbacks);
|
||||||
|
|
||||||
virObjectLock(vm);
|
virObjectLock(vm);
|
||||||
priv->agentStart = 0;
|
|
||||||
|
|
||||||
if (agent == NULL)
|
if (agent == NULL)
|
||||||
virObjectUnref(vm);
|
virObjectUnref(vm);
|
||||||
|
Loading…
Reference in New Issue
Block a user