[virt-tools-list] [virt-manager PATCH 1/2] Disable domain events with XEN

Giuseppe Scrivano gscrivan at redhat.com
Wed Feb 25 15:34:19 UTC 2015


When XEN is used, disable domain events and use polling.

On RHEL-5.9 virDomainInfo() seems to not report correctly the domain
status when called immediately after the event is received.

Solves: https://bugzilla.redhat.com/show_bug.cgi?id=1177207

Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
 virtManager/connection.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/virtManager/connection.py b/virtManager/connection.py
index a510b11..07763cc 100644
--- a/virtManager/connection.py
+++ b/virtManager/connection.py
@@ -752,6 +752,10 @@ class vmmConnection(vmmGObject):
             self.schedule_priority_tick(pollnet=True, force=True)
 
     def _add_conn_events(self):
+        # Fallback to polling for XEN
+        if self.is_xen():
+            return
+
         try:
             if _disable_libvirt_events:
                 raise RuntimeError("_disable_libvirt_events = True")
-- 
2.1.0




More information about the virt-tools-list mailing list