Change in vdsm[master]: machinetype: document public functions

mpolednik at redhat.com mpolednik at redhat.com
Thu Mar 3 13:39:25 UTC 2016


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 <mpolednik at redhat.com>
---
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 <mpolednik at redhat.com>


More information about the vdsm-patches mailing list