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

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

 



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@xxxxxxxxxx>
---
 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

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux