[PATCH 1/2] qemu: drop write-only agentStart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/qemu/qemu_domain.c  | 2 --
 src/qemu/qemu_domain.h  | 1 -
 src/qemu/qemu_process.c | 2 --
 3 files changed, 5 deletions(-)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index 8cba755..f121152 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -3657,7 +3657,6 @@ qemuDomainObjEnterAgent(virDomainObjPtr obj)
               priv->agent, obj, obj->def->name);
     virObjectLock(priv->agent);
     virObjectRef(priv->agent);
-    ignore_value(virTimeMillisNow(&priv->agentStart));
     virObjectUnlock(obj);
 }
 
@@ -3681,7 +3680,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 2ee1829..8d3688c 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 1b67aee..35fd8c3 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);
-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux