Martin Polednik has uploaded a new change for review.

Change subject: machinetype: document public functions
......................................................................

machinetype: document public functions

Change-Id: I6e3e4930566d36f1f58e3cf99b84094984cbd334
Signed-off-by: Martin Polednik <[email protected]>
---
M lib/vdsm/machinetype.py
1 file changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/02/54302/1

diff --git a/lib/vdsm/machinetype.py b/lib/vdsm/machinetype.py
index c878451..4ea5916 100644
--- a/lib/vdsm/machinetype.py
+++ b/lib/vdsm/machinetype.py
@@ -35,6 +35,9 @@
 
 @utils.memoized
 def emulated_machines(arch, capabilities=None):
+    '''
+    Parse libvirt capabilties to obtain supported emulated machines on the 
host.
+    '''
     if capabilities is None:
         capabilities = _get_libvirt_caps()
     caps = ET.fromstring(capabilities)
@@ -47,6 +50,9 @@
 
 
 def cpu_models(capfile=CPU_MAP_FILE, arch=None):
+    '''
+    Parse libvirt capabilties to obtain supported cpu models on the host.
+    '''
     if arch is None:
         arch = cpuarch.real()
 
@@ -76,6 +82,11 @@
 
 @utils.memoized
 def compatible_cpu_models():
+    '''
+    Compare qemu's CPU models to models this host is capable of emulating.
+    Due to historic reasons, this comparison takes into account the vendor
+    of CPU.
+    '''
     c = libvirtconnection.get()
     all_models = cpu_models()
 


-- 
To view, visit https://gerrit.ovirt.org/54302
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6e3e4930566d36f1f58e3cf99b84094984cbd334
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Polednik <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to