<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libvirt-python-split.git, branch v1.0.1</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/berrange/public_git/libvirt-python-split.git/'/>
<entry>
<title>Fix the indention</title>
<updated>2012-12-04T15:41:35+00:00</updated>
<author>
<name>Osier Yang</name>
<email>jyang@redhat.com</email>
</author>
<published>2012-12-04T15:37:41+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/berrange/public_git/libvirt-python-split.git/commit/?id=94ea7e5b4852f51d30f1f1a125ce56fb045f0abf'/>
<id>94ea7e5b4852f51d30f1f1a125ce56fb045f0abf</id>
<content type='text'>
Introduced by commit 1465876a, pushed under build-breaker &amp;&amp;
trivial rule.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduced by commit 1465876a, pushed under build-breaker &amp;&amp;
trivial rule.
</pre>
</div>
</content>
</entry>
<entry>
<title>Bind connection close callback APIs to python binding</title>
<updated>2012-12-04T13:50:11+00:00</updated>
<author>
<name>Daniel P. Berrange</name>
<email>berrange@redhat.com</email>
</author>
<published>2012-07-30T16:30:42+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/berrange/public_git/libvirt-python-split.git/commit/?id=ac532dd37dcca7f7b43dda56516aa39a69b3401c'/>
<id>ac532dd37dcca7f7b43dda56516aa39a69b3401c</id>
<content type='text'>
Add code in the python binding to cope with the new APIs
virConnectRegisterCloseCallback and
virConnectUnregisterCloseCallback. Also demonstrate their
use in the python domain events demo

Signed-off-by: Daniel P. Berrange &lt;berrange@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add code in the python binding to cope with the new APIs
virConnectRegisterCloseCallback and
virConnectUnregisterCloseCallback. Also demonstrate their
use in the python domain events demo

Signed-off-by: Daniel P. Berrange &lt;berrange@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>python: Use virNodeGetCPUMap where possible</title>
<updated>2012-11-15T16:01:53+00:00</updated>
<author>
<name>Viktor Mihajlovski</name>
<email>mihajlov@linux.vnet.ibm.com</email>
</author>
<published>2012-11-13T12:54:38+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/berrange/public_git/libvirt-python-split.git/commit/?id=ca7f58d203971b219bb965f20500cf463fdbed58'/>
<id>ca7f58d203971b219bb965f20500cf463fdbed58</id>
<content type='text'>
Modified the places where virNodeGetInfo was used for the purpose
of obtaining the maximum node CPU number. Transparently falling
back to virNodeGetInfo in case of failure.
Wrote a utility function getPyNodeCPUCount for that purpose.

Signed-off-by: Viktor Mihajlovski &lt;mihajlov@linux.vnet.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Modified the places where virNodeGetInfo was used for the purpose
of obtaining the maximum node CPU number. Transparently falling
back to virNodeGetInfo in case of failure.
Wrote a utility function getPyNodeCPUCount for that purpose.

Signed-off-by: Viktor Mihajlovski &lt;mihajlov@linux.vnet.ibm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove spurious whitespace between function name &amp; open brackets</title>
<updated>2012-11-02T13:36:49+00:00</updated>
<author>
<name>Daniel P. Berrange</name>
<email>berrange@redhat.com</email>
</author>
<published>2012-10-17T09:23:12+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/berrange/public_git/libvirt-python-split.git/commit/?id=15cfee2f5075cd6e3a8b57c0176cb8580caace48'/>
<id>15cfee2f5075cd6e3a8b57c0176cb8580caace48</id>
<content type='text'>
The libvirt coding standard is to use 'function(...args...)'
instead of 'function (...args...)'. A non-trivial number of
places did not follow this rule and are fixed in this patch.

Signed-off-by: Daniel P. Berrange &lt;berrange@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The libvirt coding standard is to use 'function(...args...)'
instead of 'function (...args...)'. A non-trivial number of
places did not follow this rule and are fixed in this patch.

Signed-off-by: Daniel P. Berrange &lt;berrange@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>maint: consistent whitespace after 'if'</title>
<updated>2012-10-25T17:36:43+00:00</updated>
<author>
<name>Eric Blake</name>
<email>eblake@redhat.com</email>
</author>
<published>2012-10-25T17:36:43+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/berrange/public_git/libvirt-python-split.git/commit/?id=76097bfbb42e8d170e47466cbaf1e077053f6efa'/>
<id>76097bfbb42e8d170e47466cbaf1e077053f6efa</id>
<content type='text'>
Noticed during the review of the previous patch.

* python/libvirt-override.c: Use space between 'if ('.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Noticed during the review of the previous patch.

* python/libvirt-override.c: Use space between 'if ('.
</pre>
</div>
</content>
</entry>
<entry>
<title>virNodeGetCPUMap: Add python binding</title>
<updated>2012-10-25T17:34:35+00:00</updated>
<author>
<name>Viktor Mihajlovski</name>
<email>mihajlov@linux.vnet.ibm.com</email>
</author>
<published>2012-10-25T14:59:08+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/berrange/public_git/libvirt-python-split.git/commit/?id=dae52c3ca701ee7cd654b00375ae06e439010e2f'/>
<id>dae52c3ca701ee7cd654b00375ae06e439010e2f</id>
<content type='text'>
Added a method getCPUMap to virConnect.
It can be used as follows:

import libvirt
import sys
import os

conn = libvirt.openReadOnly(None)
if conn == None:
    print 'Failed to open connection to the hypervisor'
    sys.exit(1)

try:
    (cpus, cpumap, online) = conn.getCPUMap(0)
except:
    print 'Failed to extract the node cpu map information'
    sys.exit(1)

print 'CPUs total %d, online %d' % (cpus, online)
print 'CPU map %s' % str(cpumap)

del conn
print "OK"

sys.exit(0)

Signed-off-by: Viktor Mihajlovski &lt;mihajlov@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added a method getCPUMap to virConnect.
It can be used as follows:

import libvirt
import sys
import os

conn = libvirt.openReadOnly(None)
if conn == None:
    print 'Failed to open connection to the hypervisor'
    sys.exit(1)

try:
    (cpus, cpumap, online) = conn.getCPUMap(0)
except:
    print 'Failed to extract the node cpu map information'
    sys.exit(1)

print 'CPUs total %d, online %d' % (cpus, online)
print 'CPU map %s' % str(cpumap)

del conn
print "OK"

sys.exit(0)

Signed-off-by: Viktor Mihajlovski &lt;mihajlov@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>virNodeGetCPUMap: Define public API.</title>
<updated>2012-10-24T00:46:47+00:00</updated>
<author>
<name>Viktor Mihajlovski</name>
<email>mihajlov@linux.vnet.ibm.com</email>
</author>
<published>2012-10-23T20:34:53+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/berrange/public_git/libvirt-python-split.git/commit/?id=2594a007509ef20e94636089e26237af7e862609'/>
<id>2594a007509ef20e94636089e26237af7e862609</id>
<content type='text'>
Adding a new API to obtain information about the
host node's present, online and offline CPUs.

int virNodeGetCPUMap(virConnectPtr conn,
                     unsigned char **cpumap,
                     unsigned int *online,
                     unsigned int flags);

The function will return the number of CPUs present on the host
or -1 on failure;
If cpumap is non-NULL virNodeGetCPUMap will allocate an array
containing a bit map representation of the online CPUs. It's
the callers responsibility to deallocate cpumap using free().
If online is non-NULL, the variable pointed to will contain
the number of online host node CPUs.
The variable flags has been added to support future extensions
and must be set to 0.

Extend the driver structure by nodeGetCPUMap entry in support of the
new API virNodeGetCPUMap.
Added implementation of virNodeGetCPUMap to libvirt.c

Signed-off-by: Viktor Mihajlovski &lt;mihajlov@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding a new API to obtain information about the
host node's present, online and offline CPUs.

int virNodeGetCPUMap(virConnectPtr conn,
                     unsigned char **cpumap,
                     unsigned int *online,
                     unsigned int flags);

The function will return the number of CPUs present on the host
or -1 on failure;
If cpumap is non-NULL virNodeGetCPUMap will allocate an array
containing a bit map representation of the online CPUs. It's
the callers responsibility to deallocate cpumap using free().
If online is non-NULL, the variable pointed to will contain
the number of online host node CPUs.
The variable flags has been added to support future extensions
and must be set to 0.

Extend the driver structure by nodeGetCPUMap entry in support of the
new API virNodeGetCPUMap.
Added implementation of virNodeGetCPUMap to libvirt.c

Signed-off-by: Viktor Mihajlovski &lt;mihajlov@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for SUSPEND_DISK event</title>
<updated>2012-10-15T10:09:10+00:00</updated>
<author>
<name>Martin Kletzander</name>
<email>mkletzan@redhat.com</email>
</author>
<published>2012-10-12T19:13:39+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/berrange/public_git/libvirt-python-split.git/commit/?id=4248becb86df45d87e6a641d19cbe29a8ef94cf5'/>
<id>4248becb86df45d87e6a641d19cbe29a8ef94cf5</id>
<content type='text'>
This patch adds support for SUSPEND_DISK event; both lifecycle and
separated.  The support is added for QEMU, machines are changed to
PMSUSPENDED, but as QEMU sends SHUTDOWN afterwards, the state changes
to shut-off.  This and much more needs to be done in order for libvirt
to work with transient devices, wake-ups etc.  This patch is not
aiming for that functionality.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds support for SUSPEND_DISK event; both lifecycle and
separated.  The support is added for QEMU, machines are changed to
PMSUSPENDED, but as QEMU sends SHUTDOWN afterwards, the state changes
to shut-off.  This and much more needs to be done in order for libvirt
to work with transient devices, wake-ups etc.  This patch is not
aiming for that functionality.
</pre>
</div>
</content>
</entry>
<entry>
<title>Properly parse (unsigned) long long</title>
<updated>2012-10-13T00:54:11+00:00</updated>
<author>
<name>Guido Günther</name>
<email>agx@sigxcpu.org</email>
</author>
<published>2012-10-12T23:05:40+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/berrange/public_git/libvirt-python-split.git/commit/?id=c360b84ba0d464c06d0e617ed753a71a84e8e8ee'/>
<id>c360b84ba0d464c06d0e617ed753a71a84e8e8ee</id>
<content type='text'>
This fixes problems on platforms where sizeof(long) != sizeof(long long)
like ia32.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes problems on platforms where sizeof(long) != sizeof(long long)
like ia32.
</pre>
</div>
</content>
</entry>
<entry>
<title>python: keep consistent handling of Python integer conversion</title>
<updated>2012-10-08T13:54:06+00:00</updated>
<author>
<name>Guannan Ren</name>
<email>gren@redhat.com</email>
</author>
<published>2012-09-28T12:29:03+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/berrange/public_git/libvirt-python-split.git/commit/?id=49873a855f0ede1388cea7ef37bf861e88950d61'/>
<id>49873a855f0ede1388cea7ef37bf861e88950d61</id>
<content type='text'>
libvirt_ulonglongUnwrap requires the integer type of python obj.
But libvirt_longlongUnwrap still could handle python obj of
Pyfloat_type which causes the float value to be rounded up
to an integer.

For example
 &gt;&gt;&gt; dom.setSchedulerParameters({'vcpu_quota': 0.88})
 0
libvirt_longlongUnwrap treats 0.88 as a valid value 0

However
 &gt;&gt;&gt; dom.setSchedulerParameters({'cpu_shares': 1000.22})
libvirt_ulonglongUnwrap will throw out an error
"TypeError: an integer is required"

The patch make this consistent.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
libvirt_ulonglongUnwrap requires the integer type of python obj.
But libvirt_longlongUnwrap still could handle python obj of
Pyfloat_type which causes the float value to be rounded up
to an integer.

For example
 &gt;&gt;&gt; dom.setSchedulerParameters({'vcpu_quota': 0.88})
 0
libvirt_longlongUnwrap treats 0.88 as a valid value 0

However
 &gt;&gt;&gt; dom.setSchedulerParameters({'cpu_shares': 1000.22})
libvirt_ulonglongUnwrap will throw out an error
"TypeError: an integer is required"

The patch make this consistent.
</pre>
</div>
</content>
</entry>
</feed>
