diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index fafa82c688..5928b0225a 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -3646,7 +3646,6 @@ qemuDomainObjEnterAgent(virDomainObjPtr obj) priv->agent, obj, obj->def->name); virObjectLock(priv->agent); virObjectRef(priv->agent); - ignore_value(virTimeMillisNow(&priv->agentStart)); virObjectUnlock(obj); } @@ -3670,7 +3669,6 @@ qemuDomainObjExitAgent(virDomainObjPtr obj) VIR_DEBUG("Exited agent (agent=%p vm=%p name=%s)", priv->agent, obj, obj->def->name); - priv->agentStart = 0; if (!hasRefs) priv->agent = NULL; } diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h index 9df5266be0..42738234bd 100644 --- a/src/qemu/qemu_domain.h +++ b/src/qemu/qemu_domain.h @@ -178,7 +178,6 @@ struct _qemuDomainObjPrivate { qemuAgentPtr agent; bool agentError; - unsigned long long agentStart; bool gotShutdown; bool beingDestroyed; diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index cb9eb22982..f8f379a589 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -231,7 +231,6 @@ qemuConnectAgent(virQEMUDriverPtr driver, virDomainObjPtr vm) * deleted while the agent is active */ virObjectRef(vm); - ignore_value(virTimeMillisNow(&priv->agentStart)); virObjectUnlock(vm); agent = qemuAgentOpen(vm, @@ -239,7 +238,6 @@ qemuConnectAgent(virQEMUDriverPtr driver, virDomainObjPtr vm) &agentCallbacks); virObjectLock(vm); - priv->agentStart = 0; if (agent == NULL) virObjectUnref(vm);