<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libvirt-python.git/generator.py, branch CVE-2011-2178</title>
<subtitle>libvirt.org: git/libvirt-python.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libvirt-python.git/'/>
<entry>
<title>sched: introduce virDomainGetSchedulerParametersFlags</title>
<updated>2011-05-29T10:38:10+00:00</updated>
<author>
<name>Eric Blake</name>
<email>eblake@redhat.com</email>
</author>
<published>2011-05-17T21:17:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libvirt-python.git/commit/?id=9c1f69c64ede809901f05073fdbf925078cf1550'/>
<id>9c1f69c64ede809901f05073fdbf925078cf1550</id>
<content type='text'>
If we can choose live or config when setting, then we need to
be able to choose which one we are querying.

Also, make the documentation clear that set must use a non-empty
subset (some of the hypervisors fail if params is NULL).

* include/libvirt/libvirt.h.in
(virDomainGetSchedulerParametersFlags): New prototype.
* src/libvirt.c (virDomainGetSchedulerParametersFlags): Implement
it.
* src/libvirt_public.syms: Export it.
* python/generator.py (skip_impl): Don't auto-generate.
* src/driver.h (virDrvDomainGetSchedulerParametersFlags): New
callback.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we can choose live or config when setting, then we need to
be able to choose which one we are querying.

Also, make the documentation clear that set must use a non-empty
subset (some of the hypervisors fail if params is NULL).

* include/libvirt/libvirt.h.in
(virDomainGetSchedulerParametersFlags): New prototype.
* src/libvirt.c (virDomainGetSchedulerParametersFlags): Implement
it.
* src/libvirt_public.syms: Export it.
* python/generator.py (skip_impl): Don't auto-generate.
* src/driver.h (virDrvDomainGetSchedulerParametersFlags): New
callback.
</pre>
</div>
</content>
</entry>
<entry>
<title>libvirt.h: consolidate typed parameter handling</title>
<updated>2011-05-18T14:40:28+00:00</updated>
<author>
<name>Eric Blake</name>
<email>eblake@redhat.com</email>
</author>
<published>2011-05-17T17:44:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libvirt-python.git/commit/?id=ee57a3c7cfa1d2f0b892670a7fe5a6b0887c61ae'/>
<id>ee57a3c7cfa1d2f0b892670a7fe5a6b0887c61ae</id>
<content type='text'>
The new type is identical to the three old types that it replaces,
and by creating a common type, this allows future patches to share
common code that manipulates typed parameters.

This change is backwards-compatible in API (recompilation works
without any edits) and ABI (an older client that has not been
recompiled uses the same layout) for code using only public
names; only code using private names (those beginning with _)
will have to adapt.

* include/libvirt/libvirt.h.in (virTypedParameterType)
(VIR_TYPED_PARAM_FIELD_LENGTH, _virTypedParameter): New enum,
macro, and type.
(virSchedParameter, virBlkioParameter, virMemoryParameter):
Rewrite in terms of a common type, while keeping all old public
names for backwards compatibility.
(struct _virSchedParameter, struct _virBlkioParameter)
(struct _virMemoryParameter): Delete - these are private names.
* python/generator.py (enum): Cope with the refactoring.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new type is identical to the three old types that it replaces,
and by creating a common type, this allows future patches to share
common code that manipulates typed parameters.

This change is backwards-compatible in API (recompilation works
without any edits) and ABI (an older client that has not been
recompiled uses the same layout) for code using only public
names; only code using private names (those beginning with _)
will have to adapt.

* include/libvirt/libvirt.h.in (virTypedParameterType)
(VIR_TYPED_PARAM_FIELD_LENGTH, _virTypedParameter): New enum,
macro, and type.
(virSchedParameter, virBlkioParameter, virMemoryParameter):
Rewrite in terms of a common type, while keeping all old public
names for backwards compatibility.
(struct _virSchedParameter, struct _virBlkioParameter)
(struct _virMemoryParameter): Delete - these are private names.
* python/generator.py (enum): Cope with the refactoring.
</pre>
</div>
</content>
</entry>
<entry>
<title>introduce virDomainSetSchedulerParametersFlags</title>
<updated>2011-05-17T15:37:46+00:00</updated>
<author>
<name>Hu Tao</name>
<email>hutao@cn.fujitsu.com</email>
</author>
<published>2011-05-17T06:20:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libvirt-python.git/commit/?id=ec00edbdee73b793feada979c53df862b1f52f08'/>
<id>ec00edbdee73b793feada979c53df862b1f52f08</id>
<content type='text'>
This new function allows aditional flags to be passed into from
the virsh command line.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This new function allows aditional flags to be passed into from
the virsh command line.
</pre>
</div>
</content>
</entry>
<entry>
<title>virDomainGetState public API</title>
<updated>2011-05-16T08:04:18+00:00</updated>
<author>
<name>Jiri Denemark</name>
<email>jdenemar@redhat.com</email>
</author>
<published>2011-04-22T11:31:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libvirt-python.git/commit/?id=a35962b1af2077e18b93966b903d9061779f1ff7'/>
<id>a35962b1af2077e18b93966b903d9061779f1ff7</id>
<content type='text'>
This API is supposed to replace virDomainGetInfo when the only purpose
of calling it is getting current domain status.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This API is supposed to replace virDomainGetInfo when the only purpose
of calling it is getting current domain status.
</pre>
</div>
</content>
</entry>
<entry>
<title>python: Use hardcoded python path in libvirt.py</title>
<updated>2011-03-14T11:37:19+00:00</updated>
<author>
<name>Jiri Denemark</name>
<email>jdenemar@redhat.com</email>
</author>
<published>2011-03-11T12:44:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libvirt-python.git/commit/?id=0aa2b90fc0a9975221ae8f8e94df61bb788877bc'/>
<id>0aa2b90fc0a9975221ae8f8e94df61bb788877bc</id>
<content type='text'>
This partially reverts (and fixes that part in a different way) commit
e4384459c93e3e786aa483c7f077d1d22148f689, which replaced
``/usr/bin/python'' with ``/usr/bin/env python'' in all examples or
scripts used during build to generate other files.

However, python bindings module is compiled and linked against a
specific python discovered or explicitly provided in configure phase.
Thus libvirt.py, which is generated and installed into the system,
should use the same python binary for which the module has been built.

The hunk in Makefile.am replaces $(srcdir) with $(PYTHON), which might
seem wrong but it is not. generator.py didn't use any of its command
line arguments so passing $(srcdir) to it was redundant.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This partially reverts (and fixes that part in a different way) commit
e4384459c93e3e786aa483c7f077d1d22148f689, which replaced
``/usr/bin/python'' with ``/usr/bin/env python'' in all examples or
scripts used during build to generate other files.

However, python bindings module is compiled and linked against a
specific python discovered or explicitly provided in configure phase.
Thus libvirt.py, which is generated and installed into the system,
should use the same python binary for which the module has been built.

The hunk in Makefile.am replaces $(srcdir) with $(PYTHON), which might
seem wrong but it is not. generator.py didn't use any of its command
line arguments so passing $(srcdir) to it was redundant.
</pre>
</div>
</content>
</entry>
<entry>
<title>libvirt: add virDomain{Get,Set}BlkioParameters</title>
<updated>2011-03-11T00:53:16+00:00</updated>
<author>
<name>Gui Jianfeng</name>
<email>guijianfeng@cn.fujitsu.com</email>
</author>
<published>2011-02-22T05:30:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libvirt-python.git/commit/?id=f9b0014ec10e3c031e0cdbd90ae9c2ba5698804e'/>
<id>f9b0014ec10e3c031e0cdbd90ae9c2ba5698804e</id>
<content type='text'>
Add virDomainSetBlkioParameters virDomainGetBlkioParameters

Signed-off-by: Gui Jianfeng &lt;guijianfeng@cn.fujitsu.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add virDomainSetBlkioParameters virDomainGetBlkioParameters

Signed-off-by: Gui Jianfeng &lt;guijianfeng@cn.fujitsu.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>maint: Expand tabs in python code</title>
<updated>2011-02-18T07:59:51+00:00</updated>
<author>
<name>Jiri Denemark</name>
<email>jdenemar@redhat.com</email>
</author>
<published>2011-02-16T15:57:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libvirt-python.git/commit/?id=c8d59ea64a7e09f94c9f5081f7fb718d702a4ff5'/>
<id>c8d59ea64a7e09f94c9f5081f7fb718d702a4ff5</id>
<content type='text'>
Also cfg.mk is tweaked to force this for all future changes to *.py
files.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also cfg.mk is tweaked to force this for all future changes to *.py
files.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use python discovered through env instead of hardcoding a path</title>
<updated>2010-11-14T21:45:59+00:00</updated>
<author>
<name>Matthias Bolte</name>
<email>matthias.bolte@googlemail.com</email>
</author>
<published>2010-11-13T15:34:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libvirt-python.git/commit/?id=1e025b834b7f5cdd677d29a6c78e3edbecc839a4'/>
<id>1e025b834b7f5cdd677d29a6c78e3edbecc839a4</id>
<content type='text'>
This is more flexible regarding the location of the python binary
but doesn't allow to pass the -u flag. The -i flag can be passed
from inside the script using the PYTHONINSPECT env variable.

This fixes a problem with the esx_vi_generator.py on FreeBSD.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is more flexible regarding the location of the python binary
but doesn't allow to pass the -u flag. The -i flag can be passed
from inside the script using the PYTHONINSPECT env variable.

This fixes a problem with the esx_vi_generator.py on FreeBSD.
</pre>
</div>
</content>
</entry>
<entry>
<title>Adding structure and defines for virDomainSet/GetMemoryParameters</title>
<updated>2010-10-12T17:26:09+00:00</updated>
<author>
<name>Nikunj A. Dadhania</name>
<email>nikunj@linux.vnet.ibm.com</email>
</author>
<published>2010-10-12T13:43:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libvirt-python.git/commit/?id=5e11899803a9e74f7772bd8464802fab8e1c05d2'/>
<id>5e11899803a9e74f7772bd8464802fab8e1c05d2</id>
<content type='text'>
This patch adds a structure virMemoryParameter, it contains the name of
the
parameter and the type of the parameter along with a union.

dv:
+ rename enums to VIR_DOMAIN_MEMORY_PARAM_*
+ remove some extraneous tabs

v4:
+ Add unsigned int flags to the public api for future extensions

v3:
+ Protoype for virDomainGetMemoryParameters and dummy python binding.

v2:
+ Includes dummy python bindings for the library to build cleanly.
+ Define string constants like "hard_limit", etc.
+ re-order this patch.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds a structure virMemoryParameter, it contains the name of
the
parameter and the type of the parameter along with a union.

dv:
+ rename enums to VIR_DOMAIN_MEMORY_PARAM_*
+ remove some extraneous tabs

v4:
+ Add unsigned int flags to the public api for future extensions

v3:
+ Protoype for virDomainGetMemoryParameters and dummy python binding.

v2:
+ Includes dummy python bindings for the library to build cleanly.
+ Define string constants like "hard_limit", etc.
+ re-order this patch.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix up the python bindings for snapshotting.</title>
<updated>2010-05-20T17:49:38+00:00</updated>
<author>
<name>Chris Lalancette</name>
<email>clalance@redhat.com</email>
</author>
<published>2010-05-19T13:02:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libvirt-python.git/commit/?id=a4079e7ec63c7ecdc5fcd23b33831c58e3679d46'/>
<id>a4079e7ec63c7ecdc5fcd23b33831c58e3679d46</id>
<content type='text'>
This involved a few fixes.  To start with,
an virDomainSnapshot object is really tied to a
domain, not a connection, so we have to generate
a slightly different object so that we can get
at self._dom for the object.

Next, we had to "dummy" up an override piece of
XML with a bogus argument that the function doesn't
actually take.  That's so that the generator places
virDomainRevertToSnapshot underneath the correct
class (namely, the virDomain class).

Finally, we had to hand-implement the
virDomainRevertToSnapshot implementation, ignoring the
bogus pointer we are being passed.

With all of this in place, I was able to successfully
take a snapshot and revert to it using only the
Python bindings.

Signed-off-by: Chris Lalancette &lt;clalance@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This involved a few fixes.  To start with,
an virDomainSnapshot object is really tied to a
domain, not a connection, so we have to generate
a slightly different object so that we can get
at self._dom for the object.

Next, we had to "dummy" up an override piece of
XML with a bogus argument that the function doesn't
actually take.  That's so that the generator places
virDomainRevertToSnapshot underneath the correct
class (namely, the virDomain class).

Finally, we had to hand-implement the
virDomainRevertToSnapshot implementation, ignoring the
bogus pointer we are being passed.

With all of this in place, I was able to successfully
take a snapshot and revert to it using only the
Python bindings.

Signed-off-by: Chris Lalancette &lt;clalance@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
