Re: [libvirt] Release of libvirt-0.8.8

2011-02-17 Thread Ruben Kerkhof
On Thu, Feb 17, 2011 at 05:39, Daniel Veillard veill...@redhat.com wrote:  As scheduled the release is out, and available from the site:    ftp://libvirt.org/libvirt/ Thanks, it's working great so far! One minor issue: [root@ev004 ~]# service libvirt-guests status /etc/init.d/libvirt-guests:

[libvirt] [PATCH] qemu: Remove redundant error reporting codes

2011-02-17 Thread Osier Yang
As virDomainDefParseString already reported the error if it fails, and the redundant error reports codes will override error reported by virDomainDefParseString with some unclear messages, removed them. * src/qemu/qemu_driver.c --- src/qemu/qemu_driver.c | 33 +

Re: [libvirt] [PATCH] Add support for multiple serial ports into the Xen driver

2011-02-17 Thread Michal Novotny
Eric, thanks for reply but I'm having some issues now... I've pulled libvirt sources from upstream and I'm unable to compile it since it keeps saying following: CCLD libvirt_parthelper ./.libs/libvirt_util.a(libvirt_util_la-util.o): In function `virFileOperationNoFork':

[libvirt] Reconfiguring doesn't trigger regeneration of libvirt.syms

2011-02-17 Thread Matthias Bolte
Consider this sequence of commands $ ./configure ... $ make ... GENlibvirt.syms ... $ ./configure --with-driver-modules ... $ make ... libvirt.syms doesn't get regenerated but it should as it should contain virDriverLoadModule now. make clean after a configure run doesn't help, as make

[libvirt] [PATCH] Requires gettext for client package

2011-02-17 Thread Osier Yang
libvirt-guests invokes functions in gettext.sh, so we need to require gettext package in spec file. Demo with the fix: package gettext is not installed error: Failed dependencies: gettext is needed by libvirt-client-0.8.8-1.fc14.x86_64 * libvirt.spec.in --- libvirt.spec.in |1 + 1

Re: [libvirt] Release of libvirt-0.8.8

2011-02-17 Thread Osier Yang
于 2011年02月17日 17:31, Ruben Kerkhof 写道: On Thu, Feb 17, 2011 at 05:39, Daniel Veillardveill...@redhat.com wrote: As scheduled the release is out, and available from the site: ftp://libvirt.org/libvirt/ Thanks, it's working great so far! One minor issue: [root@ev004 ~]# service

[libvirt] [PATCH v2] Requires gettext for client package

2011-02-17 Thread Osier Yang
libvirt-guests invokes functions in gettext.sh, so we need to require gettext package in spec file. Demo with the fix: % rpm -q gettext package gettext is not installed % rpm -ivh libvirt-client-0.8.8-1.fc14.x86_64.rpm error: Failed dependencies: gettext is needed by

Re: [libvirt] [PATCH] Requires gettext for client package

2011-02-17 Thread Osier Yang
于 2011年02月17日 18:02, Osier Yang 写道: libvirt-guests invokes functions in gettext.sh, so we need to require gettext package in spec file. Demo with the fix: package gettext is not installed error: Failed dependencies: gettext is needed by libvirt-client-0.8.8-1.fc14.x86_64 Urgh, please

[libvirt] [BUG] storage_backend_fs: failung virStorageBackendProbeTarget() disabled whole pool

2011-02-17 Thread Philipp Hahn
Hello, I have a problem with the following code fragment, which refreshes a directory based storage pool: storage_backend_fs.c#virStorageBackendFileSystemRefresh(...) ... while ((ent = readdir(dir)) != NULL) { ... if ((ret = virStorageBackendProbeTarget(...) 0) { if (ret

Re: [libvirt] Still in freeze, third rc tarball available

2011-02-17 Thread Daniel P. Berrange
On Wed, Feb 16, 2011 at 05:10:10PM -0700, Jim Fehlig wrote: Jim Fehlig wrote: Daniel Veillard wrote: Thanks everybody for the testing feedback and fixes, in retrospect I should really had done this in previous releases ! So the third rc tarball is out, it's likely to be the last

[libvirt] [libvirt-snmp] Status

2011-02-17 Thread Michal Prívozník
Hi, i'd like to let you know about current status of this project. There is a wiki page http://wiki.libvirt.org/page/Libvirt-snmp which is currently a documentation. I am currently waiting for ACK for patch I've sent (snmp trap support) - so if anyone's interested and have a lot of free

Re: [libvirt] [PATCH] logging: make VIR_ERROR and friends preserve errno

2011-02-17 Thread Jiri Denemark
Followup to commit 17e19add, and would have prevented the bug independently fixed in commit 76c57a7c. * src/util/logging.c (virLogMessage): Preserve errno, since logging should be as unintrusive as possible. ... -if (fmt == NULL) - return; +if (fmt == NULL) { +errno

Re: [libvirt] [libvirt-snmp] Status

2011-02-17 Thread Justin Clift
On 17/02/2011, at 9:24 PM, Michal Prívozník wrote: Hi, i'd like to let you know about current status of this project. There is a wiki page http://wiki.libvirt.org/page/Libvirt-snmp which is currently a documentation. This is very good work. Nice picture!, clearly written, and explains

Re: [libvirt] [PATCH] Check return value of qemuMonitorDriveDel.

2011-02-17 Thread Daniel P. Berrange
On Thu, Feb 17, 2011 at 02:32:49PM +0800, Hu Tao wrote: If we don't check it, virsh users will get Disk detached successfully even when qemuMonitorDriveDel fails. --- src/qemu/qemu_hotplug.c | 10 -- src/qemu/qemu_monitor_json.c |2 +- 2 files changed, 9 insertions(+), 3

Re: [libvirt] [PATCH] qemu: Remove redundant error reporting codes

2011-02-17 Thread Daniel P. Berrange
On Thu, Feb 17, 2011 at 05:30:23PM +0800, Osier Yang wrote: As virDomainDefParseString already reported the error if it fails, and the redundant error reports codes will override error reported by virDomainDefParseString with some unclear messages, removed them. * src/qemu/qemu_driver.c

Re: [libvirt] [BUG] storage_backend_fs: failung virStorageBackendProbeTarget() disabled whole pool

2011-02-17 Thread Daniel P. Berrange
On Thu, Feb 17, 2011 at 11:21:26AM +0100, Philipp Hahn wrote: Hello, I have a problem with the following code fragment, which refreshes a directory based storage pool: storage_backend_fs.c#virStorageBackendFileSystemRefresh(...) ... while ((ent = readdir(dir)) != NULL) { ...

[libvirt] Perl bindings 0.2.6 release for libvirt 0.8.7

2011-02-17 Thread Daniel P. Berrange
A new release of the Perl bindings, Sys::Virt, is now available from: http://search.cpan.org/~danberr/Sys-Virt-0.2.6/ Direct download link: http://search.cpan.org/CPAN/authors/id/D/DA/DANBERR/Sys-Virt-0.2.6.tar.gz This supports all the APIs upto and including libvirt 0.8.7, with the

[libvirt] [PATCH 2/2] Added to authors to please make syntax-check

2011-02-17 Thread Markus Groß
--- AUTHORS |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/AUTHORS b/AUTHORS index 6ff7c14..fb42662 100644 --- a/AUTHORS +++ b/AUTHORS @@ -155,6 +155,7 @@ Patches have also been contributed by: Gui Jianfeng guijianf...@cn.fujitsu.com Michal Novotny

Re: [libvirt] [PATCH 0/2] Refactored XM and SEXPR parsing

2011-02-17 Thread Daniel P. Berrange
On Thu, Feb 17, 2011 at 01:45:42PM +0100, Markus Groß wrote: Hi, I refactored the XM and SEXPR parsing routines from the xen-unified driver into a seperate directory (xenxs; x for xm and s for sexpr). This way different xen-drivers besides xen-unified are able to use the parsing

[libvirt] [PATCH 1/2] virsh.c: new xPathULong() to parse XML returning ulong value of selected node.

2011-02-17 Thread Michal Privoznik
Parse XML from given buffer, select appropiate XPath node and return its value as unsigned long. --- tools/virsh.c | 49 + 1 files changed, 49 insertions(+), 0 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index 50d5e33..8804fc3 100644

[libvirt] [PATCH 0/2] virsh: freecell --all getting wrong NUMA nodes count

2011-02-17 Thread Michal Privoznik
This is fix for virsh freecell command. I was using virNodeGetInfo() instead of virConnectGetCapabilities() which returns XML with the right number. Therefore we need XML/XPath function to pick node values from XML kept in buffer. Moreover, this function might be used to replace bad practise in

[libvirt] [PATCH 2/2] virsh: fix wrong NUMA nodes count getting

2011-02-17 Thread Michal Privoznik
as written in docs, one must parse capabilities XML to get the right count of NUMA nodes. --- tools/virsh.c | 27 --- 1 files changed, 16 insertions(+), 11 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index 8804fc3..1086555 100644 --- a/tools/virsh.c +++

Re: [libvirt] [PATCH 0/6 v3] Add blkio cgroup support

2011-02-17 Thread Dominik Klein
Hi not that I tested this patch or the patch that followed (adding blkiotune command) ... but the way I understand, the cgroup blkio controller does only work for sync'd IO/queues. quote blkio-controller.txt from 2.6.37: Currently only sync IO queues are support. All the buffered writes are

Re: [libvirt] [PATCH 1/2] virsh.c: new xPathULong() to parse XML returning ulong value of selected node.

2011-02-17 Thread Matthias Bolte
2011/2/17 Michal Privoznik mpriv...@redhat.com: Parse XML from given buffer, select appropiate XPath node and return its value as unsigned long. ---  tools/virsh.c |   49 +  1 files changed, 49 insertions(+), 0 deletions(-) diff --git

Re: [libvirt] [PATCH] build: Fix VPATH build

2011-02-17 Thread Jiri Denemark
On Wed, Feb 16, 2011 at 09:50:57 -0700, Eric Blake wrote: On 02/16/2011 09:41 AM, Eric Blake wrote: On 02/16/2011 09:01 AM, Jiri Denemark wrote: Even VPATH make dist succeeds now ACK. I think this is okay for 0.8.8, since it doesn't invalidate any .c code, and since it makes the

Re: [libvirt] [PATCH] maint: Replace tabs in apibuild.py with spaces

2011-02-17 Thread Jiri Denemark
On Wed, Feb 16, 2011 at 09:15:43 -0700, Eric Blake wrote: On 02/16/2011 09:01 AM, Jiri Denemark wrote: --- docs/apibuild.py | 3194 +++--- 1 files changed, 1597 insertions(+), 1597 deletions(-) ACK; confirmed by 'git diff -b' that there

Re: [libvirt] [PATCH 0/2] Refactored XM and SEXPR parsing

2011-02-17 Thread Jim Fehlig
Markus Groß wrote: Hi, I refactored the XM and SEXPR parsing routines from the xen-unified driver into a seperate directory (xenxs; x for xm and s for sexpr). This way different xen-drivers besides xen-unified are able to use the parsing functionality. For example the upcoming XenLight

Re: [libvirt] [PATCH 0/2] Refactored XM and SEXPR parsing

2011-02-17 Thread Daniel P. Berrange
On Thu, Feb 17, 2011 at 07:46:59AM -0700, Jim Fehlig wrote: Markus Groß wrote: Hi, I refactored the XM and SEXPR parsing routines from the xen-unified driver into a seperate directory (xenxs; x for xm and s for sexpr). This way different xen-drivers besides xen-unified are able to use

Re: [libvirt] [PATCH] qemu: Remove redundant error reporting codes

2011-02-17 Thread Osier Yang
于 2011年02月17日 19:15, Daniel P. Berrange 写道: On Thu, Feb 17, 2011 at 05:30:23PM +0800, Osier Yang wrote: As virDomainDefParseString already reported the error if it fails, and the redundant error reports codes will override error reported by virDomainDefParseString with some unclear messages,

Re: [libvirt] [PATCH 1/2] Restructure domain struct interface driver data for easier expansion

2011-02-17 Thread Laine Stump
On 02/07/2011 11:55 AM, Eric Blake wrote: On 02/04/2011 02:00 PM, Laine Stump wrote: When thedriver element (and its name attribute) was added to the domain XML's interface element, a backend enum was simply added to the toplevel of the virDomainNetDef struct. This patch changes

Re: [libvirt] [PATCHv3 2/2] Add txmode attribute to interface XML for virtio backend

2011-02-17 Thread Laine Stump
On 02/10/2011 03:35 PM, Eric Blake wrote: On 02/10/2011 02:53 AM, Laine Stump wrote: == V3 changes: 0) The actual code remains untouched from V2. 1) Add txmode attribute to the domain schema, and to an xml2xml and xml2argv test (note that the particular file

[libvirt] [PATCH v2] virsh: freecell --all getting wrong NUMA nodes count

2011-02-17 Thread Michal Privoznik
Virsh freecell --all was not olny getting wrong NUMA nodes count, but even the NUMA nodes ids. They doesn't have to be continuous, as I've found out during testing this. Therefore a modification of nodeGetCellsFreeMemory() error message. --- src/nodeinfo.c |3 +- tools/virsh.c | 70

Re: [libvirt] Release of libvirt-0.8.8

2011-02-17 Thread Justin Clift
On 17/02/2011, at 3:39 PM, Daniel Veillard wrote: As scheduled the release is out, and available from the site: ftp://libvirt.org/libvirt/ Thanks everybody for the earlier testing on the release candidate series that was I think quite useful ! This release is now available through

Re: [libvirt] [PATCH] Add support for multiple serial ports into the Xen driver

2011-02-17 Thread Eric Blake
On 02/17/2011 02:37 AM, Michal Novotny wrote: Eric, thanks for reply but I'm having some issues now... I've pulled libvirt sources from upstream and I'm unable to compile it since it keeps saying following: CCLD libvirt_parthelper ./.libs/libvirt_util.a(libvirt_util_la-util.o): In

Re: [libvirt] [PATCH v2] Requires gettext for client package

2011-02-17 Thread Eric Blake
On 02/17/2011 03:05 AM, Osier Yang wrote: libvirt-guests invokes functions in gettext.sh, so we need to require gettext package in spec file. Demo with the fix: % rpm -q gettext package gettext is not installed % rpm -ivh libvirt-client-0.8.8-1.fc14.x86_64.rpm error: Failed

[libvirt] [PATCH] build: recompute symbols after changing configure options

2011-02-17 Thread Eric Blake
$ ./configure ... $ make ... GENlibvirt.syms ... $ ./configure --with-driver-modules ... $ make ... libvirt.syms doesn't get regenerated but it should as it should contain virDriverLoadModule now. * src/Makefile.am (libvirt.syms): Depend on configure changes. Reported by Matthias Bolte.

Re: [libvirt] [PATCH v2] Requires gettext for client package

2011-02-17 Thread Justin Clift
On 18/02/2011, at 7:12 AM, Eric Blake wrote: snip [note to self - it might be possible to drop the nc dependency in the future, once I finish my conversion from -migration exec: to -migration fd:, since the spec file only targets distros with new-enough qemu 0.12.0 or newer; nc would still

Re: [libvirt] [PATCH] maint: Expand tabs in python code

2011-02-17 Thread Eric Blake
On 02/17/2011 07:34 AM, Jiri Denemark wrote: Also cfg.mk is tweaked to force this for all future changes to *.py files. --- cfg.mk |4 +- docs/apibuild.py | 3194 docs/index.py | 834 +++---

Re: [libvirt] [PATCH] maint: avoid 'make syntax-check' from tarball

2011-02-17 Thread Eric Blake
On 02/16/2011 08:14 PM, Daniel Veillard wrote: On Wed, Feb 16, 2011 at 02:39:30PM -0700, Eric Blake wrote: * .gnulib: update to latest gnulib for maint.mk fixes --- In testing the latest release candidate, I ran 'make syntax-check' out of habit, and it died miserably (even hanging waiting

Re: [libvirt] [PATCH] logging: make VIR_ERROR and friends preserve errno

2011-02-17 Thread Eric Blake
On 02/17/2011 04:01 AM, Jiri Denemark wrote: Followup to commit 17e19add, and would have prevented the bug independently fixed in commit 76c57a7c. I would have implemented this as if (...) -return; +goto out; ... VIR_FREE(msg); + +out: +errno =

Re: [libvirt] [PATCH] check more error info about whether drive_add failed

2011-02-17 Thread Eric Blake
On 02/16/2011 08:32 PM, Wen Congyang wrote: When we attach a disk, but we specify a wrong format of disk image, qemu monitor command drive_add will fail, but libvirt does not detect this error. Signed-off-by: Wen Congyang we...@cn.fujitsu.com --- src/qemu/qemu_monitor_text.c |6

[libvirt] [PATCH 1/5] use virReportErrorHelper instead of xmlGenericError

2011-02-17 Thread Christophe Fergeau
--- src/util/hash.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/util/hash.c b/src/util/hash.c index c7a52c9..ba156b1 100644 --- a/src/util/hash.c +++ b/src/util/hash.c @@ -190,9 +190,10 @@ virHashGrow(virHashTablePtr table, int size) VIR_FREE(oldtable);

[libvirt] virHash patches (resend)

2011-02-17 Thread Christophe Fergeau
Hi, This is a resend of my virHash patches. I rebased my git branch on top of origin/master after the release, since 2 of them needed rediffing, here they are again. Christophe -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH 2/5] add hash table rebalancing in virHashUpdateEntry

2011-02-17 Thread Christophe Fergeau
The code in virHashUpdateEntry and virHashAddEntry is really similar. However, the latter rebalances the hash table when one of its buckets contains too many elements while the former does not. Fix this discrepancy. --- src/util/hash.c |7 ++- 1 files changed, 6 insertions(+), 1

[libvirt] [PATCH 3/5] factor common code in virHashAddEntry and virHashUpdateEntry

2011-02-17 Thread Christophe Fergeau
The only difference between these 2 functions is that one errors out when the entry is already present while the other modifies the existing entry. Add an helper function with a boolean argument indicating whether existing entries should be updated or not, and use this helper in both functions.

[libvirt] [PATCH 5/5] don't check for NULL before calling virHashFree

2011-02-17 Thread Christophe Fergeau
virHashFree follows the convention described in HACKING that XXXFree() functions can be called with a NULL argument. --- src/conf/domain_conf.c |6 +--- src/datatypes.c | 51 +++--- src/qemu/qemu_process.c |4 +-- 3 files changed, 20

[libvirt] [PATCH 4/5] remove no longer needed calls to virReportOOMError

2011-02-17 Thread Christophe Fergeau
Now that the virHash handling functions call virReportOOMError by themselves when needed, users of the virHash API no longer need to do it by themselves. Since users of the virHash API were not consitently calling virReportOOMError after memory failures from the virHash code, this has the added

[libvirt] cleanup patches

2011-02-17 Thread Christophe Fergeau
Hi, Here are 2 cleanup patches for 2 smallish issues I found when looking at how virHash was used in libvirt. Christophe -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH 1/2] remove space between function name and (

2011-02-17 Thread Christophe Fergeau
There were several occurrences of an extra space inserted between a function name and the ( opening the argument list in datatypes.c. This is not consistent with the coding style used in the rest of this file so removing this extra space makes the code slightly more readable. --- src/datatypes.c

[libvirt] [PATCH 2/2] remove duplicated call to reportOOMError

2011-02-17 Thread Christophe Fergeau
--- src/qemu/qemu_command.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index c9feb9b..371a7ed 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -4243,7 +4243,6 @@ qemuBuildCommandLine(virConnectPtr

[libvirt] [PATCH] Do not add drive 'boot=on' param when a kernel is specified

2011-02-17 Thread Jim Fehlig
libvirt-tck was failing several domain tests [1] with qemu 0.14, which is now less tolerable of specifying 2 bootroms with the same boot index [2]. Drop the 'boot=on' param if kernel has been specfied. [1] https://www.redhat.com/archives/libvir-list/2011-February/msg00559.html [2]

Re: [libvirt] Still in freeze, third rc tarball available

2011-02-17 Thread Jim Fehlig
Daniel P. Berrange wrote: On Wed, Feb 16, 2011 at 05:10:10PM -0700, Jim Fehlig wrote: diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 05f427c..9186707 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -3112,7 +3112,7 @@

Re: [libvirt] [PATCH] Do not add drive 'boot=on' param when a kernel is specified

2011-02-17 Thread Eric Blake
On 02/17/2011 02:38 PM, Jim Fehlig wrote: libvirt-tck was failing several domain tests [1] with qemu 0.14, which is now less tolerable of specifying 2 bootroms with the same boot index [2]. Drop the 'boot=on' param if kernel has been specfied. [1]

[libvirt] 0.8.8 and virtio console

2011-02-17 Thread Ruben Kerkhof
Hi all, This used to work on libvirt-0.8.7: console type='pty' target type='virtio'/ /console Using the same configuration with libvirt-0.8.8: [root@ev004 ~]# virsh create /data/4d5d8a24-bb70-4eff-b1b5-3d8e5bd5c355.xml error: Failed to create domain from

Re: [libvirt] [PATCH 2/2] virsh: fix wrong NUMA nodes count getting

2011-02-17 Thread Eric Blake
On 02/17/2011 06:39 AM, Michal Privoznik wrote: as written in docs, one must parse capabilities XML to get the right count of NUMA nodes. --- tools/virsh.c | 27 --- 1 files changed, 16 insertions(+), 11 deletions(-) -if (!info.nodes) { -

Re: [libvirt] [PATCH 0/2] Refactored XM and SEXPR parsing

2011-02-17 Thread Eric Blake
On 02/17/2011 06:14 AM, Daniel P. Berrange wrote: On Thu, Feb 17, 2011 at 01:45:42PM +0100, Markus Groß wrote: Hi, I refactored the XM and SEXPR parsing routines from the xen-unified driver into a seperate directory (xenxs; x for xm and s for sexpr). This way different xen-drivers besides

Re: [libvirt] [PATCH] build: improve 'make install' for VPATH builds

2011-02-17 Thread Eric Blake
On 02/17/2011 08:06 AM, Jiri Denemark wrote: On Wed, Feb 16, 2011 at 16:19:38 -0700, Eric Blake wrote: Anything distributed in the tarball should be built into srcdir. * docs/Makefile.am (%.html): Build into srcdir. --- This gets a VPATH build further, but things still aren't complete for

Re: [libvirt] [PATCH 1/5] use virReportErrorHelper instead of xmlGenericError

2011-02-17 Thread Eric Blake
On 02/17/2011 02:14 PM, Christophe Fergeau wrote: --- src/util/hash.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/util/hash.c b/src/util/hash.c index c7a52c9..ba156b1 100644 --- a/src/util/hash.c +++ b/src/util/hash.c @@ -190,9 +190,10 @@

Re: [libvirt] [PATCH 3/5] factor common code in virHashAddEntry and virHashUpdateEntry

2011-02-17 Thread Eric Blake
On 02/17/2011 02:14 PM, Christophe Fergeau wrote: The only difference between these 2 functions is that one errors out when the entry is already present while the other modifies the existing entry. Add an helper function with a boolean argument indicating whether existing entries should be

Re: [libvirt] [PATCH 2/5] add hash table rebalancing in virHashUpdateEntry

2011-02-17 Thread Eric Blake
On 02/17/2011 02:14 PM, Christophe Fergeau wrote: The code in virHashUpdateEntry and virHashAddEntry is really similar. However, the latter rebalances the hash table when one of its buckets contains too many elements while the former does not. Fix this discrepancy. --- src/util/hash.c |

Re: [libvirt] [PATCH 4/5] remove no longer needed calls to virReportOOMError

2011-02-17 Thread Eric Blake
On 02/17/2011 02:14 PM, Christophe Fergeau wrote: Now that the virHash handling functions call virReportOOMError by themselves when needed, users of the virHash API no longer need to do it by themselves. Since users of the virHash API were not consitently calling virReportOOMError after memory

Re: [libvirt] [PATCH 5/5] don't check for NULL before calling virHashFree

2011-02-17 Thread Eric Blake
[adding Jim to cc, as author of useless-if-before-free] On 02/17/2011 02:14 PM, Christophe Fergeau wrote: virHashFree follows the convention described in HACKING that XXXFree() functions can be called with a NULL argument. --- src/conf/domain_conf.c |6 +--- src/datatypes.c |

Re: [libvirt] [PATCH 1/2] remove space between function name and (

2011-02-17 Thread Eric Blake
On 02/17/2011 02:18 PM, Christophe Fergeau wrote: There were several occurrences of an extra space inserted between a function name and the ( opening the argument list in datatypes.c. This is not consistent with the coding style used in the rest of this file so removing this extra space makes

Re: [libvirt] [PATCH 2/2] remove duplicated call to reportOOMError

2011-02-17 Thread Eric Blake
On 02/17/2011 02:18 PM, Christophe Fergeau wrote: --- src/qemu/qemu_command.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index c9feb9b..371a7ed 100644 --- a/src/qemu/qemu_command.c +++

Re: [libvirt] [PATCH v2] Requires gettext for client package

2011-02-17 Thread Eric Blake
On 02/17/2011 01:19 PM, Justin Clift wrote: On 18/02/2011, at 7:12 AM, Eric Blake wrote: snip [note to self - it might be possible to drop the nc dependency in the future, once I finish my conversion from -migration exec: to -migration fd:, since the spec file only targets distros with

Re: [libvirt] [PATCH 0/6 v3] Add blkio cgroup support

2011-02-17 Thread Gui Jianfeng
Dominik Klein wrote: Hi not that I tested this patch or the patch that followed (adding blkiotune command) ... but the way I understand, the cgroup blkio controller does only work for sync'd IO/queues. quote blkio-controller.txt from 2.6.37: Currently only sync IO queues are support. All

[libvirt] [PATCH 3/6 v2] qemu: Implement domainSetBlkioParamters and domainGetBlkioParamters for QEmu

2011-02-17 Thread Gui Jianfeng
Implement domainSetBlkioParamters and domainGetBlkioParamters for QEmu v1- v2 Changes: - Improve error message output suggested by Osier. Signed-off-by: Gui Jianfeng guijianf...@cn.fujitsu.com --- src/qemu/qemu_driver.c | 162 +++- 1 files changed,

[libvirt] [PATCH 4/6 v2] virsh: Adding blkiotune command to virsh tool

2011-02-17 Thread Gui Jianfeng
Adding blkiotune command to virsh tool v1 - v2 Changes: - Fix some typo. Signed-off-by: Gui Jianfeng guijianf...@cn.fujitsu.com --- tools/virsh.c | 127 + 1 files changed, 127 insertions(+), 0 deletions(-) diff --git a/tools/virsh.c

[libvirt] [PATCH 6/6 v2] virsh: Documents for blkiotune

2011-02-17 Thread Gui Jianfeng
Documents for blkiotune. Signed-off-by: Gui Jianfeng guijianf...@cn.fujitsu.com --- tools/virsh.pod |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/tools/virsh.pod b/tools/virsh.pod index a2ca384..014d953 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -610,6

Re: [libvirt] [PATCH 6/6 v2] virsh: Documents for blkiotune

2011-02-17 Thread Gui Jianfeng
Eric Blake wrote: On 02/17/2011 07:05 PM, Gui Jianfeng wrote: Documents for blkiotune. Signed-off-by: Gui Jianfeng guijianf...@cn.fujitsu.com --- tools/virsh.pod |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/tools/virsh.pod b/tools/virsh.pod index

Re: [libvirt] [PATCH 6/6 v2] virsh: Documents for blkiotune

2011-02-17 Thread Gui Jianfeng
Eric Blake wrote: On 02/17/2011 07:05 PM, Gui Jianfeng wrote: Documents for blkiotune. Signed-off-by: Gui Jianfeng guijianf...@cn.fujitsu.com --- tools/virsh.pod |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/tools/virsh.pod b/tools/virsh.pod index

[libvirt] [PATCH] check device-mapper when building without storage mpath

2011-02-17 Thread Wen Congyang
When I build libvirt without libvirtd, I receive the following errors: GENvirsh.1 CCLD virsh ../src/.libs/libvirt.so: undefined reference to `dm_is_dm_major' collect2: ld returned 1 exit status make[3]: *** [virsh] Error 1 My build step: # ./autogen.sh --without-libvirtd # make dist #

Re: [libvirt] [PATCH] Do not add drive 'boot=on' param when a kernel is specified

2011-02-17 Thread Jim Fehlig
Eric Blake wrote: On 02/17/2011 02:38 PM, Jim Fehlig wrote: libvirt-tck was failing several domain tests [1] with qemu 0.14, which is now less tolerable of specifying 2 bootroms with the same boot index [2]. Drop the 'boot=on' param if kernel has been specfied. [1]

Re: [libvirt] [PATCH] update domain status forcibly even if attach a device failed

2011-02-17 Thread Wen Congyang
At 02/18/2011 05:09 AM, Eric Blake Write: On 02/16/2011 08:32 PM, Wen Congyang wrote: Steps to reproduce this bug: 1. virsh attach-disk domain --source diskimage --target sdb --sourcetype file --driver qemu --subdriver qcow2 error: Failed to attach disk error: operation failed: adding

Re: [libvirt] [PATCH v2] Requires gettext for client package

2011-02-17 Thread Osier Yang
于 2011年02月18日 04:12, Eric Blake 写道: On 02/17/2011 03:05 AM, Osier Yang wrote: libvirt-guests invokes functions in gettext.sh, so we need to require gettext package in spec file. Demo with the fix: % rpm -q gettext package gettext is not installed % rpm -ivh

Re: [libvirt] [PATCH 2/2] virsh: fix wrong NUMA nodes count getting

2011-02-17 Thread Michal Prívozník
On 02/17/2011 11:11 PM, Eric Blake wrote: On 02/17/2011 06:39 AM, Michal Privoznik wrote: ... As Matthias pointed out, we already have a parse function. If you ditch patch 1/2, then squash this into 2/2, does it all work for you (only compile-tested here)? I've sent the second version,

Re: [libvirt] [PATCH v2] Requires gettext for client package

2011-02-17 Thread Osier Yang
于 2011年02月18日 08:30, Eric Blake 写道: On 02/17/2011 01:19 PM, Justin Clift wrote: On 18/02/2011, at 7:12 AM, Eric Blake wrote: snip [note to self - it might be possible to drop the nc dependency in the future, once I finish my conversion from -migration exec: to -migration fd:, since the spec

Re: [libvirt] [PATCH] qemu: Remove redundant error reporting codes

2011-02-17 Thread Osier Yang
于 2011年02月17日 23:36, Osier Yang 写道: 于 2011年02月17日 19:15, Daniel P. Berrange 写道: On Thu, Feb 17, 2011 at 05:30:23PM +0800, Osier Yang wrote: As virDomainDefParseString already reported the error if it fails, and the redundant error reports codes will override error reported by

[libvirt] [libvirt-php 0/2] Another update for building system

2011-02-17 Thread Lyre
Hi all: This patch updeted the building system. * Added necessary checkings in configure.ac * Cleared up libvirt-php.spec and src/Makefile.am BTW, I've changed my email to business address. Lyre (2): spec file cleanup Added checkings for tools and libraries aclocal.m4 | 189

[libvirt] [libvirt-php 2/2] Added checkings for tools and libraries

2011-02-17 Thread Lyre
* configure.ac: Added checkings for compiler, sed, install, and so on; Added AM_PATH_XML2 to check libxml2. * src/Makefile.am: dropped needless macros since it is done by autoconf; Use $INSTALL to install files rather than cp. --- aclocal.m4 | 189