[libvirt] [test-API][PATCH] Add 3 APIs in snapshotAPI

2012-02-13 Thread Wayne Sun
* new APIs get_parent(self, domname, snapname, flag = 0) children_num(self, domname, snapname, flag) children_names_list(self, domname, snapname, flag) the flag in children_num and children_names_list could be in 0-7, which is the OR operation result of

Re: [libvirt] [PATCH] Fixed URI parsing

2012-02-13 Thread Martin Kletzander
On 02/09/2012 06:53 PM, Laine Stump wrote: The problems I can see with that: 1) That would require you to once again modify the server string in-place, but you can't rely on it still having the 2 extra bytes, so you would have to create a new string. Modifying the server is not a

Re: [libvirt] [test-API][PATCH] Add 3 APIs in snapshotAPI

2012-02-13 Thread Guannan Ren
On 02/13/2012 05:03 PM, Wayne Sun wrote: * new APIs get_parent(self, domname, snapname, flag = 0) children_num(self, domname, snapname, flag) children_names_list(self, domname, snapname, flag) the flag in children_num and children_names_list could be in 0-7, which is

Re: [libvirt] availability of rc2 for 0.9.10

2012-02-13 Thread Paolo Bonzini
On 02/08/2012 07:59 AM, Daniel Veillard wrote: ftp://libvirt.org/libvirt/libvirt-0.9.10-rc2.tar.gz the rpms are available too and the git tree is tagged. Hopefully that one is more usable, and I'm still hoping for a release on Monday, Osier and I discussed SCSI addressing today. It

[libvirt] [PATCH] virpidfile: Allow whitespace character on the end of pidfile

2012-02-13 Thread Michal Privoznik
Some programs, notably dnsmasq, which are writing pidfiles on their own do append a whitespace character after pid, e.g. '\n'. --- src/util/virpidfile.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/util/virpidfile.c b/src/util/virpidfile.c index

Re: [libvirt] availability of rc2 for 0.9.10

2012-02-13 Thread Daniel Veillard
On Mon, Feb 13, 2012 at 02:24:05PM +0100, Paolo Bonzini wrote: On 02/08/2012 07:59 AM, Daniel Veillard wrote: ftp://libvirt.org/libvirt/libvirt-0.9.10-rc2.tar.gz the rpms are available too and the git tree is tagged. Hopefully that one is more usable, and I'm still hoping for a

Re: [libvirt] [PATCH] virpidfile: Allow whitespace character on the end of pidfile

2012-02-13 Thread Daniel Veillard
On Mon, Feb 13, 2012 at 02:29:44PM +0100, Michal Privoznik wrote: Some programs, notably dnsmasq, which are writing pidfiles on their own do append a whitespace character after pid, e.g. '\n'. --- src/util/virpidfile.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff

[libvirt] [PATCH] virsh: Fix name of domain suspend command

2012-02-13 Thread Michal Privoznik
It's dompmsuspend, not suspend-duration. --- Pushed under trivial rule. tools/virsh.pod |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/virsh.pod b/tools/virsh.pod index bd79b4c..877533b 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -1280,7 +1280,7 @@

Re: [libvirt] [PATCH] virpidfile: Allow whitespace character on the end of pidfile

2012-02-13 Thread Michal Privoznik
On 13.02.2012 14:42, Daniel Veillard wrote: On Mon, Feb 13, 2012 at 02:29:44PM +0100, Michal Privoznik wrote: Some programs, notably dnsmasq, which are writing pidfiles on their own do append a whitespace character after pid, e.g. '\n'. --- src/util/virpidfile.c |6 -- 1 files

Re: [libvirt] [PATCH 2/2] qemu: add virtio-scsi controller model

2012-02-13 Thread Anthony Liguori
On 01/13/2012 06:23 AM, Paolo Bonzini wrote: Adding a new model for virtio-scsi roughly follows the same scheme as the previous patch. Signed-off-by: Paolo Bonzinipbonz...@redhat.com It should be noted that virtio-scsi has not been merged either in the Linux kernel or in QEMU yet. In

Re: [libvirt] [PATCH v3] Support for cpu64-rhel* qemu cpu models

2012-02-13 Thread Jiri Denemark
On Fri, Feb 10, 2012 at 11:22:09 -0700, Eric Blake wrote: On 01/30/2012 09:25 AM, Martin Kletzander wrote: In qemu there are 2 cpu models (cpu64-rhel5 and cpu64-rhel6) not supported by libvirt. This patch adds the support with the flags specifications from

Re: [libvirt] Start of freeze for libvirt-0.9.10 and availability of rc1

2012-02-13 Thread Jiri Denemark
On Fri, Feb 10, 2012 at 13:33:47 -0700, Eric Blake wrote: On 02/10/2012 12:21 PM, Dave Allan wrote: I'm wondering if we're too late for one more API to round out the API we added in this release. Qemu is proposing a new monitor command system_wakeup which lets the host inject a

Re: [libvirt] [PATCH 2/2] qemu: add virtio-scsi controller model

2012-02-13 Thread Anthony Liguori
On 02/13/2012 08:35 AM, Paolo Bonzini wrote: On 02/13/2012 03:15 PM, Anthony Liguori wrote: It should be noted that virtio-scsi has not been merged either in the Linux kernel or in QEMU yet. In particular, this patch assumes that we'll introduce a 'virtio-scsi' alias which I'm planning on

Re: [libvirt] Start of freeze for libvirt-0.9.10 and availability of rc1

2012-02-13 Thread Dave Allan
On Mon, Feb 13, 2012 at 03:39:51PM +0100, Jiri Denemark wrote: On Fri, Feb 10, 2012 at 13:33:47 -0700, Eric Blake wrote: On 02/10/2012 12:21 PM, Dave Allan wrote: I'm wondering if we're too late for one more API to round out the API we added in this release. Qemu is proposing a new

Re: [libvirt] [PATCH 2/2] qemu: add virtio-scsi controller model

2012-02-13 Thread Daniel P. Berrange
On Mon, Feb 13, 2012 at 08:51:17AM -0600, Anthony Liguori wrote: On 02/13/2012 08:35 AM, Paolo Bonzini wrote: On 02/13/2012 03:15 PM, Anthony Liguori wrote: It should be noted that virtio-scsi has not been merged either in the Linux kernel or in QEMU yet. In particular, this patch assumes

[libvirt] [PATCH] Install API XML desc to a standard location

2012-02-13 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Language bindings may well want to use the libvirt-api.xml and libvirt-qemu-api.xml files to either auto-generate themselves, or sanity check the manually written bindings for completeness. Currently these XML files are not installed as standard,

Re: [libvirt] [PATCH] Install API XML desc to a standard location

2012-02-13 Thread Eric Blake
On 02/13/2012 09:49 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Language bindings may well want to use the libvirt-api.xml and libvirt-qemu-api.xml files to either auto-generate themselves, or sanity check the manually written bindings for completeness.

Re: [libvirt] [PATCHv2 0/3] Xen: Fix clock handling

2012-02-13 Thread Eric Blake
On 02/13/2012 03:36 AM, Philipp Hahn wrote: Hello Eric, On Monday 13 February 2012 08:51:41 Philipp Hahn wrote: On Thursday 09 February 2012 23:01:38 Eric Blake wrote: ... But a better idea is to represent the XML in a way where the default conversion makes sense, but where a user can

Re: [libvirt] [PATCH] qemu: make block io tuning smarter

2012-02-13 Thread Eric Blake
On 02/13/2012 12:01 AM, Osier Yang wrote: On 02/11/2012 05:56 AM, Eric Blake wrote: When blkdeviotune was first committed in 0.9.8, we had the limitation that setting one value reset all others. But bytes and iops should be relatively independent. Furthermore, setting tuning values on a

Re: [libvirt] Add a new api, get this error.gnutls_record_recv: A TLS packet with unexpected length was received.

2012-02-13 Thread Eric Blake
On 02/12/2012 11:26 AM, 灵矫 wrote: [please don't top-post on technical lists] Sorry, I just add the function prototypes in libvirt.h libvirt.inhttp://libvirt.in, implement it in libvirt.c and call a hypervisor function in qemu_drivier.h. basicly no other codes. It's easier to

Re: [libvirt] [PATCH v4 1/1] util: Add netlink event handling to virnetlink.c

2012-02-13 Thread Laine Stump
On 02/09/2012 10:36 AM, D. Herrendoerfer wrote: From: D. Herrendoerfer d.herrendoer...@herrendoerfer.name This code adds a netlink event interface to libvirt. It is based upon the event_poll code and makes use of it. An event is generated for each netlink message sent to the libvirt pid.

Re: [libvirt] [PATCH 4/5 V5] qemu driver for virDomainGetCPUstats using cpuacct cgroup.

2012-02-13 Thread Eric Blake
On 02/09/2012 03:43 AM, Lai Jiangshan wrote: From: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com * Now, only cpu_time is supported. * cpuacct cgroup is used for providing percpu cputime information. * include/libvirt/libvirt.h.in - defines VIR_DOMAIN_CPU_STATS_CPUTIME *

[libvirt] [ANNOUNCE] Perl binding Sys-Virt release 0.9.10

2012-02-13 Thread Daniel P. Berrange
I am pleased to announce that release 0.9.10 of Sys-Virt, the libvirt Perl API binding is now available for download: http://search.cpan.org/CPAN/authors/id/D/DA/DANBERR/Sys-Virt-0.9.10.tar.gz Changed in this release: - Add all new APIs in libvirt 0.9.10 - Add some constants missing from

Re: [libvirt] [PATCH 5/5 V5] cpu-accts command shows cpu accounting information of a domain.

2012-02-13 Thread Eric Blake
On 02/09/2012 03:43 AM, Lai Jiangshan wrote: From: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com Total: cpu_time15.8 CPU0: cpu_time8.6 CPU1: cpu_time3.5 CPU2: cpu_time2.4 CPU3: cpu_time1.3 We should align the

Re: [libvirt] [PATCH 1/4] virsh: Two new helper functions for disk device changes

2012-02-13 Thread Eric Blake
On 02/03/2012 02:23 AM, Osier Yang wrote: vshFindDisk is to find the disk node in xml doc with given target and flags (indicates disk type, normal disk or changeable disk). vshPrepareDiskXML is to make changes on the disk node (e.g. create and insert the new source node for inserting media

Re: [libvirt] [PATCH 2/4] virsh: Use vshFindDisk and vshPrepareDiskXML in cmdDetachDisk

2012-02-13 Thread Eric Blake
On 02/03/2012 02:23 AM, Osier Yang wrote: The first use of the two new helper functions. --- tools/virsh.c | 62 1 files changed, 9 insertions(+), 53 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index ca69f30..5dad1d6

Re: [libvirt] [PATCH 3/4] virsh: New command cmdChangeMedia

2012-02-13 Thread Eric Blake
On 02/03/2012 02:23 AM, Osier Yang wrote: One could use it to eject, insert, or update media of the CDROM or floppy drive. See the documents for more details. --- tools/virsh.c | 134 + 1 files changed, 134 insertions(+), 0

Re: [libvirt] [PATCH 4/4] virsh: Add document for cmdChangeMedia

2012-02-13 Thread Eric Blake
On 02/03/2012 02:23 AM, Osier Yang wrote: --- tools/virsh.pod | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/tools/virsh.pod b/tools/virsh.pod index 28ad422..6ac7d15 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -1475,6 +1475,31

[libvirt] [PATCHv3] python: Expose virDomain{G, S}etInterfaceParameters APIs in python binding

2012-02-13 Thread ajia
From: Alex Jia a...@redhat.com The v3 patch to follow latest python binding codes and change 'size' type from int to Py_ssize_t. An simple example to show how to use it: #!/usr/bin/env python import libvirt conn = libvirt.open(None) dom = conn.lookupByName('foo') print

Re: [libvirt] Add a new api, get this error.gnutls_record_recv: A TLS packet with unexpected length was received.

2012-02-13 Thread chang liu
Oh, thanks. I have found that if my return type is remote_nonnull_string, the error will be happen, but if the return type is int, it works ok. 2012/2/14 Eric Blake ebl...@redhat.com On 02/12/2012 11:26 AM, 灵矫 wrote: [please don't top-post on technical lists] Sorry, I just add

Re: [libvirt] [PATCH 4/4] virsh: Add document for cmdChangeMedia

2012-02-13 Thread Osier Yang
On 02/14/2012 06:27 AM, Eric Blake wrote: On 02/03/2012 02:23 AM, Osier Yang wrote: --- tools/virsh.pod | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/tools/virsh.pod b/tools/virsh.pod index 28ad422..6ac7d15 100644 --- a/tools/virsh.pod +++

Re: [libvirt] [PATCH 1/4] virsh: Two new helper functions for disk device changes

2012-02-13 Thread Osier Yang
On 02/14/2012 05:59 AM, Eric Blake wrote: On 02/03/2012 02:23 AM, Osier Yang wrote: vshFindDisk is to find the disk node in xml doc with given target and flags (indicates disk type, normal disk or changeable disk). vshPrepareDiskXML is to make changes on the disk node (e.g. create and insert

Re: [libvirt] [PATCH 3/4] virsh: New command cmdChangeMedia

2012-02-13 Thread Osier Yang
On 02/14/2012 06:18 AM, Eric Blake wrote: On 02/03/2012 02:23 AM, Osier Yang wrote: One could use it to eject, insert, or update media of the CDROM or floppy drive. See the documents for more details. --- tools/virsh.c | 134 + 1 files

[libvirt] Release of libvirt-0.9.10

2012-02-13 Thread Daniel Veillard
As planned I made the release yesterday, it is tagged in git and available at: ftp://libvirt.org/libvirt/ both as tarball and signed rpms for Fedora 16. This is again a relatively large release with close to 300 commits, and we got a significant number of added feature in the last month,

Re: [libvirt] [PATCH v2] RFC Libvirt + Openvswitch

2012-02-13 Thread Laine Stump
On 02/10/2012 04:09 PM, Ansis Atteka wrote: This patch allows libvirt to add interfaces to already existing Open vSwitch bridges. The following syntax in domain XML file can be used: interface type='bridge' mac address='52:54:00:d0:3f:f2'/ source bridge='ovsbr'/

Re: [libvirt] Release of libvirt-0.9.10

2012-02-13 Thread Jun Koi
On Tue, Feb 14, 2012 at 1:15 PM, Daniel Veillard veill...@redhat.com wrote:  As planned I made the release yesterday, it is tagged in git and available at:   ftp://libvirt.org/libvirt/ both as tarball and signed rpms for Fedora 16. i compiled this version on Ubuntu 10.4 (64bit), and got