Dan Kenigsberg has uploaded a new change for review.

Change subject: xen: use qemu connection, as compareCPU is unavailable via xen
......................................................................

xen: use qemu connection, as compareCPU is unavailable via xen

This patch is required until compareCPU is implemented by libvirt's xenlight
driver.

Change-Id: Ib86a325910aa57847fef194d7c4bd7c7854e2852
Signed-off-by: Dan Kenigsberg <dan...@redhat.com>
---
M vdsm/caps.py
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/51/28351/1

diff --git a/vdsm/caps.py b/vdsm/caps.py
index a4caa13..a27f582 100644
--- a/vdsm/caps.py
+++ b/vdsm/caps.py
@@ -368,7 +368,10 @@
 
 @utils.memoized
 def _getCompatibleCpuModels():
-    c = libvirtconnection.get()
+    if libvirtconnection.XEN:
+        c = libvirtconnection._open_qemu_connection()
+    else:
+        c = libvirtconnection.get()
     allModels = _getAllCpuModels()
 
     def compatible(model, vendor):


-- 
To view, visit http://gerrit.ovirt.org/28351
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib86a325910aa57847fef194d7c4bd7c7854e2852
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Dan Kenigsberg <dan...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to