[libvirt] building error

2012-04-20 Thread Wen Congyang
When I build libvirt, I meet the following error message sometimes: make[4]: Entering directory `/home/wency/rpmbuild/BUILD/libvirt-0.9.11/docs' GENlibvirt-api.xml GENlibvirt-qemu-api.xml GENhtml/index.html ./libvirt-api.xml:2450: parser error : AttValue: ' expected function

[libvirt] [test-API 00/17] Reorgnize/refactoring round 4

2012-04-20 Thread Osier Yang
Perhaps this set shouldn't be called reorgnize/refactoring, but to keep the same title in the series, it's still used. The mainly work this set do is to use the TERM domain instead of guest in codes. Osier Yang (17): Destroy src/dist and move env_inspect.py back Substitute guest_names with

[libvirt] [test-API 02/17] Substitute guest_names with domain_names

2012-04-20 Thread Osier Yang
Same as commit af470a72, let's use the same TERM 'domain' instead of 'guest' in test-API, this patch just substitute guest_names with domain_names, there will be follow up patches to change others, because it will be really large patch if do all the changing together. ---

[libvirt] [test-API 05/17] Substitue guestobj with domobj

2012-04-20 Thread Osier Yang
--- repos/domain/update_devflag.py | 10 +- .../multiple_thread_block_on_domain_create.py |4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/repos/domain/update_devflag.py b/repos/domain/update_devflag.py index 6c75fd6..48efd72 100644

[libvirt] [test-API 01/17] Destroy src/dist and move env_inspect.py back

2012-04-20 Thread Osier Yang
As env_inspect.py is rewrote, and has good portability now. --- src/{dist/redhat = }/env_inspect.py |0 src/generator.py |9 + 2 files changed, 1 insertions(+), 8 deletions(-) delete mode 100644 src/dist/__init__.py delete mode 100644

[libvirt] [test-API 06/17] Substitute guestxml with domxml

2012-04-20 Thread Osier Yang
--- repos/domain/balloon_memory.py | 12 ++-- repos/domain/cpu_affinity.py | 12 ++-- repos/domain/cpu_topology.py |6 +++--- repos/domain/install_image.py |6 +++---

[libvirt] [test-API 04/17] Substitute guest_ with domain_

2012-04-20 Thread Osier Yang
--- repos/domain/attach_disk.py|4 ++-- repos/domain/attach_interface.py |2 +- repos/domain/autostart.py |4 ++-- repos/domain/balloon_memory.py |8 repos/domain/blkstats.py

[libvirt] [test-API 07/17] Substitute _guest with _domain

2012-04-20 Thread Osier Yang
--- .../en-US/Creating_a_configuration_file.xml| 82 ++-- .../en-US/Writing_a_test_case.xml | 24 +++--- .../libvirt-test-API_Guide/en-US/extras/log.txt| 18 ++-- repos/domain/domain_list.py| 12 ++--

[libvirt] [test-API 03/17] Rename src/env_parser.py as src/global_parser.py

2012-04-20 Thread Osier Yang
And: % for i in $(grep 'envparser' * -r | awk -F':' '{print $1}' | uniq); do \ sed -i -e 's/envparser/global_parser/g' $i; \ done % for i in $(grep 'Envparser' * -r | awk -F':' '{print $1}' | uniq); do \ sed -i -e 's/Envparser/GlobalParser/g' $i; \ done % for i in $(grep

[libvirt] [test-API 10/17] Substitute guestarch with os_arch

2012-04-20 Thread Osier Yang
An example of the libvirt XML will tell why os_arch is better. os type arch='x86_64'exe/type init/bin/systemd/init initarg--unit/initarg initargemergency.service/initarg /os --- cases/consumption_cpu_topology.conf|2 +-

[libvirt] [test-API 11/17] Substitute 'guestip' with 'domip'

2012-04-20 Thread Osier Yang
--- repos/domain/update_devflag.py | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/repos/domain/update_devflag.py b/repos/domain/update_devflag.py index f1ecf32..e87b1e5 100644 --- a/repos/domain/update_devflag.py +++ b/repos/domain/update_devflag.py

[libvirt] [test-API 09/17] Substitute guestos with os_type

2012-04-20 Thread Osier Yang
--- cases/consumption_cpu_topology.conf|2 +- cases/consumption_domain_nfs_start.conf|2 +- cases/consumption_eventhandler.conf|2 +- cases/consumption_libvirtd.conf|2 +- cases/consumption_ownership_test.conf

[libvirt] [test-API 12/17] Substitute 'guest' with 'domain'

2012-04-20 Thread Osier Yang
% for i in $(grep 'guest' * -r | awk -F':' '{print $1}'| uniq); do \ sed -i -e 's/guest/domain/g' $i; \ done This also affects the codes like: -url = global_parser.get_value(guest, gname + src) -dict['kickstart'] = global_parser.get_value(guest, gname + ks) +url =

Re: [libvirt] [PATCH] vbox: avoid provoking assertions in VBoxSVC

2012-04-20 Thread Matthias Bolte
Am 20. April 2012 01:07 schrieb Eric Blake ebl...@redhat.com: On 04/17/2012 10:50 AM, Eric Blake wrote: On 04/13/2012 07:04 AM, Jean-Baptiste Rouault wrote: Passing a NULL pointer to IMachine::delete virtualbox API causes VBoxSVC to raise an assertion. This patch passes an empty array

[libvirt] [test-API 14/17] Change the section name 'guest' into 'domain' in global.cfg

2012-04-20 Thread Osier Yang
--- global.cfg |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/global.cfg b/global.cfg index 825e14a..1346988 100644 --- a/global.cfg +++ b/global.cfg @@ -29,7 +29,7 @@ win7_x86_64 = http:// # - URL to iso installation images for Windows domain installations # -

[libvirt] [test-API 15/17] Substitute 'guestinstxml' with 'domxml'

2012-04-20 Thread Osier Yang
--- .../en-US/Writing_a_test_case.xml |6 +++--- utils/xml_builder.py |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/User_Guide/libvirt-test-API_Guide/en-US/Writing_a_test_case.xml

[libvirt] [test-API 13/17] Substitute '\gname\' with 'domname'

2012-04-20 Thread Osier Yang
% for i in $(grep '\gname\' * -r | awk -F':' '{print $1}'); do \ sed -i -e 's/\gname\/domname/g' $i; \ done --- .../en-US/Writing_a_test_case.xml | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git

[libvirt] [test-API 16/17] Substitute '\guest\' with 'domain'

2012-04-20 Thread Osier Yang
% for i in $(grep '\guest\' * -r | awk -F':' '{print $1}' | uniq); do \ sed -i -e 's/\guest\/domain/g' $i; \ done --- .../en-US/Understanding_libvirt-test-API.xml |4 ++-- .../en-US/Writing_a_test_case.xml |2 +- global.cfg

Re: [libvirt] [PATCH] build: avoid type-punning in vbox

2012-04-20 Thread Matthias Bolte
Am 20. April 2012 01:36 schrieb Eric Blake ebl...@redhat.com: Commit 78345c68 makes at least gcc 4.1.2 on RHEL 5 complain: cc1: warnings being treated as errors In file included from vbox/vbox_V4_0.c:13: vbox/vbox_tmpl.c: In function 'vboxDomainUndefineFlags': vbox/vbox_tmpl.c:5298: warning:

Re: [libvirt] [test-API 01/17] Destroy src/dist and move env_inspect.py back

2012-04-20 Thread Martin Kletzander
On 04/20/2012 08:46 AM, Osier Yang wrote: As env_inspect.py is rewrote, and has good portability now. --- src/{dist/redhat = }/env_inspect.py |0 src/generator.py |9 + 2 files changed, 1 insertions(+), 8 deletions(-) delete mode 100644

[libvirt] [PATCH 0/3 v4] use qemu's dump-guest-meory when vm uses host device

2012-04-20 Thread Wen Congyang
Currently, we use migrate to dump guest's memory. There is one restriction in migrate command: the device's status should be stored in qemu because the device's status should be passed to target machine. If we passthrough a host device to guest, the device's status is stored in the real device.

Re: [libvirt] [test-API 02/17] Substitute guest_names with domain_names

2012-04-20 Thread Martin Kletzander
On 04/20/2012 08:46 AM, Osier Yang wrote: Same as commit af470a72, let's use the same TERM 'domain' instead of 'guest' in test-API, this patch just substitute guest_names with domain_names, there will be follow up patches to change others, because it will be really large patch if do all the

[libvirt] [PATCH 2/3 v4] qemu: allow the client to choose the vmcore's format

2012-04-20 Thread Wen Congyang
This patch updates qemu driver to allow the client to choose the vmcore's format: memory only or including device state. --- include/libvirt/libvirt.h.in |1 + src/qemu/qemu_domain.c |1 + src/qemu/qemu_domain.h |1 + src/qemu/qemu_driver.c | 54

[libvirt] [PATCH 1/3] qemu: implement qemu's dump-guest-memory

2012-04-20 Thread Wen Congyang
dump-guest-memory is a new dump mechanism, and it can work when the guest uses host devices. This patch adds a API to use this new monitor command. --- src/qemu/qemu_monitor.c | 38 ++ src/qemu/qemu_monitor.h | 12

[libvirt] [PATCH 3/3 v4] virsh: allow the user to specify vmcore's format

2012-04-20 Thread Wen Congyang
Add a new parameter --memory-only for 'virsh dump' command. So the user can decide the vmcore's format. --- tools/virsh.c |3 +++ tools/virsh.pod |5 - 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index 6168a13..c1e8891 100644 ---

Re: [libvirt] [test-API 03/17] Rename src/env_parser.py as src/global_parser.py

2012-04-20 Thread Martin Kletzander
On 04/20/2012 08:46 AM, Osier Yang wrote: And: % for i in $(grep 'envparser' * -r | awk -F':' '{print $1}' | uniq); do \ sed -i -e 's/envparser/global_parser/g' $i; \ done % for i in $(grep 'Envparser' * -r | awk -F':' '{print $1}' | uniq); do \ sed -i -e

Re: [libvirt] [test-API 03/17] Rename src/env_parser.py as src/global_parser.py

2012-04-20 Thread Osier Yang
On 2012年04月20日 15:35, Martin Kletzander wrote: On 04/20/2012 08:46 AM, Osier Yang wrote: And: % for i in $(grep 'envparser' * -r | awk -F':' '{print $1}' | uniq); do \ sed -i -e 's/envparser/global_parser/g' $i; \ done % for i in $(grep 'Envparser' * -r | awk -F':' '{print $1}' |

Re: [libvirt] [test-API 05/17] Substitue guestobj with domobj

2012-04-20 Thread Martin Kletzander
On 04/20/2012 08:46 AM, Osier Yang wrote: --- repos/domain/update_devflag.py | 10 +- .../multiple_thread_block_on_domain_create.py |4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/repos/domain/update_devflag.py

Re: [libvirt] [test-API 04/17] Substitute guest_ with domain_

2012-04-20 Thread Martin Kletzander
On 04/20/2012 08:46 AM, Osier Yang wrote: --- repos/domain/attach_disk.py|4 ++-- repos/domain/attach_interface.py |2 +- repos/domain/autostart.py |4 ++-- repos/domain/balloon_memory.py |

Re: [libvirt] [test-API 06/17] Substitute guestxml with domxml

2012-04-20 Thread Martin Kletzander
On 04/20/2012 08:46 AM, Osier Yang wrote: --- repos/domain/balloon_memory.py | 12 ++-- repos/domain/cpu_affinity.py | 12 ++-- repos/domain/cpu_topology.py |6 +++--- repos/domain/install_image.py

Re: [libvirt] [test-API 07/17] Substitute _guest with _domain

2012-04-20 Thread Martin Kletzander
On 04/20/2012 08:46 AM, Osier Yang wrote: --- .../en-US/Creating_a_configuration_file.xml| 82 ++-- .../en-US/Writing_a_test_case.xml | 24 +++--- .../libvirt-test-API_Guide/en-US/extras/log.txt| 18 ++-- repos/domain/domain_list.py

Re: [libvirt] [PATCH] build: fix fresh checkout on RHEL5

2012-04-20 Thread Daniel Veillard
On Thu, Apr 19, 2012 at 05:15:01PM -0600, Eric Blake wrote: Building a fresh checkout on RHEL 5 has been broken since commit 29db7a00, due to a gnulib regression in the bootstrap script (incremental builds from a checkout earlier than that point were okay, though). * .gnulib: Update to

Re: [libvirt] [test-API 07/17] Substitute _guest with _domain

2012-04-20 Thread Osier Yang
On 2012年04月20日 16:17, Martin Kletzander wrote: On 04/20/2012 08:46 AM, Osier Yang wrote: --- .../en-US/Creating_a_configuration_file.xml| 82 ++-- .../en-US/Writing_a_test_case.xml | 24 +++--- .../libvirt-test-API_Guide/en-US/extras/log.txt|

Re: [libvirt] [test-API 09/17] Substitute guestos with os_type

2012-04-20 Thread Martin Kletzander
On 04/20/2012 08:46 AM, Osier Yang wrote: --- cases/consumption_cpu_topology.conf|2 +- cases/consumption_domain_nfs_start.conf|2 +- cases/consumption_eventhandler.conf|2 +- cases/consumption_libvirtd.conf|2 +-

Re: [libvirt] building error

2012-04-20 Thread Daniel Veillard
On Fri, Apr 20, 2012 at 02:26:31PM +0800, Wen Congyang wrote: When I build libvirt, I meet the following error message sometimes: make[4]: Entering directory `/home/wency/rpmbuild/BUILD/libvirt-0.9.11/docs' GENlibvirt-api.xml GENlibvirt-qemu-api.xml GENhtml/index.html

[libvirt] [test-API PATCH 0/4]testcases will use xml file directly

2012-04-20 Thread Guannan Ren
Right now, for testcases that needs xml to define domain or storage, etc they call module *utils/xmlbuilder.py utils/xmlgenerator.py* to get back a string of xml. These two module create xml string by xml.dom.minidom This approach is hard to maintain and not easy to use. So we will depreciate it

[libvirt] [test-API PATCH 1/4] add a feature to support the use of xml file by testcases directly

2012-04-20 Thread Guannan Ren
src/testcasexml.py: the function will be called just before calling main function in testcase. The purpose of it is to replace the opition(if present) 'xml = file_path' with 'xml = xmlstring' and pass it into testcase after replacing keywords in the xml file based on the

[libvirt] [test-API PATCH 3/4] example: modify define.py to use the feature

2012-04-20 Thread Guannan Ren
repos/domain/define.py repos/domain/xmls/kvm_guest_define.xml: the define.py will use the kvm_guest_define.xml by default. it also support a file given by user. --- repos/domain/define.py | 50 ++-

[libvirt] [test-API PATCH 2/4] modify framework to support it

2012-04-20 Thread Guannan Ren
libvirt-test-api: pass proxy_obj to generator, and support dict type of optional_params src/generator.py: call xml_file_to_str() src/proxy.py: get the optional_params of a testcase --- libvirt-test-api |3 ++- src/generator.py |7 ++- src/proxy.py

Re: [libvirt] [test-API 07/17] Substitute _guest with _domain

2012-04-20 Thread Martin Kletzander
On 04/20/2012 10:29 AM, Osier Yang wrote: On 2012年04月20日 16:17, Martin Kletzander wrote: On 04/20/2012 08:46 AM, Osier Yang wrote: --- .../en-US/Creating_a_configuration_file.xml| 82 ++-- .../en-US/Writing_a_test_case.xml | 24 +++---

[libvirt] [test-API PATCH 4/4] change the type of optional_params from list to dictionary

2012-04-20 Thread Guannan Ren
The dictionary could support the string replacement in xml file. --- repos/domain/attach_disk.py|2 +- repos/domain/attach_interface.py |2 +- repos/domain/autostart.py |2 +- repos/domain/balloon_memory.py

Re: [libvirt] building error

2012-04-20 Thread Wen Congyang
At 04/20/2012 04:50 PM, Daniel Veillard Wrote: On Fri, Apr 20, 2012 at 02:26:31PM +0800, Wen Congyang wrote: When I build libvirt, I meet the following error message sometimes: make[4]: Entering directory `/home/wency/rpmbuild/BUILD/libvirt-0.9.11/docs' GENlibvirt-api.xml GEN

Re: [libvirt] [PATCH] openvz; wire up getHostname

2012-04-20 Thread Guido Günther
On Thu, Apr 19, 2012 at 04:40:58PM -0600, Eric Blake wrote: On 04/19/2012 04:32 PM, Guido Günther wrote: --- Trivial thing missing in the openvz driver. Cheers, -- Guido src/openvz/openvz_driver.c |1 + 1 file changed, 1 insertion(+) diff --git

Re: [libvirt] [test-API 07/17] Substitute _guest with _domain

2012-04-20 Thread Alex Jia
On 04/20/2012 04:29 PM, Osier Yang wrote: On 2012年04月20日 16:17, Martin Kletzander wrote: On 04/20/2012 08:46 AM, Osier Yang wrote: --- .../en-US/Creating_a_configuration_file.xml| 82 ++-- .../en-US/Writing_a_test_case.xml | 24 +++---

[libvirt] Schedule for next release libvirt-0.9.12

2012-04-20 Thread Daniel Veillard
Assuming we try to stay on a monthly schedule, then I would suggest to enter the freeze around next Friday (27th April) and shoot for a release around the 4th of May. I'm supposed to be in vacation most of next week, but I think I will still be able to make the release candidate 1 We have a

Re: [libvirt] [test-API 07/17] Substitute _guest with _domain

2012-04-20 Thread Martin Kletzander
On 04/20/2012 11:16 AM, Alex Jia wrote: On 04/20/2012 04:29 PM, Osier Yang wrote: On 2012年04月20日 16:17, Martin Kletzander wrote: On 04/20/2012 08:46 AM, Osier Yang wrote: --- .../en-US/Creating_a_configuration_file.xml| 82 ++-- .../en-US/Writing_a_test_case.xml

Re: [libvirt] [test-API 08/17] Substitute 'guest ' with 'domain '

2012-04-20 Thread Martin Kletzander
On 04/20/2012 08:46 AM, Osier Yang wrote: --- cases/migration/ssh_persistent_paused_no_dst.conf |2 +- .../migration/ssh_persistent_paused_with_dst.conf |2 +- cases/migration/ssh_persistent_running_no_dst.conf |2 +- .../migration/ssh_persistent_running_with_dst.conf |2 +-

Re: [libvirt] [test-API 11/17] Substitute 'guestip' with 'domip'

2012-04-20 Thread Martin Kletzander
On 04/20/2012 08:46 AM, Osier Yang wrote: --- repos/domain/update_devflag.py | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/repos/domain/update_devflag.py b/repos/domain/update_devflag.py index f1ecf32..e87b1e5 100644 ---

[libvirt] Python binding APIs strict or loose

2012-04-20 Thread Guannan Ren
Hi There is a question. we need strict python binding API or loose one. For example: The setSchedulerParameters(), it accepts one of parameters: 'vcpu_quota' In C its type is of 'long long', then we need a

[libvirt] [PATCH v2] Improve on virAtomic implementation

2012-04-20 Thread Stefan Berger
This patch improves the previously added virAtomicInt implementation by using gcc-builtins if possible. The needed builtins are available since GCC = 4.1. At least the 4.0 docs don't mention them. --- src/util/viratomic.h | 95 ++- 1 file

Re: [libvirt] [libvirt-glib 1/5] Make GVirConfigDomainTimer abstract

2012-04-20 Thread Christophe Fergeau
Ping? Christophe On Fri, Apr 13, 2012 at 05:20:14PM +0200, Christophe Fergeau wrote: Specialized timer classes will inherit from it --- libvirt-gconfig/libvirt-gconfig-domain-timer.c | 22 +- libvirt-gconfig/libvirt-gconfig-domain-timer.h |4

Re: [libvirt] [RH-BZ #595428] 'virsh list' should output more information 'xm list'

2012-04-20 Thread Maxim Sditanov
2012/4/19 dennis jenkins dennis.jenkins...@gmail.com: On Thu, Apr 19, 2012 at 10:25 AM, Maxim Sditanov feni...@rambler.ru wrote: 2012/4/2 Maxim Sditanov feni...@rambler.ru: Is this new feature request still https://bugs.gentoo.org/show_bug.cgi?id=366561 actual? Because virsh still

[libvirt] [PATCH libvirt 1/3] build: do not build shunloadtest if pthread missing

2012-04-20 Thread Marc-André Lureau
Fixes build on Windows systems --- configure.ac |2 ++ tests/Makefile.am |8 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 89fe818..347c48c 100644 --- a/configure.ac +++ b/configure.ac @@ -154,6 +154,8 @@

[libvirt] [PATCH libvirt 2/3] build: fix output of pid values

2012-04-20 Thread Marc-André Lureau
Fix a few more places where pid_t is printed with wrong type --- src/conf/domain_audit.c |4 ++-- src/conf/domain_conf.c |4 ++-- src/util/command.c |2 +- src/util/virpidfile.c |2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/conf/domain_audit.c

[libvirt] [PATCH libvirt 3/3] build: update pid_t type static check

2012-04-20 Thread Marc-André Lureau
The code uses long long for pid_t now. It fails on mingw64 without this change. --- src/util/virpidfile.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/virpidfile.c b/src/util/virpidfile.c index 59d0c94..27811e1 100644 --- a/src/util/virpidfile.c +++

[libvirt] [libvirt-glib 2/2] Add API doc for GVirConfigDomainControllerUsb

2012-04-20 Thread Christophe Fergeau
--- .../libvirt-gconfig-domain-controller-usb.c| 119 +++- 1 file changed, 118 insertions(+), 1 deletion(-) diff --git a/libvirt-gconfig/libvirt-gconfig-domain-controller-usb.c b/libvirt-gconfig/libvirt-gconfig-domain-controller-usb.c index 8ab3e25..1fd248c 100644 ---

[libvirt] [libvirt-glib 1/2] Update Libvirt-gconfig-docs.xml

2012-04-20 Thread Christophe Fergeau
It was missing most classes in the GVirConfig namespace. --- docs/libvirt-gconfig/Libvirt-gconfig-docs.xml | 67 ++--- 1 file changed, 60 insertions(+), 7 deletions(-) diff --git a/docs/libvirt-gconfig/Libvirt-gconfig-docs.xml

Re: [libvirt] [libvirt-glib 1/2] Update Libvirt-gconfig-docs.xml

2012-04-20 Thread Marc-André Lureau
Hi, I think doc should fall in the trivial category, unless you need review for spelling and correctness, ack. On Fri, Apr 20, 2012 at 4:06 PM, Christophe Fergeau cferg...@redhat.com wrote: It was missing most classes in the GVirConfig namespace. ---  

Re: [libvirt] [libvirt-glib 1/2] Update Libvirt-gconfig-docs.xml

2012-04-20 Thread Christophe Fergeau
On Fri, Apr 20, 2012 at 05:13:02PM +0200, Marc-André Lureau wrote: I think doc should fall in the trivial category, unless you need review for spelling and correctness, ack. I'd appreciate feedback on the docbook structural changes (chapter/part/...) since I don't know a lot about it. In the

[libvirt] [PATCH v4 6/9] pvs: add support of VNC remote display

2012-04-20 Thread Dmitry Guryanov
Add support of reading VNC parameters of the VM. Signed-off-by: Dmitry Guryanov dgurya...@parallels.com --- src/pvs/pvs_driver.c | 65 ++ 1 files changed, 65 insertions(+), 0 deletions(-) diff --git a/src/pvs/pvs_driver.c b/src/pvs/pvs_driver.c

[libvirt] [PATCH v4 4/9] pvs: implement functions for domain life cycle management

2012-04-20 Thread Dmitry Guryanov
Add functions for create/shutdown/destroy and suspend/resume domain. Signed-off-by: Dmitry Guryanov dgurya...@parallels.com --- po/POTFILES.in |1 + src/pvs/pvs_driver.c | 148 ++ src/pvs/pvs_driver.h |1 + src/pvs/pvs_utils.c |

[libvirt] [PATCH v4 5/9] pvs: get info about serial ports

2012-04-20 Thread Dmitry Guryanov
Add support of collecting information about serial ports. This change is needed mostly as an example, support of other devices will be added later. Signed-off-by: Dmitry Guryanov dgurya...@parallels.com --- src/pvs/pvs_driver.c | 115 ++ 1 files

[libvirt] [PATCH v4 0/9] Add basic driver for Parallels Virtuozzo Server

2012-04-20 Thread Dmitry Guryanov
Parallels Virtuozzo Server is a cloud-ready virtualization solution that allows users to simultaneously run multiple virtual machines and containers on the same physical server. Current name of this product is Parallels Server Bare Metal and more information about it can be found here -

[libvirt] [PATCH v4 2/9] util: add functions for interating over json object

2012-04-20 Thread Dmitry Guryanov
Add function virJSONValueObjectKeysNumber, virJSONValueObjectGetKey and virJSONValueObjectGetValue, which allow you to iterate over all fields of json object: you can get number of fields and then get name and value, stored in field with that name by index. Signed-off-by: Dmitry Guryanov

[libvirt] [PATCH v4 9/9] pvs: implement VM creation

2012-04-20 Thread Dmitry Guryanov
To create a new VM in PVS we should issue prlctl create command, and give path to the directory, where VM should be created. VM's storage will be in that directory later. So in this first version find out location of first VM's hard disk and create VM there. Signed-off-by: Dmitry Guryanov

[libvirt] [PATCH v4 7/9] pvs: implement virDomainDefineXML operation for existing domains

2012-04-20 Thread Dmitry Guryanov
Add pvsDomainDefineXML functions, it works only for existing domains for the present. It's too hard to convert libvirt's XML domain configuration into PVS's one, so I've decided to compare virDomainDef structures: current domain definition and the one created from XML, given to the function. And

[libvirt] [PATCH v4 8/9] pvs: add storage driver

2012-04-20 Thread Dmitry Guryanov
PVS has one serious discrepancy with libvirt: libvirt stores domain configuration files always in one place, and storage files in other places (with API of storage pools and storage volumes). PVS store all domain data in a single directory, for example, you may have domain with name fedora-15,

Re: [libvirt] [PATCH v2] Improve on virAtomic implementation

2012-04-20 Thread Laine Stump
On 04/20/2012 06:44 AM, Stefan Berger wrote: This patch improves the previously added virAtomicInt implementation by using gcc-builtins if possible. The needed builtins are available since GCC = 4.1. At least the 4.0 docs don't mention them. --- src/util/viratomic.h | 95

Re: [libvirt] [PATCH v4 1/9] pvs: add driver skeleton

2012-04-20 Thread Dmitry Guryanov
On 04/20/2012 07:49 PM, Dmitry Guryanov wrote: Add driver, which can report node info only. changes: * add me to AUTHORS * fix indent in preprocessor directives in pvs_driver.h * remove unneded include * remove pvs_driver.c from po/POTFILES.in Signed-off-by: Dmitry

[libvirt] [PATCH v5 6/9] pvs: add support of VNC remote display

2012-04-20 Thread Dmitry Guryanov
Add support of reading VNC parameters of the VM. Signed-off-by: Dmitry Guryanov dgurya...@parallels.com --- src/pvs/pvs_driver.c | 65 ++ 1 files changed, 65 insertions(+), 0 deletions(-) diff --git a/src/pvs/pvs_driver.c b/src/pvs/pvs_driver.c

[libvirt] [PATCH v5 2/9] util: add functions for interating over json object

2012-04-20 Thread Dmitry Guryanov
Add function virJSONValueObjectKeysNumber, virJSONValueObjectGetKey and virJSONValueObjectGetValue, which allow you to iterate over all fields of json object: you can get number of fields and then get name and value, stored in field with that name by index. Signed-off-by: Dmitry Guryanov

[libvirt] [PATCH v5 4/9] pvs: implement functions for domain life cycle management

2012-04-20 Thread Dmitry Guryanov
Add functions for create/shutdown/destroy and suspend/resume domain. Signed-off-by: Dmitry Guryanov dgurya...@parallels.com --- po/POTFILES.in |1 + src/pvs/pvs_driver.c | 148 ++ src/pvs/pvs_driver.h |1 + src/pvs/pvs_utils.c |

Re: [libvirt] [PATCH] openvz: add network interface stats

2012-04-20 Thread Laine Stump
On 04/19/2012 06:32 PM, Guido Günther wrote: This will only work for veth devices since venet devices don't have a target element. Well, there is precedent for having stats work on some types of interfaces and not on others - type='user' interfaces in qemu also don't get stats (as the

[libvirt] [PATCH v5 0/9] Add basic driver for Parallels Virtuozzo Server

2012-04-20 Thread Dmitry Guryanov
Parallels Virtuozzo Server is a cloud-ready virtualization solution that allows users to simultaneously run multiple virtual machines and containers on the same physical server. Current name of this product is Parallels Server Bare Metal and more information about it can be found here -

[libvirt] [PATCH v5 9/9] pvs: implement VM creation

2012-04-20 Thread Dmitry Guryanov
To create a new VM in PVS we should issue prlctl create command, and give path to the directory, where VM should be created. VM's storage will be in that directory later. So in this first version find out location of first VM's hard disk and create VM there. Signed-off-by: Dmitry Guryanov

[libvirt] [PATCH v5 3/9] pvs: add functions to list domains and get info

2012-04-20 Thread Dmitry Guryanov
PVS driver is 'stateless', like vmware or openvz drivers. It collects information about domains during startup using command-line utility prlctl. VMs in PVS identified by UUIDs or unique names, which can be used as respective fields in virDomainDef structure. Currently only basic info, like

[libvirt] [PATCH v5 5/9] pvs: get info about serial ports

2012-04-20 Thread Dmitry Guryanov
Add support of collecting information about serial ports. This change is needed mostly as an example, support of other devices will be added later. Signed-off-by: Dmitry Guryanov dgurya...@parallels.com --- src/pvs/pvs_driver.c | 115 ++ 1 files

[libvirt] [PATCH v5 7/9] pvs: implement virDomainDefineXML operation for existing domains

2012-04-20 Thread Dmitry Guryanov
Add pvsDomainDefineXML functions, it works only for existing domains for the present. It's too hard to convert libvirt's XML domain configuration into PVS's one, so I've decided to compare virDomainDef structures: current domain definition and the one created from XML, given to the function. And

[libvirt] [PATCH v5 8/9] pvs: add storage driver

2012-04-20 Thread Dmitry Guryanov
PVS has one serious discrepancy with libvirt: libvirt stores domain configuration files always in one place, and storage files in other places (with API of storage pools and storage volumes). PVS store all domain data in a single directory, for example, you may have domain with name fedora-15,